OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
81 virtual void profileSnapshot(ErrorString*, const String& snapshotId, const i nt* minRepeatCount, const double* minDuration, RefPtr<TypeBuilder::Array<TypeBui lder::Array<double> > >&) OVERRIDE; | 81 virtual void profileSnapshot(ErrorString*, const String& snapshotId, const i nt* minRepeatCount, const double* minDuration, RefPtr<TypeBuilder::Array<TypeBui lder::Array<double> > >&) OVERRIDE; |
82 | 82 |
83 private: | 83 private: |
84 static unsigned s_lastSnapshotId; | 84 static unsigned s_lastSnapshotId; |
85 | 85 |
86 InspectorLayerTreeAgent(InspectorDOMAgent*, Page*); | 86 InspectorLayerTreeAgent(InspectorDOMAgent*, Page*); |
87 | 87 |
88 RenderLayerCompositor* renderLayerCompositor(); | 88 RenderLayerCompositor* renderLayerCompositor(); |
89 GraphicsLayer* layerById(ErrorString*, const String& layerId); | 89 GraphicsLayer* layerById(ErrorString*, const String& layerId); |
90 const LayerSnapshot* snapshotById(ErrorString*, const String& snapshotId); | 90 const LayerSnapshot* snapshotById(ErrorString*, const String& snapshotId); |
91 PassRefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> > buildLayerTre e(); | 91 bool buildLayerTree(TypeBuilder::Array<TypeBuilder::LayerTree::Layer>&); |
caseq
2014/02/27 13:46:55
I think you can revert this to original signature
malch
2014/02/27 14:58:59
Done.
| |
92 | 92 |
93 typedef HashMap<int, int> LayerIdToNodeIdMap; | 93 typedef HashMap<int, int> LayerIdToNodeIdMap; |
94 void buildLayerIdToNodeIdMap(RenderLayer*, LayerIdToNodeIdMap&); | 94 void buildLayerIdToNodeIdMap(RenderLayer*, LayerIdToNodeIdMap&); |
95 void gatherGraphicsLayers(GraphicsLayer*, HashMap<int, int>& layerIdToNodeId Map, RefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> >&); | 95 void gatherGraphicsLayers(GraphicsLayer*, HashMap<int, int>& layerIdToNodeId Map, TypeBuilder::Array<TypeBuilder::LayerTree::Layer>&); |
96 int idForNode(Node*); | 96 int idForNode(Node*); |
97 | 97 |
98 InspectorFrontend::LayerTree* m_frontend; | 98 InspectorFrontend::LayerTree* m_frontend; |
99 Page* m_page; | 99 Page* m_page; |
100 InspectorDOMAgent* m_domAgent; | 100 InspectorDOMAgent* m_domAgent; |
101 Vector<int, 2> m_pageOverlayLayerIds; | 101 Vector<int, 2> m_pageOverlayLayerIds; |
102 | 102 |
103 typedef HashMap<String, LayerSnapshot> SnapshotById; | 103 typedef HashMap<String, LayerSnapshot> SnapshotById; |
104 SnapshotById m_snapshotById; | 104 SnapshotById m_snapshotById; |
105 }; | 105 }; |
106 | 106 |
107 } // namespace WebCore | 107 } // namespace WebCore |
108 | 108 |
109 | 109 |
110 #endif // !defined(InspectorLayerTreeAgent_h) | 110 #endif // !defined(InspectorLayerTreeAgent_h) |
OLD | NEW |