Index: src/codec/SkCodec_libgif.h |
diff --git a/src/codec/SkCodec_libgif.h b/src/codec/SkCodec_libgif.h |
index de59c6c32a4d1f511a14571c8f3213d60294e935..286789dc5f7af7ebe1a0351da76b9332c59e6a39 100644 |
--- a/src/codec/SkCodec_libgif.h |
+++ b/src/codec/SkCodec_libgif.h |
@@ -34,6 +34,19 @@ public: |
protected: |
/* |
+ * Read enough of the stream to initialize the SkGifCodec. |
scroggo
2015/04/09 17:37:17
Please add comments regarding ownership of SkStrea
msarett
2015/04/09 19:21:31
Done.
|
+ * Returns a bool representing success or failure. |
+ * |
+ * If it returned true, and codecOut was not NULL, |
+ * codecOut will be set to a new SkGifCodec. |
+ * |
+ * If it returned true, and codecOut was NULL, |
+ * gifOut must be non-NULL and gifOut will be set to a new |
+ * GifFileType pointer. |
+ */ |
+ static bool ReadHeader(SkStream*, SkCodec** codecOut, GifFileType** gifOut); |
+ |
+ /* |
* Initiates the gif decode |
*/ |
Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, |