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

Unified Diff: include/codec/SkScaledCodec.h

Issue 1305123002: Scanline decoding for gifs (Closed) Base URL: https://skia.googlesource.com/skia.git@real-bmp-scan
Patch Set: Created 5 years, 4 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: include/codec/SkScaledCodec.h
diff --git a/include/codec/SkScaledCodec.h b/include/codec/SkScaledCodec.h
index 30925c0cf49e40c5cd6f146adb2e74947945d1d5..6cf8ebd23cd65e9fc00510e5e80840101f5251df 100644
--- a/include/codec/SkScaledCodec.h
+++ b/include/codec/SkScaledCodec.h
@@ -41,6 +41,12 @@ public:
}
/*
+ * Converts the original dimension to a scaled output dimension using the
+ * sample factor.
+ */
+ static inline int GetScaledDimension(int srcDim, int sampleFactor);
+
+ /*
* Returns the first coordinate that we will keep during sampling.
* The output can be interpreted as an x-coordinate or a y-coordinate.
*/

Powered by Google App Engine
This is Rietveld 408576698