aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@google.com>2014-12-15 08:53:35 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-15 08:53:35 -0800
commit1d09ee7c04d635e93bb85d2e2ac39f445f5540aa (patch)
tree5683832acee142a0070f6dbdd02ed6df52727418
parenteef87de21b7b629c87641aac1d091b83b6feabff (diff)
Add more filetypes to DM's image tests.
ico, wbmp, plus the alternate suffix jpeg. Also check for capitalized versions, since files sometimes use capitalized suffixes. BUG=skia:3235 Review URL: https://codereview.chromium.org/798383003
-rw-r--r--dm/DM.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/dm/DM.cpp b/dm/DM.cpp
index bda9995e35..047b8d6a50 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -249,7 +249,10 @@ int dm_main() {
SkTArray<SkString> images;
if (!FLAGS_images.isEmpty()) {
- const char* suffixes[] = { "bmp", "gif", "jpg", "png", "webp", "ktx", "astc" };
+ const char* suffixes[] = {
+ "bmp", "gif", "jpg", "jpeg", "png", "webp", "ktx", "astc", "wbmp", "ico",
+ "BMP", "GIF", "JPG", "JPEG", "PNG", "WEBP", "KTX", "ASTC", "WBMP", "ICO",
+ };
find_files(FLAGS_images[0], suffixes, SK_ARRAY_COUNT(suffixes), &images);
}