Index: src/gpu/GrRecordReplaceDraw.h |
diff --git a/src/gpu/GrRecordReplaceDraw.h b/src/gpu/GrRecordReplaceDraw.h |
index b47b0774155aa62847150deab85330da686640a1..9110ac82f9e09884b355cf7a2ba2b0d472fa61d4 100644 |
--- a/src/gpu/GrRecordReplaceDraw.h |
+++ b/src/gpu/GrRecordReplaceDraw.h |
@@ -101,10 +101,11 @@ private: |
// Draw an SkPicture into an SkCanvas replacing saveLayer/restore blocks with |
// drawBitmap calls. A convenience wrapper around SkRecords::Draw. |
-void GrRecordReplaceDraw(const SkPicture*, |
- SkCanvas*, |
- const GrReplacements*, |
- const SkMatrix& initialMatrix, |
- SkDrawPictureCallback*); |
+// It returns the number of saveLayer/restore blocks replaced with drawBitmap calls. |
+int GrRecordReplaceDraw(const SkPicture*, |
+ SkCanvas*, |
+ const GrReplacements*, |
+ const SkMatrix& initialMatrix, |
+ SkDrawPictureCallback*); |
#endif // GrRecordReplaceDraw_DEFINED |