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

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

Issue 2834123002: cc: Replace render surface layer list with a render surface list (Closed)
Patch Set: Address review comments Created 3 years, 7 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 | « cc/trees/damage_tracker_unittest.cc ('k') | cc/trees/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_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
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_
OLDNEW
« no previous file with comments | « cc/trees/damage_tracker_unittest.cc ('k') | cc/trees/debug_rect_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698