diff options
author | Timothy Liang <timliang@google.com> | 2018-07-31 10:51:17 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-31 16:25:55 +0000 |
commit | e30739a1e1d90183bc6bf7414e409e89016881f5 (patch) | |
tree | 4b84aeadee82fde5b45ec75aa1782897e2c9625f /src/gpu/mtl/GrMtlCaps.h | |
parent | c8ece3d5f877d67114dfda51a336dfdf7838095a (diff) |
implemented copy surface as draw for metal gpu backend
Bug: skia:
Change-Id: Ie61bd6ad9f288b8a025d44f887a0954101a7d710
Reviewed-on: https://skia-review.googlesource.com/142687
Commit-Queue: Timothy Liang <timliang@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/mtl/GrMtlCaps.h')
-rw-r--r-- | src/gpu/mtl/GrMtlCaps.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/mtl/GrMtlCaps.h b/src/gpu/mtl/GrMtlCaps.h index 5d6c82bea8..11eb322442 100644 --- a/src/gpu/mtl/GrMtlCaps.h +++ b/src/gpu/mtl/GrMtlCaps.h @@ -51,6 +51,9 @@ public: const SkIRect& srcRect, const SkIPoint& dstPoint, bool areDstSrcSameObj) const; + bool canCopyAsDraw(GrPixelConfig dstConfig, bool dstIsRenderable, + GrPixelConfig srcConfig, bool srcIsTextureable) const; + bool canCopySurface(const GrSurfaceProxy* dst, const GrSurfaceProxy* src, const SkIRect& srcRect, const SkIPoint& dstPoint) const override; |