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

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

Issue 898783003: Move rendering/RenderLayer* to layout/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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/InspectorLayerTreeAgent.h ('k') | Source/core/inspector/InspectorTraceEvents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorLayerTreeAgent.cpp
diff --git a/Source/core/inspector/InspectorLayerTreeAgent.cpp b/Source/core/inspector/InspectorLayerTreeAgent.cpp
index 268ee85233c083af8a907df1049ad098cae0b3a2..31b4950f0a76cb845cebfce7c5e771997006ac95 100644
--- a/Source/core/inspector/InspectorLayerTreeAgent.cpp
+++ b/Source/core/inspector/InspectorLayerTreeAgent.cpp
@@ -43,7 +43,7 @@
#include "core/inspector/InspectorState.h"
#include "core/inspector/InstrumentingAgents.h"
#include "core/layout/compositing/CompositedLayerMapping.h"
-#include "core/layout/compositing/RenderLayerCompositor.h"
+#include "core/layout/compositing/LayerCompositor.h"
#include "core/loader/DocumentLoader.h"
#include "core/rendering/RenderPart.h"
#include "core/rendering/RenderView.h"
@@ -217,18 +217,18 @@ void InspectorLayerTreeAgent::didPaint(RenderObject*, const GraphicsLayer* graph
PassRefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> > InspectorLayerTreeAgent::buildLayerTree()
{
- RenderLayerCompositor* compositor = renderLayerCompositor();
+ LayerCompositor* compositor = renderLayerCompositor();
if (!compositor || !compositor->inCompositingMode())
return nullptr;
LayerIdToNodeIdMap layerIdToNodeIdMap;
RefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> > layers = TypeBuilder::Array<TypeBuilder::LayerTree::Layer>::create();
- buildLayerIdToNodeIdMap(compositor->rootRenderLayer(), layerIdToNodeIdMap);
+ buildLayerIdToNodeIdMap(compositor->rootLayer(), layerIdToNodeIdMap);
gatherGraphicsLayers(rootGraphicsLayer(), layerIdToNodeIdMap, layers);
return layers.release();
}
-void InspectorLayerTreeAgent::buildLayerIdToNodeIdMap(RenderLayer* root, LayerIdToNodeIdMap& layerIdToNodeIdMap)
+void InspectorLayerTreeAgent::buildLayerIdToNodeIdMap(Layer* root, LayerIdToNodeIdMap& layerIdToNodeIdMap)
{
if (root->hasCompositedLayerMapping()) {
if (Node* node = root->renderer()->generatingNode()) {
@@ -236,14 +236,14 @@ void InspectorLayerTreeAgent::buildLayerIdToNodeIdMap(RenderLayer* root, LayerId
layerIdToNodeIdMap.set(graphicsLayer->platformLayer()->id(), idForNode(node));
}
}
- for (RenderLayer* child = root->firstChild(); child; child = child->nextSibling())
+ for (Layer* child = root->firstChild(); child; child = child->nextSibling())
buildLayerIdToNodeIdMap(child, layerIdToNodeIdMap);
if (!root->renderer()->isRenderIFrame())
return;
FrameView* childFrameView = toFrameView(toRenderPart(root->renderer())->widget());
if (RenderView* childRenderView = childFrameView->renderView()) {
- if (RenderLayerCompositor* childCompositor = childRenderView->compositor())
- buildLayerIdToNodeIdMap(childCompositor->rootRenderLayer(), layerIdToNodeIdMap);
+ if (LayerCompositor* childCompositor = childRenderView->compositor())
+ buildLayerIdToNodeIdMap(childCompositor->rootLayer(), layerIdToNodeIdMap);
}
}
@@ -264,10 +264,10 @@ int InspectorLayerTreeAgent::idForNode(Node* node)
return InspectorNodeIds::idForNode(node);
}
-RenderLayerCompositor* InspectorLayerTreeAgent::renderLayerCompositor()
+LayerCompositor* InspectorLayerTreeAgent::renderLayerCompositor()
{
RenderView* renderView = m_pageAgent->inspectedFrame()->contentRenderer();
- RenderLayerCompositor* compositor = renderView ? renderView->compositor() : nullptr;
+ LayerCompositor* compositor = renderView ? renderView->compositor() : nullptr;
return compositor;
}
@@ -302,7 +302,7 @@ GraphicsLayer* InspectorLayerTreeAgent::layerById(ErrorString* errorString, cons
*errorString = "Invalid layer id";
return nullptr;
}
- RenderLayerCompositor* compositor = renderLayerCompositor();
+ LayerCompositor* compositor = renderLayerCompositor();
if (!compositor) {
*errorString = "Not in compositing mode";
return nullptr;
« no previous file with comments | « Source/core/inspector/InspectorLayerTreeAgent.h ('k') | Source/core/inspector/InspectorTraceEvents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698