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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp

Issue 1924173002: [DevTools] Improve performance of InstrumentingAgents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile Created 4 years, 8 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
Index: third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
index 8bc834abfd9cea966d2f4c1a7ad38432a4c0ebae..33a919290ddfab8163bff7bd0176c8d854642bdf 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
@@ -171,7 +171,7 @@ void InspectorLayerTreeAgent::restore()
void InspectorLayerTreeAgent::enable(ErrorString*)
{
- m_instrumentingAgents->setInspectorLayerTreeAgent(this);
+ m_instrumentingAgents->addInspectorLayerTreeAgent(this);
Document* document = m_inspectedFrames->root()->document();
if (document && document->lifecycle().state() >= DocumentLifecycle::CompositingClean)
layerTreeDidChange();
@@ -179,7 +179,7 @@ void InspectorLayerTreeAgent::enable(ErrorString*)
void InspectorLayerTreeAgent::disable(ErrorString*)
{
- m_instrumentingAgents->setInspectorLayerTreeAgent(0);
+ m_instrumentingAgents->removeInspectorLayerTreeAgent(this);
m_snapshotById.clear();
ErrorString unused;
}

Powered by Google App Engine
This is Rietveld 408576698