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

Unified Diff: cc/debug/debug_rect_history.cc

Issue 1864183002: cc: Main thread skip single layers instead of subtrees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Format the comments 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 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 1659316f4d74a73c019318f254858540921a7a32..cd3830317fe009442f93b75cc525ef1ebb3a5ab6 100644
--- a/cc/debug/debug_rect_history.cc
+++ b/cc/debug/debug_rect_history.cc
@@ -160,7 +160,8 @@ void DebugRectHistory::SaveScreenSpaceRects(
void DebugRectHistory::SaveTouchEventHandlerRects(LayerTreeImpl* tree_impl) {
LayerTreeHostCommon::CallFunctionForEveryLayer(
tree_impl,
- [this](LayerImpl* layer) { SaveTouchEventHandlerRectsCallback(layer); });
+ [this](LayerImpl* layer) { SaveTouchEventHandlerRectsCallback(layer); },
+ CallFunctionLayerType::ALL_LAYERS);
}
void DebugRectHistory::SaveTouchEventHandlerRectsCallback(LayerImpl* layer) {
@@ -199,7 +200,8 @@ void DebugRectHistory::SaveWheelEventHandlerRects(LayerImpl* root_layer) {
void DebugRectHistory::SaveScrollEventHandlerRects(LayerTreeImpl* tree_impl) {
LayerTreeHostCommon::CallFunctionForEveryLayer(
tree_impl,
- [this](LayerImpl* layer) { SaveScrollEventHandlerRectsCallback(layer); });
+ [this](LayerImpl* layer) { SaveScrollEventHandlerRectsCallback(layer); },
+ CallFunctionLayerType::ALL_LAYERS);
}
void DebugRectHistory::SaveScrollEventHandlerRectsCallback(LayerImpl* layer) {
@@ -215,7 +217,8 @@ void DebugRectHistory::SaveScrollEventHandlerRectsCallback(LayerImpl* layer) {
void DebugRectHistory::SaveNonFastScrollableRects(LayerTreeImpl* tree_impl) {
LayerTreeHostCommon::CallFunctionForEveryLayer(
tree_impl,
- [this](LayerImpl* layer) { SaveNonFastScrollableRectsCallback(layer); });
+ [this](LayerImpl* layer) { SaveNonFastScrollableRectsCallback(layer); },
+ CallFunctionLayerType::ALL_LAYERS);
}
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