diff options
Diffstat (limited to 'src/gpu/ops/GrCopySurfaceOp.cpp')
-rw-r--r-- | src/gpu/ops/GrCopySurfaceOp.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gpu/ops/GrCopySurfaceOp.cpp b/src/gpu/ops/GrCopySurfaceOp.cpp index 4e8fab7d70..ad6fec988e 100644 --- a/src/gpu/ops/GrCopySurfaceOp.cpp +++ b/src/gpu/ops/GrCopySurfaceOp.cpp @@ -80,13 +80,10 @@ std::unique_ptr<GrOp> GrCopySurfaceOp::Make(GrSurfaceProxy* dstProxy, GrSurfaceP } void GrCopySurfaceOp::onExecute(GrOpFlushState* state) { - SkASSERT(!state->commandBuffer()); - if (!fDst.get()->instantiate(state->resourceProvider()) || !fSrc.get()->instantiate(state->resourceProvider())) { return; } - state->gpu()->copySurface(fDst.get()->priv().peekSurface(), - fSrc.get()->priv().peekSurface(), fSrcRect, fDstPoint); + state->commandBuffer()->copy(fSrc.get()->priv().peekSurface(), fSrcRect, fDstPoint); } |