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

Unified Diff: src/codec/SkJpegDecoderMgr.h

Issue 1820073002: Add SkEncodedInfo to report properties of encoded image data (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Response to comments Created 4 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
Index: src/codec/SkJpegDecoderMgr.h
diff --git a/src/codec/SkJpegDecoderMgr.h b/src/codec/SkJpegDecoderMgr.h
index 7d34b67a0c0ab31d1ccaae32e55e728b848ef8f8..34734e12df562ae18800a767d1737825f9a5e89b 100644
--- a/src/codec/SkJpegDecoderMgr.h
+++ b/src/codec/SkJpegDecoderMgr.h
@@ -45,9 +45,13 @@ public:
void init();
/*
- * Recommend a color type based on the encoded format
+ * Returns true on success and false on failure.
+ *
+ * @param color Output parameter is set to the SkEncodedInfo::Color that matches
+ * the jpeg's encoded color type
+ *
*/
- SkColorType getColorType();
+ bool getEncodedColor(SkEncodedInfo::Color* color);
/*
* Free memory used by the decode manager

Powered by Google App Engine
This is Rietveld 408576698