aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/gl
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-11-10 11:54:56 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-10 11:54:57 -0800
commit091f60c2a0e4504c017b8a67ff96a0e829519b14 (patch)
treeb77c149adc2d855b7aaf62c53398f9213ccedf20 /include/gpu/gl
parent6dfe9ac3aad3ab8ec3a0f1684c94fef0c6ad9c3e (diff)
Use a struct for client GL texture handles
Diffstat (limited to 'include/gpu/gl')
-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