aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPicture.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-08-20 14:22:58 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-20 14:22:58 -0700
commit7b705bb17e09508e3761b54f59833b1ceb4ce9a6 (patch)
tree9c202bda6431256dfeca54c9ed1afa2e15f3dbc3 /include/core/SkPicture.h
parent74206bc48959ef7efddda74fc54d9640a87c28f4 (diff)
Always read .skp files and other serialized pictures into SkRecord.
This should switch all our internal tools that aren't clever about it over to SkRecord pictures. (The clever tools know what they're doing.) Also, deletes the old SkPicture::clone() path. return this or die. BUG=skia: R=robertphillips@google.com, mtklein@google.com, reed@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/481743003
Diffstat (limited to 'include/core/SkPicture.h')
-rw-r--r--include/core/SkPicture.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index 06cc6e2b07..79923a6a53 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -302,6 +302,8 @@ private:
// Takes ownership of the SkRecord, refs the (optional) BBH.
SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*);
+ // Return as a new SkPicture that's backed by SkRecord.
+ static SkPicture* Forwardport(const SkPicture&);
SkAutoTDelete<SkRecord> fRecord;
SkAutoTUnref<SkBBoxHierarchy> fBBH;