Chromium Code Reviews| Index: include/gpu/gl/GrGLTypes.h |
| diff --git a/include/gpu/gl/GrGLTypes.h b/include/gpu/gl/GrGLTypes.h |
| index e2eadb393dee5b1e94ca71ce40c5c623c96496ba..04154f312c1edbe26fe90de48a58581a6287c4e3 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 { |
|
egdaniel
2015/11/10 19:53:47
Can we rename this GrGLTextureStuff?
|
| + GrGLenum fTarget; |
| + GrGLuint fID; |
| +}; |
| + |
| +GR_STATIC_ASSERT(sizeof(GrBackendObject) >= sizeof(const GrGLTextureInfo*)); |
| + |
| #endif |