Index: src/gpu/GrTargetCommands.cpp |
diff --git a/src/gpu/GrTargetCommands.cpp b/src/gpu/GrTargetCommands.cpp |
index 69ef53bd4592ba55f6091c0dd1ebd86eb87ca027..c448db95b64a1bd56da6eb53b7cacc6e09782dbc 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, |