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

Unified Diff: src/codec/SkJpegCodec.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/SkJpegCodec.h
diff --git a/src/codec/SkJpegCodec.h b/src/codec/SkJpegCodec.h
index 9c6f6a04e97bb7b5e892b1becaad7baf96e440cf..d814ad22885b9e2bdd13043022d77b2ef4333aee 100644
--- a/src/codec/SkJpegCodec.h
+++ b/src/codec/SkJpegCodec.h
@@ -109,9 +109,10 @@ private:
bool nativelyScaleToDimensions(uint32_t width, uint32_t height);
// scanline decoding
- Result initializeSwizzler(const SkImageInfo&, const SkCodec::Options&);
+ Result initializeSwizzler(const SkImageInfo&, const SkCodec::Options&, int subsetLeft,
+ int subsetWidth);
Result onStartScanlineDecode(const SkImageInfo& dstInfo, const Options& options,
- SkPMColor ctable[], int* ctableCount) override;
+ SkPMColor ctable[], int* ctableCount, int subsetLeft, int subsetWidth) override;
int onGetScanlines(void* dst, int count, size_t rowBytes) override;
bool onSkipScanlines(int count) override;

Powered by Google App Engine
This is Rietveld 408576698