| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 virtual void disable(ErrorString*); | 70 virtual void disable(ErrorString*); |
| 71 virtual void compositingReasons(ErrorString*, const String& layerId, RefPtr<
TypeBuilder::Array<String> >&); | 71 virtual void compositingReasons(ErrorString*, const String& layerId, RefPtr<
TypeBuilder::Array<String> >&); |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 typedef HashMap<int, int> LayerIdToNodeIdMap; | 74 typedef HashMap<int, int> LayerIdToNodeIdMap; |
| 75 | 75 |
| 76 InspectorLayerTreeAgent(InstrumentingAgents*, InspectorCompositeState*, Insp
ectorDOMAgent*, Page*); | 76 InspectorLayerTreeAgent(InstrumentingAgents*, InspectorCompositeState*, Insp
ectorDOMAgent*, Page*); |
| 77 | 77 |
| 78 RenderLayerCompositor* renderLayerCompositor(); | 78 RenderLayerCompositor* renderLayerCompositor(); |
| 79 GraphicsLayer* layerById(ErrorString*, const String& layerId); | 79 GraphicsLayer* layerById(ErrorString*, const String& layerId); |
| 80 void notificationTimerFired(Timer<InspectorLayerTreeAgent>*); |
| 80 PassRefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> > buildLayerTre
e(); | 81 PassRefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> > buildLayerTre
e(); |
| 81 void buildLayerIdToNodeIdMap(RenderLayer*, LayerIdToNodeIdMap&); | 82 void buildLayerIdToNodeIdMap(RenderLayer*, LayerIdToNodeIdMap&); |
| 82 int idForNode(Node*); | 83 int idForNode(Node*); |
| 83 | 84 |
| 84 InspectorFrontend::LayerTree* m_frontend; | 85 InspectorFrontend::LayerTree* m_frontend; |
| 85 Page* m_page; | 86 Page* m_page; |
| 86 InspectorDOMAgent* m_domAgent; | 87 InspectorDOMAgent* m_domAgent; |
| 88 Timer<InspectorLayerTreeAgent> m_notificationTimer; |
| 89 bool m_notifyAfterNextLayersUpdate; |
| 87 | 90 |
| 88 HashMap<const RenderLayer*, String> m_documentLayerToIdMap; | 91 HashMap<const RenderLayer*, String> m_documentLayerToIdMap; |
| 89 }; | 92 }; |
| 90 | 93 |
| 91 } // namespace WebCore | 94 } // namespace WebCore |
| 92 | 95 |
| 93 | 96 |
| 94 #endif // !defined(InspectorLayerTreeAgent_h) | 97 #endif // !defined(InspectorLayerTreeAgent_h) |
| OLD | NEW |