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

Unified Diff: src/codec/SkJpegCodec.h

Issue 1372973002: Move all knowledge of X sampling into SkScaledCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@codecSDmerge
Patch Set: Attempt to fix RLE overflow 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/SkCodec_wbmp.cpp ('k') | src/codec/SkJpegCodec.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codec/SkJpegCodec.h
diff --git a/src/codec/SkJpegCodec.h b/src/codec/SkJpegCodec.h
index b86396317b90bd848a77a1c6ec6b35726d574745..24594c1226c628f559314a3134b34615954a3968 100644
--- a/src/codec/SkJpegCodec.h
+++ b/src/codec/SkJpegCodec.h
@@ -58,6 +58,8 @@ protected:
bool onRewind() override;
+ bool onDimensionsSupported(const SkISize&) override;
+
private:
/*
@@ -102,14 +104,8 @@ private:
*/
bool setOutputColorSpace(const SkImageInfo& dst);
- /*
- * Checks if we can natively scale to the requested dimensions and natively scales the
- * dimensions if possible
- */
- bool nativelyScaleToDimensions(uint32_t width, uint32_t height);
-
// scanline decoding
- Result initializeSwizzler(const SkImageInfo&, const SkCodec::Options&);
+ SkSampler* getSampler() override;
Result onStartScanlineDecode(const SkImageInfo& dstInfo, const Options& options,
SkPMColor ctable[], int* ctableCount) override;
Result onGetScanlines(void* dst, int count, size_t rowBytes) override;
« no previous file with comments | « src/codec/SkCodec_wbmp.cpp ('k') | src/codec/SkJpegCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698