aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@google.com>2015-06-18 12:53:43 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-18 12:53:43 -0700
commit6f5e619b877b0dc1a42910637a6ffe37add98001 (patch)
tree47d908d1994934b33f33282353ae20830078f008 /dm
parentbedd0e87e6e993ebb42d9867fe4651b5c95f47f9 (diff)
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
Diffstat (limited to 'dm')
-rw-r--r--dm/DM.cpp4
1 files changed, 2 insertions, 2 deletions
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++) {