Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(483)

Unified Diff: Source/platform/graphics/ImageBuffer.h

Issue 1302423004: Support lossy and lossless <canvas>.toDataURL for webp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/MIMETypeRegistry.cpp ('k') | Source/platform/graphics/ImageBuffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/ImageBuffer.h
diff --git a/Source/platform/graphics/ImageBuffer.h b/Source/platform/graphics/ImageBuffer.h
index 30ef58220895362c18aa865202fdd2b1d399e1f4..589a16369b4a7e2d794f82a646d6f182cf8621ad 100644
--- a/Source/platform/graphics/ImageBuffer.h
+++ b/Source/platform/graphics/ImageBuffer.h
@@ -154,7 +154,7 @@ private:
struct ImageDataBuffer {
ImageDataBuffer(const IntSize& size, unsigned char* data) : m_data(data), m_size(size) { }
String PLATFORM_EXPORT toDataURL(const String& mimeType, const double* quality) const;
- bool PLATFORM_EXPORT encodeImage(const String& mimeType, const double* quality, Vector<char>* output) const;
+ bool PLATFORM_EXPORT encodeImage(const String& mimeType, const double* quality, Vector<char>* output, String* outputMimeType) const;
unsigned char* pixels() const { return m_data; }
int height() const { return m_size.height(); }
int width() const { return m_size.width(); }
« no previous file with comments | « Source/platform/MIMETypeRegistry.cpp ('k') | Source/platform/graphics/ImageBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698