aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSurfacePriv.h
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-05-02 15:06:47 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-02 21:34:58 +0000
commitb73a9f8b9609c09c25405c16d277c977fdea8c07 (patch)
tree2a5b464adf4ed0e1a2d870b1a22f85ab1cba73be /src/gpu/GrSurfacePriv.h
parent90864a21c4ab6c7da3c6d671cf85a97373578243 (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/GrSurfacePriv.h')
-rw-r--r--src/gpu/GrSurfacePriv.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/GrSurfacePriv.h b/src/gpu/GrSurfacePriv.h
index 98d8fc52d8..5c98e3f773 100644
--- a/src/gpu/GrSurfacePriv.h
+++ b/src/gpu/GrSurfacePriv.h
@@ -41,7 +41,11 @@ public:
GrInternalSurfaceFlags flags() const { return fSurface->fSurfaceFlags; }
bool doesNotSupportMipMaps() const { return fSurface->doesNotSupportMipMaps(); }
- bool isClampOnly() const { return fSurface->isClampOnly(); }
+ bool isGLTextureRectangleOrExternal() const {
+ return fSurface->isGLTextureRectangleOrExternal();
+ }
+ // We only support the clamp wrap mode with gl rectangle or external textures.
+ bool isClampOnly() const { return fSurface->isGLTextureRectangleOrExternal(); }
private:
explicit GrSurfacePriv(GrSurface* surface) : fSurface(surface) {}