Index: include/core/SkPicture.h |
=================================================================== |
--- include/core/SkPicture.h (revision 14323) |
+++ include/core/SkPicture.h (working copy) |
@@ -23,6 +23,7 @@ |
class SkCanvas; |
class SkDrawPictureCallback; |
class SkData; |
+class SkPathHeap; |
class SkPicturePlayback; |
class SkPictureRecord; |
class SkStream; |
@@ -358,6 +359,23 @@ |
SkCanvas* beginRecording(int width, int height, SkBBHFactory* factory, uint32_t recordFlags); |
private: |
+ friend class SkPictureRecord; |
+ friend class SkPictureTester; // for unit testing |
+ |
+ SkAutoTUnref<SkPathHeap> fPathHeap; // reference counted |
+ |
+ const SkPath& getPath(int index) const; |
+ int addPathToHeap(const SkPath& path); |
+ |
+ void flattenToBuffer(SkWriteBuffer& buffer) const; |
+ bool parseBufferTag(SkReadBuffer& buffer, uint32_t tag, uint32_t size); |
+ |
+ static void WriteTagSize(SkWriteBuffer& buffer, uint32_t tag, size_t size); |
+ static void WriteTagSize(SkWStream* stream, uint32_t tag, size_t size); |
+ |
+ void initForPlayback() const; |
+ void dumpSize() const; |
+ |
// An OperationList encapsulates a set of operation offsets into the picture byte |
// stream along with the CTMs needed for those operation. |
class OperationList : ::SkNoncopyable { |