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

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

Issue 1355333005: Implement Asynchronous image encoding for Canvas.toBlob (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change async func to static so no need worry if canvas instance does not live long enough Created 5 years, 3 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
Index: third_party/WebKit/Source/platform/graphics/ImageBuffer.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.h b/third_party/WebKit/Source/platform/graphics/ImageBuffer.h
index 8019b9547c0300777b40fc6eb93638bfc2648da1..7d73455e2fc3ce7dde70951906fea587e7e6f0d1 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.h
@@ -154,8 +154,8 @@ private:
struct ImageDataBuffer {
ImageDataBuffer(const IntSize& size, const 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;
+ 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;
const unsigned char* pixels() const { return m_data; }
int height() const { return m_size.height(); }
int width() const { return m_size.width(); }

Powered by Google App Engine
This is Rietveld 408576698