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

Unified Diff: include/codec/SkScaledCodec.h

Issue 1365313002: Merge SkCodec with SkScanlineDecoder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Skip ICO in SkScaledCodec for now Created 5 years, 3 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 | « include/codec/SkCodec.h ('k') | include/codec/SkScanlineDecoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/codec/SkScaledCodec.h
diff --git a/include/codec/SkScaledCodec.h b/include/codec/SkScaledCodec.h
index 1bcdf085b213f7eaab1cb9d9eca51a491138c58f..20428d8d73f40b0a391dfa061131fe1358fbb27c 100644
--- a/include/codec/SkScaledCodec.h
+++ b/include/codec/SkScaledCodec.h
@@ -8,9 +8,7 @@
#define SkScaledCodec_DEFINED
#include "SkCodec.h"
-#include "SkScanlineDecoder.h"
-class SkScanlineDecoder;
class SkStream;
/**
@@ -52,18 +50,18 @@ protected:
Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, SkPMColor*, int*)
override;
SkEncodedFormat onGetEncodedFormat() const override {
- return fScanlineDecoder->getEncodedFormat();
+ return fCodec->getEncodedFormat();
}
bool onReallyHasAlpha() const override {
- return fScanlineDecoder->reallyHasAlpha();
+ return fCodec->reallyHasAlpha();
}
private:
- SkAutoTDelete<SkScanlineDecoder> fScanlineDecoder;
+ SkAutoTDelete<SkCodec> fCodec;
- explicit SkScaledCodec(SkScanlineDecoder*);
+ explicit SkScaledCodec(SkCodec*);
typedef SkCodec INHERITED;
};
« no previous file with comments | « include/codec/SkCodec.h ('k') | include/codec/SkScanlineDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698