Index: include/gpu/gl/GrGLTypes.h |
diff --git a/include/gpu/gl/GrGLTypes.h b/include/gpu/gl/GrGLTypes.h |
index 248ce8886d4ce6c914a2ed9d866bbf11bd2fc8d6..d0edcf101ef35abad8fabe2862310adc4553805f 100644 |
--- a/include/gpu/gl/GrGLTypes.h |
+++ b/include/gpu/gl/GrGLTypes.h |
@@ -58,10 +58,40 @@ typedef signed long int GrGLintptr; |
typedef signed long int GrGLsizeiptr; |
#endif |
typedef void* GrGLeglImage; |
+ |
+struct GrGLDrawArraysIndirectCommand { |
+ GrGLuint fCount; |
+ GrGLuint fInstanceCount; |
+ GrGLuint fFirst; |
+ GrGLuint fBaseInstance; // Requires EXT_base_instance on ES. |
+}; |
+ |
+GR_STATIC_ASSERT(16 == sizeof(GrGLDrawArraysIndirectCommand)); |
+ |
+struct GrGLDrawElementsIndirectCommand { |
+ GrGLuint fCount; |
+ GrGLuint fInstanceCount; |
+ GrGLuint fFirstIndex; |
+ GrGLuint fBaseVertex; |
+ GrGLuint fBaseInstance; // Requires EXT_base_instance on ES. |
+}; |
+ |
+GR_STATIC_ASSERT(20 == sizeof(GrGLDrawElementsIndirectCommand)); |
+ |
/** |
- * EGL types. |
+ * KHR_debug |
*/ |
+typedef void (GR_GL_FUNCTION_TYPE* GRGLDEBUGPROC)(GrGLenum source, |
+ GrGLenum type, |
+ GrGLuint id, |
+ GrGLenum severity, |
+ GrGLsizei length, |
+ const GrGLchar* message, |
+ const void* userParam); |
+/** |
+ * EGL types. |
+ */ |
typedef void* GrEGLImage; |
typedef void* GrEGLDisplay; |
typedef void* GrEGLContext; |