Index: src/gpu/GrInOrderDrawBuffer.cpp |
diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp |
index 8cc365841f1a71c5fbea229b564e24b61b40c026..6b6490c7eaea5ff33bc57c2851690e1120054a8f 100644 |
--- a/src/gpu/GrInOrderDrawBuffer.cpp |
+++ b/src/gpu/GrInOrderDrawBuffer.cpp |
@@ -121,6 +121,7 @@ |
GrSurface* src, |
const SkIRect& srcRect, |
const SkIPoint& dstPoint) { |
+ SkASSERT(this->getGpu()->canCopySurface(dst, src, srcRect, dstPoint)); |
GrTargetCommands::Cmd* cmd = fCommands->recordCopySurface(dst, src, srcRect, dstPoint); |
this->recordTraceMarkersIfNecessary(cmd); |
} |