diff options
author | 2014-11-24 14:41:51 -0800 | |
---|---|---|
committer | 2014-11-24 14:41:51 -0800 | |
commit | 1bdfd3f4f09e47364f76d3f08177b1ce844ac786 (patch) | |
tree | 91b83cdc89f884513bacac06ee8f008f4e8276f8 /src/core/SkCanvasDrawable.h | |
parent | 89ff0846fd9dacf5f081373746624d450a5f8c26 (diff) |
option to return drawable from recording
patch from issue 747033005 at patchset 80001 (http://crrev.com/747033005#ps80001)
BUG=skia:
Review URL: https://codereview.chromium.org/732653004
Diffstat (limited to 'src/core/SkCanvasDrawable.h')
-rw-r--r-- | src/core/SkCanvasDrawable.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/core/SkCanvasDrawable.h b/src/core/SkCanvasDrawable.h index f189f2d2cc..bc5b4fd351 100644 --- a/src/core/SkCanvasDrawable.h +++ b/src/core/SkCanvasDrawable.h @@ -10,8 +10,8 @@ #include "SkRefCnt.h" -class SkBBHFactory; class SkCanvas; +class SkPicture; struct SkRect; /** @@ -32,10 +32,7 @@ public: */ void draw(SkCanvas*); - SkPicture* newPictureSnapshot(SkBBHFactory* bbhFactory, uint32_t recordFlags); - SkPicture* newPictureSnapshot() { - return this->newPictureSnapshot(NULL, 0); - } + SkPicture* newPictureSnapshot(); /** * Return a unique value for this instance. If two calls to this return the same value, @@ -63,7 +60,7 @@ public: protected: virtual SkRect onGetBounds() = 0; virtual void onDraw(SkCanvas*) = 0; - virtual SkPicture* onNewPictureSnapshot(SkBBHFactory*, uint32_t recordFlags); + virtual SkPicture* onNewPictureSnapshot(); private: int32_t fGenerationID; |