Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: cc/debug/debug_rect_history.h

Issue 2080703005: cc: Remove LayerTreeImpl::root_layer usage outside tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | cc/debug/debug_rect_history.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_DEBUG_DEBUG_RECT_HISTORY_H_ 5 #ifndef CC_DEBUG_DEBUG_RECT_HISTORY_H_
6 #define CC_DEBUG_DEBUG_RECT_HISTORY_H_ 6 #define CC_DEBUG_DEBUG_RECT_HISTORY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // the appropriate LayerTreeSettings are enabled. 62 // the appropriate LayerTreeSettings are enabled.
63 class DebugRectHistory { 63 class DebugRectHistory {
64 public: 64 public:
65 static std::unique_ptr<DebugRectHistory> Create(); 65 static std::unique_ptr<DebugRectHistory> Create();
66 66
67 ~DebugRectHistory(); 67 ~DebugRectHistory();
68 68
69 // Note: Saving debug rects must happen before layers' change tracking is 69 // Note: Saving debug rects must happen before layers' change tracking is
70 // reset. 70 // reset.
71 void SaveDebugRectsForCurrentFrame( 71 void SaveDebugRectsForCurrentFrame(
72 LayerImpl* root_layer, 72 LayerTreeImpl* tree_impl,
73 LayerImpl* hud_layer, 73 LayerImpl* hud_layer,
74 const LayerImplList& render_surface_layer_list, 74 const LayerImplList& render_surface_layer_list,
75 const LayerTreeDebugState& debug_state); 75 const LayerTreeDebugState& debug_state);
76 76
77 const std::vector<DebugRect>& debug_rects() { return debug_rects_; } 77 const std::vector<DebugRect>& debug_rects() { return debug_rects_; }
78 78
79 private: 79 private:
80 DebugRectHistory(); 80 DebugRectHistory();
81 81
82 void SavePaintRects(LayerImpl* layer); 82 void SavePaintRects(LayerTreeImpl* tree_impl);
83 void SavePropertyChangedRects(const LayerImplList& render_surface_layer_list, 83 void SavePropertyChangedRects(const LayerImplList& render_surface_layer_list,
84 LayerImpl* hud_layer); 84 LayerImpl* hud_layer);
85 void SaveSurfaceDamageRects( 85 void SaveSurfaceDamageRects(
86 const LayerImplList& render_surface_layer_list); 86 const LayerImplList& render_surface_layer_list);
87 void SaveScreenSpaceRects( 87 void SaveScreenSpaceRects(
88 const LayerImplList& render_surface_layer_list); 88 const LayerImplList& render_surface_layer_list);
89 void SaveTouchEventHandlerRects(LayerTreeImpl* layer); 89 void SaveTouchEventHandlerRects(LayerTreeImpl* layer);
90 void SaveTouchEventHandlerRectsCallback(LayerImpl* layer); 90 void SaveTouchEventHandlerRectsCallback(LayerImpl* layer);
91 void SaveWheelEventHandlerRects(LayerImpl* layer); 91 void SaveWheelEventHandlerRects(LayerTreeImpl* tree_impl);
92 void SaveScrollEventHandlerRects(LayerTreeImpl* layer); 92 void SaveScrollEventHandlerRects(LayerTreeImpl* layer);
93 void SaveScrollEventHandlerRectsCallback(LayerImpl* layer); 93 void SaveScrollEventHandlerRectsCallback(LayerImpl* layer);
94 void SaveNonFastScrollableRects(LayerTreeImpl* layer); 94 void SaveNonFastScrollableRects(LayerTreeImpl* layer);
95 void SaveNonFastScrollableRectsCallback(LayerImpl* layer); 95 void SaveNonFastScrollableRectsCallback(LayerImpl* layer);
96 void SaveLayerAnimationBoundsRects( 96 void SaveLayerAnimationBoundsRects(
97 const LayerImplList& render_surface_layer_list); 97 const LayerImplList& render_surface_layer_list);
98 98
99 std::vector<DebugRect> debug_rects_; 99 std::vector<DebugRect> debug_rects_;
100 100
101 DISALLOW_COPY_AND_ASSIGN(DebugRectHistory); 101 DISALLOW_COPY_AND_ASSIGN(DebugRectHistory);
102 }; 102 };
103 103
104 } // namespace cc 104 } // namespace cc
105 105
106 #endif // CC_DEBUG_DEBUG_RECT_HISTORY_H_ 106 #endif // CC_DEBUG_DEBUG_RECT_HISTORY_H_
OLDNEW
« no previous file with comments | « no previous file | cc/debug/debug_rect_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698