Index: src/core/SkRecorder.h |
diff --git a/src/core/SkRecorder.h b/src/core/SkRecorder.h |
index 3809ae239d059d015a60cbcc7e6f89aa7e12619e..688069bd502ef98b3ab3c3c8a5aca3e40c1d356f 100644 |
--- a/src/core/SkRecorder.h |
+++ b/src/core/SkRecorder.h |
@@ -41,7 +41,8 @@ public: |
SkRecorder(SkRecord*, int width, int height, SkMiniRecorder* = nullptr); // legacy version |
SkRecorder(SkRecord*, const SkRect& bounds, SkMiniRecorder* = nullptr); |
- void reset(SkRecord*, const SkRect& bounds, SkMiniRecorder* = nullptr); |
+ enum DrawPictureMode { Record_DrawPictureMode, Playback_DrawPictureMode }; |
+ void reset(SkRecord*, const SkRect& bounds, DrawPictureMode, SkMiniRecorder* = nullptr); |
size_t approxBytesUsedBySubPictures() const { return fApproxBytesUsedBySubPictures; } |
@@ -137,6 +138,7 @@ private: |
return devBounds; |
} |
+ DrawPictureMode fDrawPictureMode; |
size_t fApproxBytesUsedBySubPictures; |
SkRecord* fRecord; |
SkAutoTDelete<SkDrawableList> fDrawableList; |