diff options
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 { |