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

Unified Diff: src/codec/SkWebpCodec.h

Issue 1395183003: Add scaled subset API to SkCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@split0
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/SkWebpCodec.h
diff --git a/src/codec/SkWebpCodec.h b/src/codec/SkWebpCodec.h
index 97b3920ce9a4ea27e74c0737af613166e2ca2de6..900c3e3024086f235f581a1c4b7f777f0a424b6f 100644
--- a/src/codec/SkWebpCodec.h
+++ b/src/codec/SkWebpCodec.h
@@ -33,7 +33,11 @@ protected:
bool onDimensionsSupported(const SkISize&) override;
- bool onGetValidSubset(SkIRect* /* desiredSubset */) const override;
+ bool onSubsetSupported(const SkIRect& subset, bool isScanlineDecode) override;
+
+ bool onScaledSubsetSupported(const Options& options, bool isScanlineDecode) override;
+
+ bool onGetScaledSubsetDimensions(float desiredScale, const Options& options) const override;
private:
SkWebpCodec(const SkImageInfo&, SkStream*);

Powered by Google App Engine
This is Rietveld 408576698