aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVikas Arora <vikasa@google.com>2011-06-22 17:59:02 +0530
committerVikas Arora <vikasa@google.com>2011-06-22 17:59:02 +0530
commita059123d8eb75302b13a7fd831478413d124d618 (patch)
tree5d810a34191b0e2b32fd4446b5026caa00de5cb0 /include
parent4eb5f622ae8a529cdf2a2fe6347e6bd97b5f28cb (diff)
downloadexternal_skia-a059123d8eb75302b13a7fd831478413d124d618.zip
external_skia-a059123d8eb75302b13a7fd831478413d124d618.tar.gz
external_skia-a059123d8eb75302b13a7fd831478413d124d618.tar.bz2
Add WebP Encoder support to SkImageEncoder.
Extending Skia-WebP interface to handle the WebP encoding as well. The WebP encoding is required for sharing WebP images and transcoding images from other formats like PNG/JPEG to WEBP. Change-Id: I23d52323abf5e7eec0c6d3e0159a1ca7baee468b
Diffstat (limited to 'include')
-rw-r--r--include/images/SkImageEncoder.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/images/SkImageEncoder.h b/include/images/SkImageEncoder.h
index 94989c0..c56e080 100644
--- a/include/images/SkImageEncoder.h
+++ b/include/images/SkImageEncoder.h
@@ -10,7 +10,8 @@ class SkImageEncoder {
public:
enum Type {
kJPEG_Type,
- kPNG_Type
+ kPNG_Type,
+ kWEBP_Type
};
static SkImageEncoder* Create(Type);