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

Unified Diff: include/codec/SkCodec.h

Issue 1240143002: Add the ability to decode a subset to SkCodec. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix line endings 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 cc635e012ca82bd2c11839ab10fe51ab5f9625a7..8a4d0142aae39d9b8de5927edabb04d02129b5b8 100644
--- a/include/codec/SkCodec.h
+++ b/include/codec/SkCodec.h
@@ -128,9 +128,16 @@ public:
*/
struct Options {
Options()
- : fZeroInitialized(kNo_ZeroInitialized) {}
+ : fZeroInitialized(kNo_ZeroInitialized)
+ {
+ fSubset.setEmpty();
+ }
ZeroInitialized fZeroInitialized;
+ /**
+ * If not empty, represents a subset of the original image to decode.
+ */
+ SkIRect fSubset;
};
/**

Powered by Google App Engine
This is Rietveld 408576698