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

Unified Diff: src/codec/SkCodec_libbmp.h

Issue 1057483003: Handle rewinds in SkBmpCodec. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Initialize codec to defeat warning. Created 5 years, 9 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 | « no previous file | src/codec/SkCodec_libbmp.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codec/SkCodec_libbmp.h
diff --git a/src/codec/SkCodec_libbmp.h b/src/codec/SkCodec_libbmp.h
index 3328af26a02e65ad8d1aeaf8fc955f0e50f85e52..650259ad16cea6b8191097c6a80455768458defd 100644
--- a/src/codec/SkCodec_libbmp.h
+++ b/src/codec/SkCodec_libbmp.h
@@ -100,6 +100,15 @@ private:
/*
*
+ * Read enough of the stream to initialize the SkBmpCodec. Returns a bool
+ * representing success or failure. If it returned true, and codecOut was
+ * not NULL, it will be set to a new SkBmpCodec.
+ *
+ */
+ static bool ReadHeader(SkStream*, bool isIco, SkCodec** codecOut);
+
+ /*
+ *
* Performs the bitmap decoding for bit masks input format
*
*/
« no previous file with comments | « no previous file | src/codec/SkCodec_libbmp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698