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/GrSurfacePriv.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/GrSurfacePriv.h')
-rw-r--r-- | src/gpu/GrSurfacePriv.h | 6 |
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) {} |