diff options
Diffstat (limited to 'include/gpu/gl/GrGLTypes.h')
-rw-r--r-- | include/gpu/gl/GrGLTypes.h | 13 |
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 |