diff options
Diffstat (limited to 'src/gpu/ops/GrCopySurfaceOp.h')
-rw-r--r-- | src/gpu/ops/GrCopySurfaceOp.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/ops/GrCopySurfaceOp.h b/src/gpu/ops/GrCopySurfaceOp.h index f1dac8fdfa..6c804088dd 100644 --- a/src/gpu/ops/GrCopySurfaceOp.h +++ b/src/gpu/ops/GrCopySurfaceOp.h @@ -56,13 +56,13 @@ private: void onExecute(GrOpFlushState* state) override { SkASSERT(!state->commandBuffer()); - GrSurface* dst = fDst.get()->instantiate(state->resourceProvider()); - GrSurface* src = fSrc.get()->instantiate(state->resourceProvider()); - if (!dst || !src) { + if (!fDst.get()->instantiate(state->resourceProvider()) || + !fSrc.get()->instantiate(state->resourceProvider())) { return; } - state->gpu()->copySurface(dst, src, fSrcRect, fDstPoint); + state->gpu()->copySurface(fDst.get()->priv().peekSurface(), + fSrc.get()->priv().peekSurface(), fSrcRect, fDstPoint); } // For RenderTargetContexts 'fDst' is redundant with the RenderTarget that will be passed |