Index: include/core/SkPicture.h |
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h |
index 6e785d43da02d58f352ff87cd2066a611f94d01b..c85630fcd56989aee5f66d8be961386d66ffa8fd 100644 |
--- a/include/core/SkPicture.h |
+++ b/include/core/SkPicture.h |
@@ -272,7 +272,7 @@ private: |
void createHeader(SkPictInfo* info) const; |
static bool IsValidPictInfo(const SkPictInfo& info); |
- friend class SkPictureRecorder; // just for SkPicture-based constructor |
+ friend class SkPictureRecorder; // SkRecord-based constructor. |
friend class SkGpuDevice; // for fData access |
friend class GrLayerHoister; // access to fRecord |
friend class CollectLayers; // access to fRecord |
@@ -289,6 +289,8 @@ private: |
SkPicture(SkScalar width, SkScalar height, SkRecord*, 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); |
SkAutoTDelete<SkRecord> fRecord; |
SkAutoTUnref<SkBBoxHierarchy> fBBH; |