From 1d09ee7c04d635e93bb85d2e2ac39f445f5540aa Mon Sep 17 00:00:00 2001 From: scroggo Date: Mon, 15 Dec 2014 08:53:35 -0800 Subject: [PATCH] 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 --- dm/DM.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 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); } -- 2.34.1