diff options
author | Greg Daniel <egdaniel@google.com> | 2018-05-02 15:06:47 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-02 21:34:58 +0000 |
commit | b73a9f8b9609c09c25405c16d277c977fdea8c07 (patch) | |
tree | 2a5b464adf4ed0e1a2d870b1a22f85ab1cba73be /src/gpu/GrTextureProxyPriv.h | |
parent | 90864a21c4ab6c7da3c6d671cf85a97373578243 (diff) |
Add internal grsurface flag to track if using gl rectangle or external texture.
Bug: skia:
Change-Id: I84963833bbc3ae957c919a19f6e78fce2c9de7ef
Reviewed-on: https://skia-review.googlesource.com/125294
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 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/GrTextureProxyPriv.h b/src/gpu/GrTextureProxyPriv.h index b2b002864e..8f50b90dad 100644 --- a/src/gpu/GrTextureProxyPriv.h +++ b/src/gpu/GrTextureProxyPriv.h @@ -32,7 +32,11 @@ public: GrMipMapped proxyMipMapped() const { return fTextureProxy->fMipMapped; } bool doesNotSupportMipMaps() const { return fTextureProxy->doesNotSupportMipMaps(); } - bool isClampOnly() const { return fTextureProxy->isClampOnly(); } + bool isGLTextureRectangleOrExternal() const { + return fTextureProxy->isGLTextureRectangleOrExternal(); + } + // We only support the clamp wrap mode with gl rectangle or external textures. + bool isClampOnly() const { return fTextureProxy->isGLTextureRectangleOrExternal(); } void setDoesNotSupportMipMaps() { fTextureProxy->setDoesNotSupportMipMaps(); |