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/GrMtlGpu.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/GrMtlGpu.h')
-rw-r--r-- | src/gpu/mtl/GrMtlGpu.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/mtl/GrMtlGpu.h b/src/gpu/mtl/GrMtlGpu.h index 054f1e6842..98132fa725 100644 --- a/src/gpu/mtl/GrMtlGpu.h +++ b/src/gpu/mtl/GrMtlGpu.h @@ -56,11 +56,15 @@ public: void testingOnly_flushGpuAndSync() override; #endif + bool copySurfaceAsBlit(GrSurface* dst, GrSurfaceOrigin dstOrigin, + GrSurface* src, GrSurfaceOrigin srcOrigin, + const SkIRect& srcRect, const SkIPoint& dstPoint); + bool onCopySurface(GrSurface* dst, GrSurfaceOrigin dstOrigin, GrSurface* src, GrSurfaceOrigin srcOrigin, const SkIRect& srcRect, const SkIPoint& dstPoint, - bool canDiscardOutsideDstRect) override { return false; } + bool canDiscardOutsideDstRect) override; GrGpuRTCommandBuffer* createCommandBuffer( GrRenderTarget*, GrSurfaceOrigin, |