aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2014-06-12 05:51:22 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-06-12 05:51:22 -0700
commite26e65e8f831f7a5626c92d11bbb8c2cec1f70de (patch)
tree1586df1f28e642e12c875adbeabc4e711ec9a29b /include
parent679426c0b4b6568a79a7a69ac4fc9ba248009d19 (diff)
Remove SkPicture pointer from SkPicturePlayback
This CL simplifies the relationship between SkPicture and SkPicturePlayback by moving the path heap into SkPicturePlayback and removing SkPicturePlayback's SkPicture pointer. R=mtklein@google.com, reed@google.com Author: robertphillips@google.com Review URL: https://codereview.chromium.org/334493002
Diffstat (limited to 'include')
-rw-r--r--include/core/SkPicture.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index 0b6261af4e..fcedcefb1f 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -23,7 +23,6 @@ class SkBBoxHierarchy;
class SkCanvas;
class SkDrawPictureCallback;
class SkData;
-class SkPathHeap;
class SkPicturePlayback;
class SkPictureRecord;
class SkStream;
@@ -286,23 +285,12 @@ protected:
// playback is unchanged.
SkPicture(SkPicturePlayback*, int width, int height);
- SkPicture(int width, int height, SkPictureRecord& record, bool deepCopyOps);
+ SkPicture(int width, int height, const SkPictureRecord& record, bool deepCopyOps);
private:
- 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 {