From 6bbb7fbbac94d0f511a7bd0cbd50854ab643bfb2 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 18 Sep 2012 15:53:33 +0200 Subject: Imported WebKit commit c7503cef7ecb236730d1309676ab9fc723fd061d (http://svn.webkit.org/repository/webkit/trunk@128886) New snapshot with various build fixes --- Source/WebKit/blackberry/Api/WebOverlay.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Source/WebKit/blackberry/Api/WebOverlay.h') diff --git a/Source/WebKit/blackberry/Api/WebOverlay.h b/Source/WebKit/blackberry/Api/WebOverlay.h index 5fe80c423..a59f60e28 100644 --- a/Source/WebKit/blackberry/Api/WebOverlay.h +++ b/Source/WebKit/blackberry/Api/WebOverlay.h @@ -55,6 +55,11 @@ class WebString; */ class BLACKBERRY_EXPORT WebOverlay { public: + enum ImageDataAdoptionType { + ReferenceImageData, + CopyImageData + }; + WebOverlay(); WebOverlay(WebCore::GraphicsLayerClient*); virtual ~WebOverlay(); @@ -94,7 +99,7 @@ public: bool addChild(WebOverlay*); void removeFromParent(); - void setContentsToImage(const unsigned char* data, const Platform::IntSize& imageSize); + void setContentsToImage(const unsigned char* data, const Platform::IntSize& imageSize, ImageDataAdoptionType = ReferenceImageData); void setContentsToColor(int r, int g, int b, int a); void setDrawsContent(bool); -- cgit v1.2.1