diff options
author | 2018-05-03 10:35:42 -0400 | |
---|---|---|
committer | 2018-05-03 16:57:12 +0000 | |
commit | 26dbe3bdaa22f3708a4928fe9d994fd8dec4ad9c (patch) | |
tree | 9fbdf1617def2abf6ddd27afe2b916d8df378684 /src/gpu/GrTextureProxyPriv.h | |
parent | e88be4f3d887ebcb59a9033093bf8d1f6066a56f (diff) |
Implement GL canCopySurface in GrGLCaps.
Bug: skia:
Change-Id: Ibd55a5a5e62121f58ef7c5148a54aaad6fdcd243
Reviewed-on: https://skia-review.googlesource.com/125480
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrTextureProxyPriv.h')
-rw-r--r-- | src/gpu/GrTextureProxyPriv.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/GrTextureProxyPriv.h b/src/gpu/GrTextureProxyPriv.h index 8f50b90dad..cadd2fde63 100644 --- a/src/gpu/GrTextureProxyPriv.h +++ b/src/gpu/GrTextureProxyPriv.h @@ -35,6 +35,9 @@ public: bool isGLTextureRectangleOrExternal() const { return fTextureProxy->isGLTextureRectangleOrExternal(); } + // We assume that if a texture is not a GL_TEXTURE_RECTANGLE or GL_TEXTURE_EXTERNAL then it is a + // GL_TEXTURE_2D + bool isGLTexture2D() const { return !fTextureProxy->isGLTextureRectangleOrExternal(); } // We only support the clamp wrap mode with gl rectangle or external textures. bool isClampOnly() const { return fTextureProxy->isGLTextureRectangleOrExternal(); } |