Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1193)

Unified Diff: Source/core/inspector/InspectorController.cpp

Issue 173763002: DevTools: hide page overlay layers in LayerTreeAgent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed stray watchdog from test Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/inspector/InspectorController.h ('k') | Source/core/inspector/InspectorLayerTreeAgent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorController.cpp
diff --git a/Source/core/inspector/InspectorController.cpp b/Source/core/inspector/InspectorController.cpp
index eaa5cdf257d816389ed62c20931de9bced489a1d..0c68d6b70a8a0f1c7dab4c3ae9edad76fd281633 100644
--- a/Source/core/inspector/InspectorController.cpp
+++ b/Source/core/inspector/InspectorController.cpp
@@ -74,6 +74,7 @@ InspectorController::InspectorController(Page* page, InspectorClient* inspectorC
, m_injectedScriptManager(InjectedScriptManager::createForPage())
, m_state(adoptPtr(new InspectorCompositeState(inspectorClient)))
, m_overlay(InspectorOverlay::create(page, inspectorClient))
+ , m_layerTreeAgent(0)
, m_page(page)
, m_inspectorClient(inspectorClient)
, m_agents(m_instrumentingAgents.get(), m_state.get())
@@ -169,7 +170,9 @@ void InspectorController::initializeDeferredAgents()
m_agents.append(InspectorInputAgent::create(m_page, m_inspectorClient));
- m_agents.append(InspectorLayerTreeAgent::create(m_domAgent, m_page));
+ OwnPtr<InspectorLayerTreeAgent> layerTreeAgentPtr(InspectorLayerTreeAgent::create(m_domAgent, m_page));
+ m_layerTreeAgent = layerTreeAgentPtr.get();
+ m_agents.append(layerTreeAgentPtr.release());
}
void InspectorController::inspectedPageDestroyed()
@@ -469,4 +472,16 @@ void InspectorController::scriptsEnabled(bool enabled)
pageAgent->scriptsEnabled(enabled);
}
+void InspectorController::willAddPageOverlay(const GraphicsLayer* layer)
+{
+ if (m_layerTreeAgent)
+ m_layerTreeAgent->willAddPageOverlay(layer);
+}
+
+void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer)
+{
+ if (m_layerTreeAgent)
+ m_layerTreeAgent->didRemovePageOverlay(layer);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/core/inspector/InspectorController.h ('k') | Source/core/inspector/InspectorLayerTreeAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698