| Index: include/core/SkPicture.h
|
| ===================================================================
|
| --- include/core/SkPicture.h (revision 13640)
|
| +++ include/core/SkPicture.h (working copy)
|
| @@ -217,6 +217,17 @@
|
| void abortPlayback();
|
| #endif
|
|
|
| + /** Return true if the SkStream/Buffer represents a serialized picture, and
|
| + fills out SkPictInfo. After this function returns, the data source is not
|
| + rewound so it will have to be manually reset before passing to
|
| + CreateFromStream or CreateFromBuffer. Note, CreateFromStream and
|
| + CreateFromBuffer perform this check internally so these entry points are
|
| + intended for stand alone tools.
|
| + If false is returned, SkPictInfo is unmodified.
|
| + */
|
| + static bool InternalOnly_StreamIsSKP(SkStream*, SkPictInfo*);
|
| + static bool InternalOnly_BufferIsSKP(SkReadBuffer&, SkPictInfo*);
|
| +
|
| protected:
|
| // V2 : adds SkPixelRef's generation ID.
|
| // V3 : PictInfo tag at beginning, and EOF tag at the end
|
| @@ -262,13 +273,6 @@
|
| // For testing. Derived classes may instantiate an alternate
|
| // SkBBoxHierarchy implementation
|
| virtual SkBBoxHierarchy* createBBoxHierarchy() const;
|
| -
|
| - // Return true if the SkStream represents a serialized picture, and fills out
|
| - // SkPictInfo. After this function returns, the SkStream is not rewound; it
|
| - // will be ready to be parsed to create an SkPicturePlayback.
|
| - // If false is returned, SkPictInfo is unmodified.
|
| - static bool StreamIsSKP(SkStream*, SkPictInfo*);
|
| - static bool BufferIsSKP(SkReadBuffer&, SkPictInfo*);
|
| private:
|
| void createHeader(void* header) const;
|
|
|
|
|