diff options
author | Robert Phillips <robertphillips@google.com> | 2017-04-07 10:08:53 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-04-07 15:33:58 +0000 |
commit | bf25d433f48bb336f1f7f8bcb0a4a357ac08bb16 (patch) | |
tree | a8edb6dd3582b6d7e647ad9602e6df560101fe10 /src/gpu/GrTextureOpList.cpp | |
parent | 2d61e7170067129ca5dbf8fead23d9f2ae5947b5 (diff) |
Make GrCopySurfaceOp friendlier to GrSurfaceProxy (take 2)
Reland of: https://skia-review.googlesource.com/c/11325/ (Make GrCopySurfaceOp friendlier to GrSurfaceProxy)
Change-Id: Ibe7312cebe7793af5803353a1499fbe7874c558f
Reviewed-on: https://skia-review.googlesource.com/11780
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrTextureOpList.cpp')
-rw-r--r-- | src/gpu/GrTextureOpList.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gpu/GrTextureOpList.cpp b/src/gpu/GrTextureOpList.cpp index 668e8a3bc8..d2d922643a 100644 --- a/src/gpu/GrTextureOpList.cpp +++ b/src/gpu/GrTextureOpList.cpp @@ -76,11 +76,12 @@ void GrTextureOpList::reset() { //////////////////////////////////////////////////////////////////////////////// -bool GrTextureOpList::copySurface(GrSurface* dst, - GrSurface* src, +bool GrTextureOpList::copySurface(GrResourceProvider* resourceProvider, + GrSurfaceProxy* dst, + GrSurfaceProxy* src, const SkIRect& srcRect, const SkIPoint& dstPoint) { - std::unique_ptr<GrOp> op = GrCopySurfaceOp::Make(dst, src, srcRect, dstPoint); + std::unique_ptr<GrOp> op = GrCopySurfaceOp::Make(resourceProvider, dst, src, srcRect, dstPoint); if (!op) { return false; } |