diff options
author | Brian Salomon <bsalomon@google.com> | 2017-05-23 10:43:51 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-23 18:07:25 +0000 |
commit | 45e5068a6d10f4e4fd4658824310f8871f02ccf7 (patch) | |
tree | 6d6fa75f2539789b5c6021f628e5ad543681af09 /include/gpu/gl | |
parent | ccb46aaef838e1bd9d2feb249fb65aa935d7dc2c (diff) |
Add a flag to GrSurfaceFlags that requires the texture to be cleared upon creation.
Bug: chromium:656320
Change-Id: I940bfa24540516ab83a2ed52f761b96eb6ad19f1
Reviewed-on: https://skia-review.googlesource.com/17391
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include/gpu/gl')
-rw-r--r-- | include/gpu/gl/GrGLFunctions.h | 2 | ||||
-rw-r--r-- | include/gpu/gl/GrGLInterface.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/gpu/gl/GrGLFunctions.h b/include/gpu/gl/GrGLFunctions.h index 9cb7ddc261..930a0c1aad 100644 --- a/include/gpu/gl/GrGLFunctions.h +++ b/include/gpu/gl/GrGLFunctions.h @@ -40,6 +40,8 @@ typedef GrGLenum (GR_GL_FUNCTION_TYPE* GrGLCheckFramebufferStatusProc)(GrGLenum typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLClearProc)(GrGLbitfield mask); typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLClearColorProc)(GrGLclampf red, GrGLclampf green, GrGLclampf blue, GrGLclampf alpha); typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLClearStencilProc)(GrGLint s); +typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLClearTexImageProc)(GrGLuint texture, GrGLint level, GrGLenum format, GrGLenum type,const GrGLvoid * data); +typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLClearTexSubImageProc)(GrGLuint texture, GrGLint level, GrGLint xoffset, GrGLint yoffset, GrGLint zoffset, GrGLsizei width, GrGLsizei height, GrGLsizei depth, GrGLenum format, GrGLenum type,const GrGLvoid * data); typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLColorMaskProc)(GrGLboolean red, GrGLboolean green, GrGLboolean blue, GrGLboolean alpha); typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCompileShaderProc)(GrGLuint shader); typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCompressedTexImage2DProc)(GrGLenum target, GrGLint level, GrGLenum internalformat, GrGLsizei width, GrGLsizei height, GrGLint border, GrGLsizei imageSize, const GrGLvoid* data); diff --git a/include/gpu/gl/GrGLInterface.h b/include/gpu/gl/GrGLInterface.h index c84eca28c6..e5479eb466 100644 --- a/include/gpu/gl/GrGLInterface.h +++ b/include/gpu/gl/GrGLInterface.h @@ -125,6 +125,8 @@ public: GrGLFunction<GrGLClearProc> fClear; GrGLFunction<GrGLClearColorProc> fClearColor; GrGLFunction<GrGLClearStencilProc> fClearStencil; + GrGLFunction<GrGLClearTexImageProc> fClearTexImage; + GrGLFunction<GrGLClearTexSubImageProc> fClearTexSubImage; GrGLFunction<GrGLColorMaskProc> fColorMask; GrGLFunction<GrGLCompileShaderProc> fCompileShader; GrGLFunction<GrGLCompressedTexImage2DProc> fCompressedTexImage2D; |