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

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

Issue 1846043002: cc : Make CallFunctionForSubtree on impl use layer iterator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 <vector> 8 #include <vector>
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "cc/layers/layer_collections.h" 11 #include "cc/layers/layer_collections.h"
12 #include "ui/gfx/geometry/rect.h" 12 #include "ui/gfx/geometry/rect.h"
13 13
14 namespace cc { 14 namespace cc {
15 15
16 class LayerImpl; 16 class LayerImpl;
17 class LayerTreeDebugState; 17 class LayerTreeDebugState;
18 class LayerTreeImpl;
18 19
19 // There are currently six types of debug rects: 20 // There are currently six types of debug rects:
20 // 21 //
21 // - Paint rects (update rects): regions of a layer that needed to be 22 // - Paint rects (update rects): regions of a layer that needed to be
22 // re-uploaded to the texture resource; in most cases implying that they had to 23 // re-uploaded to the texture resource; in most cases implying that they had to
23 // be repainted, too. 24 // be repainted, too.
24 // 25 //
25 // - Property-changed rects: enclosing bounds of layers that cause changes to 26 // - Property-changed rects: enclosing bounds of layers that cause changes to
26 // the screen even if the layer did not change internally. (For example, if the 27 // the screen even if the layer did not change internally. (For example, if the
27 // layer's opacity or position changes.) 28 // layer's opacity or position changes.)
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 private: 78 private:
78 DebugRectHistory(); 79 DebugRectHistory();
79 80
80 void SavePaintRects(LayerImpl* layer); 81 void SavePaintRects(LayerImpl* layer);
81 void SavePropertyChangedRects(const LayerImplList& render_surface_layer_list, 82 void SavePropertyChangedRects(const LayerImplList& render_surface_layer_list,
82 LayerImpl* hud_layer); 83 LayerImpl* hud_layer);
83 void SaveSurfaceDamageRects( 84 void SaveSurfaceDamageRects(
84 const LayerImplList& render_surface_layer_list); 85 const LayerImplList& render_surface_layer_list);
85 void SaveScreenSpaceRects( 86 void SaveScreenSpaceRects(
86 const LayerImplList& render_surface_layer_list); 87 const LayerImplList& render_surface_layer_list);
87 void SaveTouchEventHandlerRects(LayerImpl* layer); 88 void SaveTouchEventHandlerRects(LayerTreeImpl* layer);
88 void SaveTouchEventHandlerRectsCallback(LayerImpl* layer); 89 void SaveTouchEventHandlerRectsCallback(LayerImpl* layer);
89 void SaveWheelEventHandlerRects(LayerImpl* layer); 90 void SaveWheelEventHandlerRects(LayerImpl* layer);
90 void SaveScrollEventHandlerRects(LayerImpl* layer); 91 void SaveScrollEventHandlerRects(LayerTreeImpl* layer);
91 void SaveScrollEventHandlerRectsCallback(LayerImpl* layer); 92 void SaveScrollEventHandlerRectsCallback(LayerImpl* layer);
92 void SaveNonFastScrollableRects(LayerImpl* layer); 93 void SaveNonFastScrollableRects(LayerTreeImpl* layer);
93 void SaveNonFastScrollableRectsCallback(LayerImpl* layer); 94 void SaveNonFastScrollableRectsCallback(LayerImpl* layer);
94 void SaveLayerAnimationBoundsRects( 95 void SaveLayerAnimationBoundsRects(
95 const LayerImplList& render_surface_layer_list); 96 const LayerImplList& render_surface_layer_list);
96 97
97 std::vector<DebugRect> debug_rects_; 98 std::vector<DebugRect> debug_rects_;
98 99
99 DISALLOW_COPY_AND_ASSIGN(DebugRectHistory); 100 DISALLOW_COPY_AND_ASSIGN(DebugRectHistory);
100 }; 101 };
101 102
102 } // namespace cc 103 } // namespace cc
103 104
104 #endif // CC_DEBUG_DEBUG_RECT_HISTORY_H_ 105 #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