summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/ImageBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics/ImageBuffer.h')
-rw-r--r--Source/WebCore/platform/graphics/ImageBuffer.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/WebCore/platform/graphics/ImageBuffer.h b/Source/WebCore/platform/graphics/ImageBuffer.h
index c184bbe..fa546e3 100644
--- a/Source/WebCore/platform/graphics/ImageBuffer.h
+++ b/Source/WebCore/platform/graphics/ImageBuffer.h
@@ -33,6 +33,7 @@
#include "FloatRect.h"
#include "GraphicsTypes.h"
#include "IntSize.h"
+#include "ImageBuffer.h"
#include "ImageBufferData.h"
#include <wtf/ByteArray.h>
#include <wtf/Forward.h>
@@ -77,9 +78,9 @@ namespace WebCore {
const IntSize& size() const { return m_size; }
int width() const { return m_size.width(); }
int height() const { return m_size.height(); }
-
+
size_t dataSize() const;
-
+
GraphicsContext* context() const;
bool isAccelerated() const { return m_accelerateRendering; }
@@ -91,7 +92,7 @@ namespace WebCore {
void putUnmultipliedImageData(ByteArray*, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint);
void putPremultipliedImageData(ByteArray*, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint);
-
+
String toDataURL(const String& mimeType, const double* quality = 0) const;
#if !USE(CG)
AffineTransform baseTransform() const { return AffineTransform(); }
@@ -129,7 +130,7 @@ namespace WebCore {
ImageBuffer(const IntSize&, ColorSpace colorSpace, RenderingMode renderingMode, bool& success);
};
-#if USE(CG) || USE(SKIA)
+#if USE(CG) || USE(SKIA) || PLATFORM(ANDROID)
String ImageDataToDataURL(const ImageData& input, const String& mimeType, const double* quality);
#endif