#include "gpu/command_buffer/service/error_state.h"
#include <stdint.h>
#include <string>
#include "base/memory/raw_ptr.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "gpu/command_buffer/common/gles2_cmd_utils.h"
#include "gpu/command_buffer/service/logger.h"
#include "ui/gl/gl_bindings.h"
namespace gpu {
namespace gles2 {
namespace {
GLenum GetErrorHelper() { … }
}
class ErrorStateImpl : public ErrorState { … };
ErrorState::ErrorState() = default;
ErrorState::~ErrorState() = default;
ErrorState* ErrorState::Create(ErrorStateClient* client, Logger* logger) { … }
ErrorStateImpl::ErrorStateImpl(ErrorStateClient* client, Logger* logger)
: … { … }
ErrorStateImpl::~ErrorStateImpl() = default;
uint32_t ErrorStateImpl::GetGLError() { … }
GLenum ErrorStateImpl::GetErrorHandleContextLoss() { … }
unsigned int ErrorStateImpl::PeekGLError(
const char* filename, int line, const char* function_name) { … }
void ErrorStateImpl::SetGLError(
const char* filename,
int line,
unsigned int error,
const char* function_name,
const char* msg) { … }
void ErrorStateImpl::SetGLErrorInvalidEnum(
const char* filename,
int line,
const char* function_name,
unsigned int value,
const char* label) { … }
void ErrorStateImpl::SetGLErrorInvalidParami(
const char* filename,
int line,
unsigned int error,
const char* function_name,
unsigned int pname, int param) { … }
void ErrorStateImpl::SetGLErrorInvalidParamf(
const char* filename,
int line,
unsigned int error,
const char* function_name,
unsigned int pname, float param) { … }
void ErrorStateImpl::CopyRealGLErrorsToWrapper(
const char* filename, int line, const char* function_name) { … }
void ErrorStateImpl::ClearRealGLErrors(
const char* filename, int line, const char* function_name) { … }
}
}