aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPicture.h
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-25 14:36:28 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-25 14:36:28 +0000
commit34342f6f5127122ecc32166dcffa7f3d2a45c387 (patch)
treec81853324ad7a7461527222b3a13dc5cd6496aa9 /include/core/SkPicture.h
parentec95a4ae45e9bff1a92627372fd771b389813fec (diff)
export flags on the state of the world when a picture was serialized.
e.g. don't read/write functionptrs in that case (sizeof may be different for one) Review URL: https://codereview.appspot.com/6331050 git-svn-id: http://skia.googlecode.com/svn/trunk@4318 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkPicture.h')
-rw-r--r--include/core/SkPicture.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index 51ed0d71ac..976c594cad 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -37,6 +37,10 @@ public:
this call, those elements will not appear in this picture.
*/
SkPicture(const SkPicture& src);
+ /**
+ * Recreate a picture that was serialized into a stream. If an error occurs
+ * the picture will be "empty" : width and height == 0
+ */
explicit SkPicture(SkStream*);
virtual ~SkPicture();