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. |
*/ |