aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/gl/GrGLTypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu/gl/GrGLTypes.h')
-rw-r--r--include/gpu/gl/GrGLTypes.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/gpu/gl/GrGLTypes.h b/include/gpu/gl/GrGLTypes.h
index e2eadb393d..04154f312c 100644
--- a/include/gpu/gl/GrGLTypes.h
+++ b/include/gpu/gl/GrGLTypes.h
@@ -58,4 +58,17 @@ typedef signed long int GrGLintptr;
typedef signed long int GrGLsizeiptr;
#endif
+///////////////////////////////////////////////////////////////////////////////
+/**
+ * Types for interacting with GL resources created externally to Skia. GrBackendObjects for GL
+ * textures are really const GrGLTexture*
+ */
+
+struct GrGLTextureInfo {
+ GrGLenum fTarget;
+ GrGLuint fID;
+};
+
+GR_STATIC_ASSERT(sizeof(GrBackendObject) >= sizeof(const GrGLTextureInfo*));
+
#endif