| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_TREES_DEBUG_RECT_HISTORY_H_ | 5 #ifndef CC_TREES_DEBUG_RECT_HISTORY_H_ |
| 6 #define CC_TREES_DEBUG_RECT_HISTORY_H_ | 6 #define CC_TREES_DEBUG_RECT_HISTORY_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 public: | 60 public: |
| 61 static std::unique_ptr<DebugRectHistory> Create(); | 61 static std::unique_ptr<DebugRectHistory> Create(); |
| 62 | 62 |
| 63 ~DebugRectHistory(); | 63 ~DebugRectHistory(); |
| 64 | 64 |
| 65 // Note: Saving debug rects must happen before layers' change tracking is | 65 // Note: Saving debug rects must happen before layers' change tracking is |
| 66 // reset. | 66 // reset. |
| 67 void SaveDebugRectsForCurrentFrame( | 67 void SaveDebugRectsForCurrentFrame( |
| 68 LayerTreeImpl* tree_impl, | 68 LayerTreeImpl* tree_impl, |
| 69 LayerImpl* hud_layer, | 69 LayerImpl* hud_layer, |
| 70 const LayerImplList& render_surface_layer_list, | 70 const RenderSurfaceList& render_surface_list, |
| 71 const LayerTreeDebugState& debug_state); | 71 const LayerTreeDebugState& debug_state); |
| 72 | 72 |
| 73 const std::vector<DebugRect>& debug_rects() { return debug_rects_; } | 73 const std::vector<DebugRect>& debug_rects() { return debug_rects_; } |
| 74 | 74 |
| 75 private: | 75 private: |
| 76 DebugRectHistory(); | 76 DebugRectHistory(); |
| 77 | 77 |
| 78 void SavePaintRects(LayerTreeImpl* tree_impl); | 78 void SavePaintRects(LayerTreeImpl* tree_impl); |
| 79 void SavePropertyChangedRects(const LayerImplList& render_surface_layer_list, | 79 void SavePropertyChangedRects(LayerTreeImpl* tree_impl, LayerImpl* hud_layer); |
| 80 LayerImpl* hud_layer); | 80 void SaveSurfaceDamageRects(const RenderSurfaceList& render_surface_list); |
| 81 void SaveSurfaceDamageRects(const LayerImplList& render_surface_layer_list); | 81 void SaveScreenSpaceRects(const RenderSurfaceList& render_surface_list); |
| 82 void SaveScreenSpaceRects(const LayerImplList& render_surface_layer_list); | |
| 83 void SaveTouchEventHandlerRects(LayerTreeImpl* layer); | 82 void SaveTouchEventHandlerRects(LayerTreeImpl* layer); |
| 84 void SaveTouchEventHandlerRectsCallback(LayerImpl* layer); | 83 void SaveTouchEventHandlerRectsCallback(LayerImpl* layer); |
| 85 void SaveWheelEventHandlerRects(LayerTreeImpl* tree_impl); | 84 void SaveWheelEventHandlerRects(LayerTreeImpl* tree_impl); |
| 86 void SaveScrollEventHandlerRects(LayerTreeImpl* layer); | 85 void SaveScrollEventHandlerRects(LayerTreeImpl* layer); |
| 87 void SaveScrollEventHandlerRectsCallback(LayerImpl* layer); | 86 void SaveScrollEventHandlerRectsCallback(LayerImpl* layer); |
| 88 void SaveNonFastScrollableRects(LayerTreeImpl* layer); | 87 void SaveNonFastScrollableRects(LayerTreeImpl* layer); |
| 89 void SaveNonFastScrollableRectsCallback(LayerImpl* layer); | 88 void SaveNonFastScrollableRectsCallback(LayerImpl* layer); |
| 90 void SaveLayerAnimationBoundsRects(LayerTreeImpl* tree_impl); | 89 void SaveLayerAnimationBoundsRects(LayerTreeImpl* tree_impl); |
| 91 | 90 |
| 92 std::vector<DebugRect> debug_rects_; | 91 std::vector<DebugRect> debug_rects_; |
| 93 | 92 |
| 94 DISALLOW_COPY_AND_ASSIGN(DebugRectHistory); | 93 DISALLOW_COPY_AND_ASSIGN(DebugRectHistory); |
| 95 }; | 94 }; |
| 96 | 95 |
| 97 } // namespace cc | 96 } // namespace cc |
| 98 | 97 |
| 99 #endif // CC_TREES_DEBUG_RECT_HISTORY_H_ | 98 #endif // CC_TREES_DEBUG_RECT_HISTORY_H_ |
| OLD | NEW |