summaryrefslogtreecommitdiffstats
path: root/Source/Platform/chromium/public/WebIOSurfaceLayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Platform/chromium/public/WebIOSurfaceLayer.h')
-rw-r--r--Source/Platform/chromium/public/WebIOSurfaceLayer.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/Source/Platform/chromium/public/WebIOSurfaceLayer.h b/Source/Platform/chromium/public/WebIOSurfaceLayer.h
index bcf14112a..37a4c6792 100644
--- a/Source/Platform/chromium/public/WebIOSurfaceLayer.h
+++ b/Source/Platform/chromium/public/WebIOSurfaceLayer.h
@@ -30,19 +30,27 @@
#include "WebLayer.h"
#include "WebSize.h"
+namespace WebCore {
+class IOSurfaceLayerChromium;
+}
+
namespace WebKit {
// This class represents a layer that renders an externally managed IOSurface.
-class WebIOSurfaceLayer {
+class WebIOSurfaceLayer : public WebLayer {
public:
- WEBKIT_EXPORT static WebIOSurfaceLayer* create();
+ WEBKIT_EXPORT static WebIOSurfaceLayer create();
+ WebIOSurfaceLayer() { }
virtual ~WebIOSurfaceLayer() { }
- virtual WebLayer* layer() = 0;
-
// Sets the IO surface id that represents this layer's contents.
- virtual void setIOSurfaceProperties(unsigned ioSurfaceId, WebSize) = 0;
+ WEBKIT_EXPORT void setIOSurfaceProperties(unsigned ioSurfaceId, WebSize);
+
+private:
+#if WEBKIT_IMPLEMENTATION
+ explicit WebIOSurfaceLayer(PassRefPtr<WebCore::IOSurfaceLayerChromium>);
+#endif
};
} // namespace WebKit