Index: dm/DM.cpp |
diff --git a/dm/DM.cpp b/dm/DM.cpp |
index 9dcdff1a0fce6f98f10228d33595e618a31f4c2e..0d998b679dfa45a27a2b6feb5940f5dc44af79b9 100644 |
--- a/dm/DM.cpp |
+++ b/dm/DM.cpp |
@@ -212,7 +212,10 @@ static void push_codec_srcs(Path path) { |
// TODO (msarett): Add more scaling tests as we implement more flexible scaling. |
// TODO (msarett): Implement scaling tests for SkImageDecoder in order to compare with these |
// tests. SkImageDecoder supports downscales by integer factors. |
- const float scales[] = { 0.125f, 0.25f, 0.375f, 0.5f, 0.625f, 0.750f, 0.875f, 1.0f }; |
+ // SkJpegCodec natively supports scaling to: 0.125, 0.25, 0.375, 0.5, 0.625, 0.75, 0.875 |
+ // We test natively supported scales and non natively supported scales, to test all functionalty |
scroggo
2015/08/05 15:36:00
Do we need all of these before we start supporting
emmaleer
2015/08/05 18:41:51
I removed an couple, but I think we need most of t
|
+ const float scales[] = { 0.1f, 0.125f, 0.16666666f, 0.2f, 0.25f, 0.3f, 0.375f, 0.4f, 0.5f, 0.6f, |
+ 0.625f, 0.7f, 0.750f, 0.8f, 0.875f, 0.9f, 1.0f }; |
msarett
2015/08/05 15:54:56
Per our discussion in person, let's try to make it
emmaleer
2015/08/05 18:41:52
Acknowledged.
|
for (float scale : scales) { |
if (scale != 1.0f && (path.endsWith(".webp") || path.endsWith(".WEBP"))) { |