From 6f5e619b877b0dc1a42910637a6ffe37add98001 Mon Sep 17 00:00:00 2001 From: scroggo Date: Thu, 18 Jun 2015 12:53:43 -0700 Subject: Add SkWebpCodec, for decoding .webp images. Based on SkImageDecoder_libwebp. TODO: Support YUV? (Longer term - may influence our API for SkImageGenerator) BUG=skia:3257 Review URL: https://codereview.chromium.org/1044433002 --- dm/DM.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dm') diff --git a/dm/DM.cpp b/dm/DM.cpp index 33ce0a41bf..60929d5700 100644 --- a/dm/DM.cpp +++ b/dm/DM.cpp @@ -259,8 +259,8 @@ 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). static const char* const exts[] = { - "bmp", "gif", "jpg", "jpeg", "png", "ico", "wbmp", - "BMP", "GIF", "JPG", "JPEG", "PNG", "ICO", "WBMP" + "bmp", "gif", "jpg", "jpeg", "png", "ico", "wbmp", "webp", + "BMP", "GIF", "JPG", "JPEG", "PNG", "ICO", "WBMP", "WEBP", }; for (uint32_t i = 0; i < SK_ARRAY_COUNT(exts); i++) { -- cgit v1.2.3