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

Unified Diff: include/core/SkPicture.h

Issue 1671193002: Make SkPicture/SkImageGenerator default to SkCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Hide DefaultInstall; add a test Created 4 years, 10 months 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 | « gyp/tools.gyp ('k') | public.bzl » ('j') | no next file with comments »
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 720747e9a3232eeb9b07931b1ad1e939f489e511..d606a1ed63f9d60eb123649cddb9ffb1e952d635 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -54,8 +54,15 @@ public:
* @return A new SkPicture representing the serialized data, or NULL if the stream is
* invalid.
*/
- static SkPicture* CreateFromStream(SkStream*,
- InstallPixelRefProc proc = &SkImageDecoder::DecodeMemory);
+ static SkPicture* CreateFromStream(SkStream*, InstallPixelRefProc proc);
+
+ /**
+ * Recreate a picture that was serialized into a stream.
scroggo 2016/02/09 16:12:17 Should I include a comment alluding to how we'll d
reed1 2016/02/09 20:46:26 Sure. Something like...? Serialized images will b
scroggo 2016/02/09 21:07:14 Done - used SkIMageGenerator::NewFromEncoded, whic
+ * @param SkStream Serialized picture data. Ownership is unchanged by this call.
+ * @return A new SkPicture representing the serialized data, or NULL if the stream is
+ * invalid.
+ */
+ static SkPicture* CreateFromStream(SkStream*);
/**
* Recreate a picture that was serialized into a buffer. If the creation requires bitmap
« no previous file with comments | « gyp/tools.gyp ('k') | public.bzl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698