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

Unified Diff: include/codec/SkCodec.h

Issue 1260673002: SkScaledCodec class (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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: include/codec/SkCodec.h
diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h
index 1cdc88d4adcfc0dc4e028913348dd21c287e50e7..d8ea2e1430d6fdb0c7c773fad00e9167cd887f93 100644
--- a/include/codec/SkCodec.h
+++ b/include/codec/SkCodec.h
@@ -149,6 +149,7 @@ public:
Options()
: fZeroInitialized(kNo_ZeroInitialized)
, fSubset(NULL)
+ , fScaled(0)
scroggo 2015/07/27 15:09:19 nit: false
emmaleer 2015/07/27 18:31:38 Acknowledged.
{}
ZeroInitialized fZeroInitialized;
@@ -161,6 +162,7 @@ public:
* currently supports subsets), the top and left values must be even.
*/
SkIRect* fSubset;
+ bool fScaled;
scroggo 2015/07/27 15:09:19 please add comments explaining how this is used (a
emmaleer 2015/07/27 18:31:38 Acknowledged.
};
/**
@@ -244,6 +246,10 @@ public:
return this->onReallyHasAlpha();
}
+ bool isInterlaced() {
scroggo 2015/07/27 15:09:19 Please add comments, here and on the virtual metho
emmaleer 2015/07/27 18:31:38 Acknowledged.
+ return this->onIsInterlaced();
+ }
+
protected:
SkCodec(const SkImageInfo&, SkStream*);
@@ -288,6 +294,7 @@ protected:
}
virtual bool onReallyHasAlpha() const { return false; }
+ virtual bool onIsInterlaced() { return false; }
enum RewindState {
kRewound_RewindState,
« no previous file with comments | « gyp/codec.gyp ('k') | include/codec/SkScaledCodec.h » ('j') | include/codec/SkScaledCodec.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698