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

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

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.cpp ('k') | Source/core/inspector/InspectorLayerTreeAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorLayerTreeAgent.h
diff --git a/Source/core/inspector/InspectorLayerTreeAgent.h b/Source/core/inspector/InspectorLayerTreeAgent.h
index 94144194ef34a0659f78702d1938d9ed1d3faabb..6aca73ab88a59001540d18d795dbb6fd7fb2450b 100644
--- a/Source/core/inspector/InspectorLayerTreeAgent.h
+++ b/Source/core/inspector/InspectorLayerTreeAgent.h
@@ -63,6 +63,10 @@ public:
virtual void clearFrontend() OVERRIDE;
virtual void restore() OVERRIDE;
+ // Called from InspectorController
+ void willAddPageOverlay(const GraphicsLayer*);
+ void didRemovePageOverlay(const GraphicsLayer*);
+
// Called from InspectorInstrumentation
void layerTreeDidChange();
void didPaint(RenderObject*, const GraphicsLayer*, GraphicsContext*, const LayoutRect&);
@@ -88,11 +92,13 @@ private:
typedef HashMap<int, int> LayerIdToNodeIdMap;
void buildLayerIdToNodeIdMap(RenderLayer*, LayerIdToNodeIdMap&);
+ void gatherGraphicsLayers(GraphicsLayer*, HashMap<int, int>& layerIdToNodeIdMap, RefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> >&);
int idForNode(Node*);
InspectorFrontend::LayerTree* m_frontend;
Page* m_page;
InspectorDOMAgent* m_domAgent;
+ Vector<int, 2> m_pageOverlayLayerIds;
typedef HashMap<String, LayerSnapshot> SnapshotById;
SnapshotById m_snapshotById;
« no previous file with comments | « Source/core/inspector/InspectorController.cpp ('k') | Source/core/inspector/InspectorLayerTreeAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698