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

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: 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
Index: src/codec/SkCodec_libgif.h
diff --git a/src/codec/SkCodec_libgif.h b/src/codec/SkCodec_libgif.h
index afbc284cd1929ef383ee333e05c6d64748522260..49b08b1f2682ee6b627b217f5369fb6210b6c18f 100644
--- a/src/codec/SkCodec_libgif.h
+++ b/src/codec/SkCodec_libgif.h
@@ -123,8 +123,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);
/*
* @return true if the read is successful and false if the read fails.
@@ -132,7 +135,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;

Powered by Google App Engine
This is Rietveld 408576698