aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTextureOpList.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-04-06 11:18:49 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-06 20:03:40 +0000
commitd7cda9a6f050c30e65b0744b3cfb45cecdc40834 (patch)
tree0c1cca24a20927e155ad306aa5ff43bca4713bcc /src/gpu/GrTextureOpList.cpp
parentcf1b022c53afda781ff76fe206d8c93966b1c267 (diff)
Make GrCopySurfaceOp friendlier to GrSurfaceProxy
Change-Id: Iba8c068bd96ab154d466e485a9db31dd552138de Reviewed-on: https://skia-review.googlesource.com/11325 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrTextureOpList.cpp')
-rw-r--r--src/gpu/GrTextureOpList.cpp7
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;
}