From a73239a0096370221d3dfababf339dd6d3fed84f Mon Sep 17 00:00:00 2001 From: bsalomon Date: Tue, 28 Apr 2015 13:35:17 -0700 Subject: Remove GrFlushToGpuDrawTarget and move functionality up to GrDrawTarget. Review URL: https://codereview.chromium.org/1117433002 --- src/gpu/GrTargetCommands.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/gpu/GrTargetCommands.cpp') diff --git a/src/gpu/GrTargetCommands.cpp b/src/gpu/GrTargetCommands.cpp index 69ef53bd45..c448db95b6 100644 --- a/src/gpu/GrTargetCommands.cpp +++ b/src/gpu/GrTargetCommands.cpp @@ -341,18 +341,14 @@ void GrTargetCommands::CopySurface::execute(GrGpu* gpu, const SetState*) { gpu->copySurface(this->dst(), this->src(), fSrcRect, fDstPoint); } -GrTargetCommands::Cmd* GrTargetCommands::recordCopySurface(GrInOrderDrawBuffer* iodb, - GrSurface* dst, +GrTargetCommands::Cmd* GrTargetCommands::recordCopySurface(GrSurface* dst, GrSurface* src, const SkIRect& srcRect, const SkIPoint& dstPoint) { - if (iodb->getGpu()->canCopySurface(dst, src, srcRect, dstPoint)) { - CopySurface* cs = GrNEW_APPEND_TO_RECORDER(fCmdBuffer, CopySurface, (dst, src)); - cs->fSrcRect = srcRect; - cs->fDstPoint = dstPoint; - return cs; - } - return NULL; + CopySurface* cs = GrNEW_APPEND_TO_RECORDER(fCmdBuffer, CopySurface, (dst, src)); + cs->fSrcRect = srcRect; + cs->fDstPoint = dstPoint; + return cs; } bool GrTargetCommands::setupPipelineAndShouldDraw(GrInOrderDrawBuffer* iodb, -- cgit v1.2.3