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