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

Unified Diff: src/codec/SkCodec_libgif.h

Issue 1321433002: Add subsetting to SkScaledCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@gif-scan
Patch Set: Rebase - it compiles but I'm sure everything is broken Created 5 years, 2 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/SkCodecPriv.h ('k') | src/codec/SkCodec_libgif.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codec/SkCodec_libgif.h
diff --git a/src/codec/SkCodec_libgif.h b/src/codec/SkCodec_libgif.h
index 871cbacb04c67ecc4e87f1e2da850be1acd477af..1d51f870788cc2ea7397bea47ad9c741bfc23f61 100644
--- a/src/codec/SkCodec_libgif.h
+++ b/src/codec/SkCodec_libgif.h
@@ -130,8 +130,11 @@ private:
* adjusted if the image frame size does not match the size
* indicated in the header.
* @param zeroInit Indicates if destination memory is zero initialized.
+ * @param subsetLeft Left offset for each row decode.
+ * @param subsetWidth Width of each row decode.
*/
- Result initializeSwizzler(const SkImageInfo& dstInfo, ZeroInitialized zeroInit);
+ Result initializeSwizzler(const SkImageInfo& dstInfo,
+ ZeroInitialized zeroInit, int subsetLeft, int subsetWidth);
SkSampler* getSampler(bool createIfNecessary) override { return fSwizzler; }
@@ -141,7 +144,8 @@ private:
bool readRow();
Result onStartScanlineDecode(const SkImageInfo& dstInfo, const Options& opts,
- SkPMColor inputColorPtr[], int* inputColorCount) override;
+ SkPMColor inputColorPtr[], int* inputColorCount, int subsetLeft,
+ int subsetWidth) override;
int onGetScanlines(void* dst, int count, size_t rowBytes) override;
« no previous file with comments | « src/codec/SkCodecPriv.h ('k') | src/codec/SkCodec_libgif.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698