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

Unified Diff: src/codec/SkCodec_libpng.h

Issue 1018953003: Add SkEncodedFormat, used by SkCodec. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Just change SkCodec, with TODO for the others. 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 | « src/codec/SkCodec_libbmp.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codec/SkCodec_libpng.h
diff --git a/src/codec/SkCodec_libpng.h b/src/codec/SkCodec_libpng.h
index b255449fb535fbb3268597bbcdbca2805ed2fba9..debb14b882b8914d96011c1822afc0bcc7a9e600 100644
--- a/src/codec/SkCodec_libpng.h
+++ b/src/codec/SkCodec_libpng.h
@@ -6,6 +6,7 @@
*/
#include "SkCodec.h"
+#include "SkEncodedFormat.h"
#include "SkImageInfo.h"
extern "C" {
@@ -24,6 +25,7 @@ public:
protected:
Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, SkPMColor*, int*)
SK_OVERRIDE;
+ SkEncodedFormat onGetEncodedFormat() const SK_OVERRIDE { return kPNG_SkEncodedFormat; }
private:
png_structp fPng_ptr;
png_infop fInfo_ptr;
« no previous file with comments | « src/codec/SkCodec_libbmp.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698