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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
77 virtual void profileSnapshot(ErrorString*, const String& snapshotId, const i nt* minRepeatCount, const double* minDuration, RefPtr<TypeBuilder::Array<TypeBui lder::Array<double> > >&) OVERRIDE; | 77 virtual void profileSnapshot(ErrorString*, const String& snapshotId, const i nt* minRepeatCount, const double* minDuration, RefPtr<TypeBuilder::Array<TypeBui lder::Array<double> > >&) OVERRIDE; |
78 | 78 |
79 private: | 79 private: |
80 static unsigned s_lastSnapshotId; | 80 static unsigned s_lastSnapshotId; |
81 | 81 |
82 InspectorLayerTreeAgent(InspectorDOMAgent*, Page*); | 82 InspectorLayerTreeAgent(InspectorDOMAgent*, Page*); |
83 | 83 |
84 RenderLayerCompositor* renderLayerCompositor(); | 84 RenderLayerCompositor* renderLayerCompositor(); |
85 GraphicsLayer* layerById(ErrorString*, const String& layerId); | 85 GraphicsLayer* layerById(ErrorString*, const String& layerId); |
86 const LayerSnapshot* snapshotById(ErrorString*, const String& snapshotId); | 86 const LayerSnapshot* snapshotById(ErrorString*, const String& snapshotId); |
87 PassRefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> > buildLayerTre e(); | 87 bool buildLayerTree(TypeBuilder::Array<TypeBuilder::LayerTree::Layer>& layer s, |
caseq
2014/02/20 16:30:45
style: drop self-obvious argument names from the m
malch
2014/02/21 12:22:15
Done.
| |
88 TypeBuilder::Array<TypeBuilder::LayerTree::ScrollRect>& scrollRects); | |
caseq
2014/02/20 16:30:45
ditto
malch
2014/02/21 12:22:15
Done.
| |
88 | 89 |
89 typedef HashMap<int, int> LayerIdToNodeIdMap; | 90 typedef HashMap<int, int> LayerIdToNodeIdMap; |
90 void buildLayerIdToNodeIdMap(RenderLayer*, LayerIdToNodeIdMap&); | 91 void buildLayerIdToNodeIdMap(RenderLayer*, LayerIdToNodeIdMap&); |
91 int idForNode(Node*); | 92 int idForNode(Node*); |
92 | 93 |
93 InspectorFrontend::LayerTree* m_frontend; | 94 InspectorFrontend::LayerTree* m_frontend; |
94 Page* m_page; | 95 Page* m_page; |
95 InspectorDOMAgent* m_domAgent; | 96 InspectorDOMAgent* m_domAgent; |
96 | 97 |
97 typedef HashMap<String, LayerSnapshot> SnapshotById; | 98 typedef HashMap<String, LayerSnapshot> SnapshotById; |
98 SnapshotById m_snapshotById; | 99 SnapshotById m_snapshotById; |
99 }; | 100 }; |
100 | 101 |
101 } // namespace WebCore | 102 } // namespace WebCore |
102 | 103 |
103 | 104 |
104 #endif // !defined(InspectorLayerTreeAgent_h) | 105 #endif // !defined(InspectorLayerTreeAgent_h) |
OLD | NEW |