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

Unified Diff: include/core/SkPicture.h

Issue 249453002: First step in pulling SkPicturePlayback & SkPictureRecord out of SkPicture (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: cleanup Created 6 years, 8 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
« no previous file with comments | « debugger/QT/SkDebuggerGUI.cpp ('k') | src/core/SkBBoxHierarchyRecord.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « debugger/QT/SkDebuggerGUI.cpp ('k') | src/core/SkBBoxHierarchyRecord.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698