Chromium Code Reviews| Index: Source/platform/graphics/ImageBuffer.h |
| diff --git a/Source/platform/graphics/ImageBuffer.h b/Source/platform/graphics/ImageBuffer.h |
| index 9ebb5ee89e510f13373d4d2b7a469f9936842aff..e196d6f66b636bf2b1385583dd291de7be7836f0 100644 |
| --- a/Source/platform/graphics/ImageBuffer.h |
| +++ b/Source/platform/graphics/ImageBuffer.h |
| @@ -43,6 +43,8 @@ |
| #include "wtf/PassOwnPtr.h" |
| #include "wtf/PassRefPtr.h" |
| #include "wtf/Uint8ClampedArray.h" |
| +#include "wtf/Vector.h" |
| +#include "wtf/text/WTFString.h" |
| namespace WTF { |
| @@ -146,6 +148,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 toDataVector(const String& mimeType, const double* quality, Vector<char>& encodedDataVector) const; |
|
Justin Novosad
2015/08/13 21:03:40
encodedDataVector is an output param: should be pa
|
| unsigned char* pixels() const { return m_data; } |
| int height() const { return m_size.height(); } |
| int width() const { return m_size.width(); } |