aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLCaps.h
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-05-03 10:35:42 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-03 16:57:12 +0000
commit26dbe3bdaa22f3708a4928fe9d994fd8dec4ad9c (patch)
tree9fbdf1617def2abf6ddd27afe2b916d8df378684 /src/gpu/gl/GrGLCaps.h
parente88be4f3d887ebcb59a9033093bf8d1f6066a56f (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/gl/GrGLCaps.h')
-rw-r--r--src/gpu/gl/GrGLCaps.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLCaps.h b/src/gpu/gl/GrGLCaps.h
index c564cf1d50..76eec3afb0 100644
--- a/src/gpu/gl/GrGLCaps.h
+++ b/src/gpu/gl/GrGLCaps.h
@@ -407,6 +407,24 @@ public:
: pendingInstanceCount;
}
+ bool canCopyTexSubImage(GrPixelConfig dstConfig, bool dstHasMSAARenderBuffer,
+ bool dstIsTextureable, bool dstIsGLTexture2D,
+ GrSurfaceOrigin dstOrigin,
+ GrPixelConfig srcConfig, bool srcHasMSAARenderBuffer,
+ bool srcIsTextureable, bool srcIsGLTexture2D,
+ GrSurfaceOrigin srcOrigin) const;
+ bool canCopyAsBlit(GrPixelConfig dstConfig, int dstSampleCnt,
+ bool dstIsTextureable, bool dstIsGLTexture2D,
+ GrSurfaceOrigin dstOrigin,
+ GrPixelConfig srcConfig, int srcSampleCnt,
+ bool srcIsTextureable, bool srcIsGLTexture2D,
+ GrSurfaceOrigin srcOrigin, const SkRect& srcBounds,
+ const SkIRect& srcRect, const SkIPoint& dstPoint) const;
+ bool canCopyAsDraw(GrPixelConfig dstConfig, bool srcIsTextureable) const;
+
+ bool canCopySurface(const GrSurfaceProxy* dst, const GrSurfaceProxy* src,
+ const SkIRect& srcRect, const SkIPoint& dstPoint) const override;
+
bool initDescForDstCopy(const GrRenderTargetProxy* src, GrSurfaceDesc* desc, GrSurfaceOrigin*,
bool* rectsMustMatch, bool* disallowSubrect) const override;