Index: src/gpu/GrDrawTarget.cpp |
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp |
index 9f15c1150849885137e393e5544432210e8cfdce..b9dc7945262056e753bf2b274d8573cef7ed6787 100644 |
--- a/src/gpu/GrDrawTarget.cpp |
+++ b/src/gpu/GrDrawTarget.cpp |
@@ -406,21 +406,19 @@ |
//////////////////////////////////////////////////////////////////////////////// |
-bool GrDrawTarget::copySurface(GrSurface* dst, |
+void GrDrawTarget::copySurface(GrSurface* dst, |
GrSurface* src, |
const SkIRect& srcRect, |
const SkIPoint& dstPoint) { |
GrBatch* batch = GrCopySurfaceBatch::Create(dst, src, srcRect, dstPoint); |
- if (!batch) { |
- return false; |
- } |
+ if (batch) { |
#ifdef ENABLE_MDB |
- this->addDependency(src); |
-#endif |
- |
- this->recordBatch(batch); |
- batch->unref(); |
- return true; |
+ this->addDependency(src); |
+#endif |
+ |
+ this->recordBatch(batch); |
+ batch->unref(); |
+ } |
} |
template <class Left, class Right> static bool intersect(const Left& a, const Right& b) { |