Index: src/core/SkPicturePlayback.h |
diff --git a/src/core/SkPicturePlayback.h b/src/core/SkPicturePlayback.h |
index efa67225b53903534023de6d7b5cc4765bf62ee6..909488b4b7a483550d464dbc32aef9f5fedc4bf3 100644 |
--- a/src/core/SkPicturePlayback.h |
+++ b/src/core/SkPicturePlayback.h |
@@ -64,12 +64,14 @@ public: |
explicit SkPicturePlayback(const SkPictureRecord& record, bool deepCopy = false); |
static SkPicturePlayback* CreateFromStream(SkStream*, const SkPictInfo&, |
SkPicture::InstallPixelRefProc); |
+ static SkPicturePlayback* CreateFromBuffer(SkReadBuffer&); |
virtual ~SkPicturePlayback(); |
void draw(SkCanvas& canvas, SkDrawPictureCallback*); |
void serialize(SkWStream*, SkPicture::EncodeBitmap) const; |
+ void flatten(SkWriteBuffer&) const; |
void dumpSize() const; |
@@ -84,6 +86,7 @@ public: |
protected: |
bool parseStream(SkStream*, const SkPictInfo&, |
SkPicture::InstallPixelRefProc); |
+ bool parseBuffer(SkReadBuffer& buffer); |
#ifdef SK_DEVELOPER |
virtual bool preDraw(int opIndex, int type); |
virtual void postDraw(int opIndex); |