diff options
author | 2015-11-10 11:54:56 -0800 | |
---|---|---|
committer | 2015-11-10 11:54:57 -0800 | |
commit | 091f60c2a0e4504c017b8a67ff96a0e829519b14 (patch) | |
tree | b77c149adc2d855b7aaf62c53398f9213ccedf20 /include/gpu/gl | |
parent | 6dfe9ac3aad3ab8ec3a0f1684c94fef0c6ad9c3e (diff) |
Use a struct for client GL texture handles
Review URL: https://codereview.chromium.org/1429863009
Diffstat (limited to 'include/gpu/gl')
-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 |