Index: src/gpu/GrDrawTarget.cpp |
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp |
index dc2fd3086121761bc96f7b57ea5f2d059ac7e805..c4398b6e41e991e650cbcfa64fb53926b23c2810 100644 |
--- a/src/gpu/GrDrawTarget.cpp |
+++ b/src/gpu/GrDrawTarget.cpp |
@@ -221,9 +221,9 @@ void GrDrawTarget::prepareBatches(GrBatchFlushState* flushState) { |
} |
} |
-void GrDrawTarget::drawBatches(GrBatchFlushState* flushState) { |
+bool GrDrawTarget::drawBatches(GrBatchFlushState* flushState) { |
if (0 == fRecordedBatches.count()) { |
- return; |
+ return false; |
} |
// Draw all the generated geometry. |
SkRandom random; |
@@ -286,6 +286,7 @@ void GrDrawTarget::drawBatches(GrBatchFlushState* flushState) { |
} |
fGpu->finishDrawTarget(); |
+ return true; |
} |
void GrDrawTarget::reset() { |