aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Hassold <hassold@google.com>2010-12-22 10:39:09 -0800
committerEric Hassold <hassold@google.com>2011-01-05 11:05:06 -0800
commit8432fc7b32e4de877bb86b38c050b944bed53f14 (patch)
tree152e73ed8614ba4f4d3ed4a6ca41f68fe5904bb2 /include
parent3f396d7a86880aaf29fcce22a8204cf49e8d69d9 (diff)
downloadexternal_skia-8432fc7b32e4de877bb86b38c050b944bed53f14.zip
external_skia-8432fc7b32e4de877bb86b38c050b944bed53f14.tar.gz
external_skia-8432fc7b32e4de877bb86b38c050b944bed53f14.tar.bz2
Add support for WebP format in Skia
This enable Skia to decode WebP images. Since BitmapFactory relies on Skia to decode images, this aims at adding support for WebP format in any application relying on BitmapFactory. Decoder relies on libwepb library, imported as external library in external/webp in Android source tree. Change-Id: I13ef4c1404b989af6a856e9150c62e297200331b
Diffstat (limited to 'include')
-rw-r--r--include/images/SkImageDecoder.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/images/SkImageDecoder.h b/include/images/SkImageDecoder.h
index 0f71a3f..4343d6d 100644
--- a/include/images/SkImageDecoder.h
+++ b/include/images/SkImageDecoder.h
@@ -46,8 +46,9 @@ public:
kJPEG_Format,
kPNG_Format,
kWBMP_Format,
+ kWEBP_Format,
- kLastKnownFormat = kWBMP_Format
+ kLastKnownFormat = kWEBP_Format
};
/** Contains the image format name.
@@ -55,7 +56,7 @@ public:
*
* The format name gives a more meaningful error message than enum.
*/
- static const char *kFormatName[7];
+ static const char *kFormatName[8];
/** Return the compressed data's format (see Format enum)
*/