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

Unified Diff: include/core/SkPicture.h

Issue 727363003: wip for drawables (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: works, but I took a few short-cuts Created 6 years, 1 month 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 | « no previous file | samplecode/SampleArc.cpp » ('j') | src/core/SkCanvasDrawable.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPicture.h
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index 4bef2b0d2f88a0541813eec4f585e300a7728c28..4a021b9824010a4f6cb2855303802a75c4fcded3 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -283,15 +283,24 @@ private:
typedef SkRefCnt INHERITED;
- // Takes ownership of the SkRecord, refs the (optional) BBH.
- SkPicture(SkScalar width, SkScalar height, SkRecord*, SkBBoxHierarchy*);
+ // Takes ownership of the SkRecord, refs the (optional) drawablePicts and BBH.
+ SkPicture(SkScalar width, SkScalar height, SkRecord*, SkData* drawablePicts,
+ SkBBoxHierarchy*);
// Return as a new SkPicture that's backed by SkRecord.
static SkPicture* Forwardport(const SkPicture&);
// Return as a new SkPicture that's backed by the old backend.
- static SkPicture* Backport(const SkRecord& src, const SkRect& cullRect);
+ static SkPicture* Backport(const SkRecord& src,
+ SkPicture* const drawablePicts[], int drawableCount,
+ const SkRect& cullRect);
SkAutoTDelete<SkRecord> fRecord;
SkAutoTUnref<SkBBoxHierarchy> fBBH;
+ SkAutoTUnref<SkData> fDrawablePicts;
+
+ // helpers for fDrawablePicts
+ int drawableCount() const;
+ // will return NULL if drawableCount() returns 0
+ SkPicture* const* drawablePicts() const;
struct PathCounter;
« no previous file with comments | « no previous file | samplecode/SampleArc.cpp » ('j') | src/core/SkCanvasDrawable.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698