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; |