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

Unified Diff: cc/layers/layer_iterator.h

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 | « cc/debug/debug_rect_history.cc ('k') | cc/trees/damage_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_iterator.h
diff --git a/cc/layers/layer_iterator.h b/cc/layers/layer_iterator.h
index cf01ca19a4126cb8634cf3c3d7ac1af99dea0797..dc89e113ad33f5bedd1ae0aa8a6c4817a1fe8357 100644
--- a/cc/layers/layer_iterator.h
+++ b/cc/layers/layer_iterator.h
@@ -246,13 +246,12 @@ class LayerIterator {
inline LayerImpl* current_layer() const {
return current_layer_represents_target_render_surface()
? target_render_surface_layer()
- : LayerTreeHostCommon::get_layer_as_raw_ptr(
- target_render_surface_children(), current_layer_index_);
+ : target_render_surface_children().at(current_layer_index_);
}
inline bool current_layer_represents_contributing_render_surface() const {
- return LayerTreeHostCommon::RenderSurfaceContributesToTarget<LayerImpl>(
- current_layer(), target_render_surface_layer()->id());
+ return current_layer()->render_surface() &&
+ current_layer()->render_surface() != target_render_surface();
}
inline bool current_layer_represents_target_render_surface() const {
return current_layer_index_ ==
« no previous file with comments | « cc/debug/debug_rect_history.cc ('k') | cc/trees/damage_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698