Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Unified Diff: include/core/SkPicture.h

Issue 334493002: Remove SkPicture pointer from SkPicturePlayback (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clean up Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/core/SkPicture.h
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index 0b6261af4e9b6e8f53d0164cf5a7ff760ef8bf74..fcedcefb1f495b93cc90e0237468a3013802bee2 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 {

Powered by Google App Engine
This is Rietveld 408576698