summaryrefslogtreecommitdiffstats
path: root/Source/WebKit2/UIProcess/DrawingAreaProxyImpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/UIProcess/DrawingAreaProxyImpl.h')
-rw-r--r--Source/WebKit2/UIProcess/DrawingAreaProxyImpl.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/WebKit2/UIProcess/DrawingAreaProxyImpl.h b/Source/WebKit2/UIProcess/DrawingAreaProxyImpl.h
index 17c7512..11e430c 100644
--- a/Source/WebKit2/UIProcess/DrawingAreaProxyImpl.h
+++ b/Source/WebKit2/UIProcess/DrawingAreaProxyImpl.h
@@ -68,10 +68,14 @@ private:
void sendUpdateBackingStoreState(RespondImmediatelyOrNot);
void waitForAndDispatchDidUpdateBackingStoreState();
+#if USE(ACCELERATED_COMPOSITING)
void enterAcceleratedCompositingMode(const LayerTreeContext&);
void exitAcceleratedCompositingMode();
bool isInAcceleratedCompositingMode() const { return !m_layerTreeContext.isEmpty(); }
+#else
+ bool isInAcceleratedCompositingMode() const { return false; }
+#endif
void discardBackingStoreSoon();
void discardBackingStore();
@@ -85,9 +89,11 @@ private:
// whenever our state changes in a way that will require a new backing store to be allocated.
uint64_t m_nextBackingStoreStateID;
+#if USE(ACCELERATED_COMPOSITING)
// The current layer tree context.
LayerTreeContext m_layerTreeContext;
-
+#endif
+
// Whether we've sent a UpdateBackingStoreState message and are now waiting for a DidUpdateBackingStoreState message.
// Used to throttle UpdateBackingStoreState messages so we don't send them faster than the Web process can handle.
bool m_isWaitingForDidUpdateBackingStoreState;