From 1dd3ea9d4523436578c86dc8d8f43d63fa188c01 Mon Sep 17 00:00:00 2001 From: scroggo Date: Fri, 20 Mar 2015 11:55:55 -0700 Subject: Add SkEncodedFormat, used by SkCodec. Needed by Android to determine the format. Review URL: https://codereview.chromium.org/1018953003 --- src/codec/SkCodec_libpng.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/codec/SkCodec_libpng.h') diff --git a/src/codec/SkCodec_libpng.h b/src/codec/SkCodec_libpng.h index b255449fb5..debb14b882 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; -- cgit v1.2.3