[chromium] Hook WebCompositor interface for input events up to the compositor proper
[WebKit-https.git] / Source / WebCore / platform / graphics / chromium / cc / CCLayerTreeHost.cpp
index 7f3bb3e..ff7f40c 100644 (file)
@@ -48,7 +48,8 @@ PassRefPtr<CCLayerTreeHost> CCLayerTreeHost::create(CCLayerTreeHostClient* clien
 }
 
 CCLayerTreeHost::CCLayerTreeHost(CCLayerTreeHostClient* client, PassRefPtr<LayerChromium> rootLayer, const CCSettings& settings)
-    : m_animating(false)
+    : m_compositorIdentifier(-1)
+    , m_animating(false)
     , m_client(client)
     , m_frameNumber(0)
     , m_rootLayer(rootLayer)
@@ -76,6 +77,8 @@ bool CCLayerTreeHost::initialize()
     if (!m_proxy->initializeLayerRenderer())
         return false;
 
+    m_compositorIdentifier = m_proxy->compositorIdentifier();
+
     // Update m_settings based on capabilities that we got back from the renderer.
     m_settings.acceleratePainting = m_proxy->layerRendererCapabilities().usingAcceleratedPainting;