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

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

Issue 30383002: Merge 159961 "Defer the real work in updateCompositingLayers unt..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1675/
Patch Set: Created 7 years, 2 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 | « LayoutTests/http/tests/inspector/inspector-test.js ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorLayerTreeAgent.cpp
===================================================================
--- Source/core/inspector/InspectorLayerTreeAgent.cpp (revision 159992)
+++ Source/core/inspector/InspectorLayerTreeAgent.cpp (working copy)
@@ -181,6 +181,8 @@
*errorString = "Not in the compositing mode";
return;
}
+ // FIXME: when inspector layer access is made asynchronous, this will probably need to be changed.
+ compositor->updateCompositingLayers(CompositingUpdateFinishAllDeferredWork);
if (!nodeId) {
buildLayerIdToNodeIdMap(errorString, compositor->rootRenderLayer(), layerIdToNodeIdMap);
gatherGraphicsLayers(compositor->rootGraphicsLayer(), layerIdToNodeIdMap, layers);
@@ -197,6 +199,7 @@
return;
}
RenderLayer* enclosingLayer = renderer->enclosingLayer();
+ ASSERT(enclosingLayer->enclosingCompositingLayer());
GraphicsLayer* enclosingGraphicsLayer = enclosingLayer->enclosingCompositingLayer()->compositedLayerMapping()->childForSuperlayers();
buildLayerIdToNodeIdMap(errorString, enclosingLayer, layerIdToNodeIdMap);
gatherGraphicsLayers(enclosingGraphicsLayer, layerIdToNodeIdMap, layers);
« no previous file with comments | « LayoutTests/http/tests/inspector/inspector-test.js ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698