diff options
Diffstat (limited to 'Source/WebKit2/UIProcess/BackingStore.h')
-rw-r--r-- | Source/WebKit2/UIProcess/BackingStore.h | 14 |
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 }; |