Index: gpu/command_buffer/service/error_state.h |
diff --git a/gpu/command_buffer/service/error_state.h b/gpu/command_buffer/service/error_state.h |
index 507b738367019a582d299a7d47828599a6f1a486..c4ef691925897c95d46758e30119734b1a9e7e20 100644 |
--- a/gpu/command_buffer/service/error_state.h |
+++ b/gpu/command_buffer/service/error_state.h |
@@ -31,10 +31,17 @@ class Logger; |
__FILE__, __LINE__, function_name, value, label) |
// Use to synthesize a GL error on the error_state for an invalid enum based |
-// parameter. Will attempt to expand the parameter to a string. |
-#define ERRORSTATE_SET_GL_ERROR_INVALID_PARAM( \ |
+// integer parameter. Will attempt to expand the parameter to a string. |
+#define ERRORSTATE_SET_GL_ERROR_INVALID_PARAMI( \ |
error_state, error, function_name, pname, param) \ |
- error_state->SetGLErrorInvalidParam( \ |
+ error_state->SetGLErrorInvalidParami( \ |
+ __FILE__, __LINE__, error, function_name, pname, param) |
+ |
+// Use to synthesize a GL error on the error_state for an invalid enum based |
+// float parameter. Will attempt to expand the parameter to a string. |
+#define ERRORSTATE_SET_GL_ERROR_INVALID_PARAMF( \ |
+ error_state, error, function_name, pname, param) \ |
+ error_state->SetGLErrorInvalidParamf( \ |
__FILE__, __LINE__, error, function_name, pname, param) |
// Use to move all pending error to the wrapper so on your next GL call |
@@ -69,13 +76,20 @@ class GPU_EXPORT ErrorState { |
const char* function_name, |
unsigned int value, |
const char* label) = 0; |
- virtual void SetGLErrorInvalidParam( |
+ virtual void SetGLErrorInvalidParami( |
const char* filename, |
int line, |
unsigned int error, |
const char* function_name, |
unsigned int pname, |
int param) = 0; |
+ virtual void SetGLErrorInvalidParamf( |
+ const char* filename, |
+ int line, |
+ unsigned int error, |
+ const char* function_name, |
+ unsigned int pname, |
+ float param) = 0; |
// Gets the GLError and stores it in our wrapper. Effectively |
// this lets us peek at the error without losing it. |