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

Unified Diff: cc/debug/debug_rect_history.cc

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, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/debug/invalidation_benchmark.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/debug_rect_history.cc
diff --git a/cc/debug/debug_rect_history.cc b/cc/debug/debug_rect_history.cc
index cc8d12363b1d339afe60882cfe9ca96e20768429..1d1a33bef34771057be7922477a2a0e7409a3e94 100644
--- a/cc/debug/debug_rect_history.cc
+++ b/cc/debug/debug_rect_history.cc
@@ -158,9 +158,9 @@ void DebugRectHistory::SaveScreenSpaceRects(
}
void DebugRectHistory::SaveTouchEventHandlerRects(LayerImpl* layer) {
ajuma 2016/04/01 13:38:14 Can this be changed to take a tree instead of a la
jaydasika 2016/04/01 17:01:24 Done.
- LayerTreeHostCommon::CallFunctionForSubtree(layer, [this](LayerImpl* layer) {
- SaveTouchEventHandlerRectsCallback(layer);
- });
+ LayerTreeHostCommon::CallFunctionForEveryLayer(
+ layer->layer_tree_impl(),
+ [this](LayerImpl* layer) { SaveTouchEventHandlerRectsCallback(layer); });
}
void DebugRectHistory::SaveTouchEventHandlerRectsCallback(LayerImpl* layer) {
@@ -197,9 +197,9 @@ void DebugRectHistory::SaveWheelEventHandlerRects(LayerImpl* root_layer) {
}
void DebugRectHistory::SaveScrollEventHandlerRects(LayerImpl* layer) {
- LayerTreeHostCommon::CallFunctionForSubtree(layer, [this](LayerImpl* layer) {
- SaveScrollEventHandlerRectsCallback(layer);
- });
+ LayerTreeHostCommon::CallFunctionForEveryLayer(
+ layer->layer_tree_impl(),
+ [this](LayerImpl* layer) { SaveScrollEventHandlerRectsCallback(layer); });
}
void DebugRectHistory::SaveScrollEventHandlerRectsCallback(LayerImpl* layer) {
@@ -213,9 +213,9 @@ void DebugRectHistory::SaveScrollEventHandlerRectsCallback(LayerImpl* layer) {
}
void DebugRectHistory::SaveNonFastScrollableRects(LayerImpl* layer) {
- LayerTreeHostCommon::CallFunctionForSubtree(layer, [this](LayerImpl* layer) {
- SaveNonFastScrollableRectsCallback(layer);
- });
+ LayerTreeHostCommon::CallFunctionForEveryLayer(
+ layer->layer_tree_impl(),
+ [this](LayerImpl* layer) { SaveNonFastScrollableRectsCallback(layer); });
}
void DebugRectHistory::SaveNonFastScrollableRectsCallback(LayerImpl* layer) {
« no previous file with comments | « no previous file | cc/debug/invalidation_benchmark.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698