diff options
author | Robert Phillips <robertphillips@google.com> | 2017-06-01 11:06:13 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-01 15:33:12 +0000 |
commit | a16f6cb40a7d6d186c86c2689c2be827b2093ae4 (patch) | |
tree | 555c42c676426d4e11a35de4c88468cc17f45f78 /src/gpu/GrTextureOpList.cpp | |
parent | 9f6f41b01bdc8144808e78128676087bfb310a27 (diff) |
Update copyOp to split-opList world
Change-Id: Ib18fc0a589185b11b21241e50acb7b506c44bfac
Reviewed-on: https://skia-review.googlesource.com/17325
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.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/GrTextureOpList.cpp b/src/gpu/GrTextureOpList.cpp index d15c778296..3c127f69f0 100644 --- a/src/gpu/GrTextureOpList.cpp +++ b/src/gpu/GrTextureOpList.cpp @@ -78,12 +78,14 @@ void GrTextureOpList::reset() { //////////////////////////////////////////////////////////////////////////////// // MDB TODO: fuse with GrRenderTargetOpList::copySurface -bool GrTextureOpList::copySurface(GrResourceProvider* resourceProvider, +bool GrTextureOpList::copySurface(const GrCaps& caps, GrSurfaceProxy* dst, GrSurfaceProxy* src, const SkIRect& srcRect, const SkIPoint& dstPoint) { - std::unique_ptr<GrOp> op = GrCopySurfaceOp::Make(resourceProvider, dst, src, srcRect, dstPoint); + SkASSERT(dst == fTarget.get()); + + std::unique_ptr<GrOp> op = GrCopySurfaceOp::Make(dst, src, srcRect, dstPoint); if (!op) { return false; } |