| 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>&, |
| 92 TypeBuilder::Array<TypeBuilder::LayerTree::ScrollRect>&); |
| 92 | 93 |
| 93 typedef HashMap<int, int> LayerIdToNodeIdMap; | 94 typedef HashMap<int, int> LayerIdToNodeIdMap; |
| 94 void buildLayerIdToNodeIdMap(RenderLayer*, LayerIdToNodeIdMap&); | 95 void buildLayerIdToNodeIdMap(RenderLayer*, LayerIdToNodeIdMap&); |
| 95 void gatherGraphicsLayers(GraphicsLayer*, HashMap<int, int>& layerIdToNodeId
Map, RefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> >&); | 96 void gatherGraphicsLayers(GraphicsLayer*, HashMap<int, int>& layerIdToNodeId
Map, TypeBuilder::Array<TypeBuilder::LayerTree::Layer>&, TypeBuilder::Array<Type
Builder::LayerTree::ScrollRect>&); |
| 96 int idForNode(Node*); | 97 int idForNode(Node*); |
| 97 | 98 |
| 98 InspectorFrontend::LayerTree* m_frontend; | 99 InspectorFrontend::LayerTree* m_frontend; |
| 99 Page* m_page; | 100 Page* m_page; |
| 100 InspectorDOMAgent* m_domAgent; | 101 InspectorDOMAgent* m_domAgent; |
| 101 Vector<int, 2> m_pageOverlayLayerIds; | 102 Vector<int, 2> m_pageOverlayLayerIds; |
| 102 | 103 |
| 103 typedef HashMap<String, LayerSnapshot> SnapshotById; | 104 typedef HashMap<String, LayerSnapshot> SnapshotById; |
| 104 SnapshotById m_snapshotById; | 105 SnapshotById m_snapshotById; |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 } // namespace WebCore | 108 } // namespace WebCore |
| 108 | 109 |
| 109 | 110 |
| 110 #endif // !defined(InspectorLayerTreeAgent_h) | 111 #endif // !defined(InspectorLayerTreeAgent_h) |
| OLD | NEW |