summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/BackingStore.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebKit2/UIProcess/BackingStore.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebKit2/UIProcess/BackingStore.h')
-rw-r--r--Source/WebKit2/UIProcess/BackingStore.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/Source/WebKit2/UIProcess/BackingStore.h b/Source/WebKit2/UIProcess/BackingStore.h
index 0a9fe9a6f..14de1f424 100644
--- a/Source/WebKit2/UIProcess/BackingStore.h
+++ b/Source/WebKit2/UIProcess/BackingStore.h
@@ -30,8 +30,7 @@
#include <wtf/Noncopyable.h>
#if USE(CAIRO)
-#include <RefPtrCairo.h>
-#include <WebCore/WidgetBackingStore.h>
+#include <WebCore/BackingStoreBackendCairo.h>
#endif
namespace WebKit {
@@ -44,7 +43,7 @@ class BackingStore {
WTF_MAKE_NONCOPYABLE(BackingStore);
public:
- BackingStore(const WebCore::IntSize&, float deviceScaleFactor, WebPageProxy*);
+ BackingStore(const WebCore::IntSize&, float deviceScaleFactor, WebPageProxy&);
~BackingStore();
const WebCore::IntSize& size() const { return m_size; }
@@ -61,12 +60,15 @@ private:
void incorporateUpdate(ShareableBitmap*, const UpdateInfo&);
void scroll(const WebCore::IntRect& scrollRect, const WebCore::IntSize& scrollOffset);
+#if USE(CAIRO)
+ std::unique_ptr<WebCore::BackingStoreBackendCairo> createBackend();
+#endif
+
WebCore::IntSize m_size;
float m_deviceScaleFactor;
- WebPageProxy* m_webPageProxy;
-
+ WebPageProxy& m_webPageProxy;
#if USE(CAIRO)
- OwnPtr<WebCore::WidgetBackingStore> m_backingStore;
+ std::unique_ptr<WebCore::BackingStoreBackendCairo> m_backend;
#endif
};