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

Unified Diff: cc/debug/debug_rect_history.cc

Issue 1869983003: cc: Clean up helper function from layer tree host common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@targetid
Patch Set: rebase 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/layers/layer_iterator.h » ('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 02264216c429bceb21d63d5f5a3da55db560922b..f89b9f777c6e7adee82b536f99bf73b20f8761d5 100644
--- a/cc/debug/debug_rect_history.cc
+++ b/cc/debug/debug_rect_history.cc
@@ -100,8 +100,7 @@ void DebugRectHistory::SavePropertyChangedRects(
++layer_index) {
LayerImpl* layer = layer_list[layer_index];
- if (LayerTreeHostCommon::RenderSurfaceContributesToTarget<LayerImpl>(
- layer, render_surface_layer->id()))
+ if (layer->render_surface() && layer->render_surface() != render_surface)
continue;
if (layer == hud_layer)
« no previous file with comments | « no previous file | cc/layers/layer_iterator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698