diff options
Diffstat (limited to 'src/core/SkRecorder.h')
-rw-r--r-- | src/core/SkRecorder.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/SkRecorder.h b/src/core/SkRecorder.h index 3809ae239d..688069bd50 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; |