| Index: dm/DM.cpp
|
| diff --git a/dm/DM.cpp b/dm/DM.cpp
|
| index 870b371cc44d089cc53696d81a2c51e2fabdb1ef..e8bf4935f3aa097d64c0ac74eb557350ce884fcb 100644
|
| --- a/dm/DM.cpp
|
| +++ b/dm/DM.cpp
|
| @@ -153,9 +153,17 @@ static void push_src(const char* tag, Src* s) {
|
| static bool codec_supported(const char* ext) {
|
| // FIXME: Once other versions of SkCodec are available, we can add them to this
|
| // list (and eventually we can remove this check once they are all supported).
|
| - return strcmp(ext, "png") == 0 || strcmp(ext, "PNG") == 0 ||
|
| - strcmp(ext, "bmp") == 0 || strcmp(ext, "BMP") == 0 ||
|
| - strcmp(ext, "ico") == 0 || strcmp(ext, "ICO") == 0;
|
| + static const char* const exts[] = {
|
| + "bmp", "gif", "png", "ico",
|
| + "BMP", "GIF", "PNG", "ICO",
|
| + };
|
| +
|
| + for (uint32_t i = 0; i < SK_ARRAY_COUNT(exts); i++) {
|
| + if (0 == strcmp(exts[i], ext)) {
|
| + return true;
|
| + }
|
| + }
|
| + return false;
|
| }
|
|
|
| static void gather_srcs() {
|
|
|