diff options
author | Timothy Liang <timliang@google.com> | 2018-07-20 16:53:00 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-23 17:23:24 +0000 |
commit | e35055f31c7f2a2c7f3c693b9231c44d181ec599 (patch) | |
tree | 5283d4e83d140bc7f360430b2b891c04a696b401 /src/gpu/mtl/GrMtlCaps.h | |
parent | 206dbe8a21b614bbf09b9d2b488ff453e41fdfd9 (diff) |
implemented copy surface as blit for metal gpu backend
Bug: skia:
Change-Id: Ic59fe585c02168a361985f0864242b3c11e9d98e
Reviewed-on: https://skia-review.googlesource.com/142684
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Timothy Liang <timliang@google.com>
Diffstat (limited to 'src/gpu/mtl/GrMtlCaps.h')
-rw-r--r-- | src/gpu/mtl/GrMtlCaps.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gpu/mtl/GrMtlCaps.h b/src/gpu/mtl/GrMtlCaps.h index 1ff16adba4..5d6c82bea8 100644 --- a/src/gpu/mtl/GrMtlCaps.h +++ b/src/gpu/mtl/GrMtlCaps.h @@ -46,10 +46,13 @@ public: return fPreferedStencilFormat; } #endif + bool canCopyAsBlit(GrPixelConfig dstConfig, int dstSampleCount, GrSurfaceOrigin dstOrigin, + GrPixelConfig srcConfig, int srcSampleCount, GrSurfaceOrigin srcOrigin, + const SkIRect& srcRect, const SkIPoint& dstPoint, + bool areDstSrcSameObj) const; + bool canCopySurface(const GrSurfaceProxy* dst, const GrSurfaceProxy* src, - const SkIRect& srcRect, const SkIPoint& dstPoint) const override { - return false; - } + const SkIRect& srcRect, const SkIPoint& dstPoint) const override; bool initDescForDstCopy(const GrRenderTargetProxy* src, GrSurfaceDesc* desc, GrSurfaceOrigin*, bool* rectsMustMatch, bool* disallowSubrect) const override { |