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

Unified Diff: cc/layers/layer_iterator.h

Issue 2690753002: cc: Move render surface ownership from layers to the effect tree (Closed)
Patch Set: Replace repeated calls to LayerImpl::render_surface Created 3 years, 10 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
Index: cc/layers/layer_iterator.h
diff --git a/cc/layers/layer_iterator.h b/cc/layers/layer_iterator.h
index dc89e113ad33f5bedd1ae0aa8a6c4817a1fe8357..4257c28b5058b16f8c475834376d72b00ceae2e9 100644
--- a/cc/layers/layer_iterator.h
+++ b/cc/layers/layer_iterator.h
@@ -250,8 +250,8 @@ class LayerIterator {
}
inline bool current_layer_represents_contributing_render_surface() const {
- return current_layer()->render_surface() &&
- current_layer()->render_surface() != target_render_surface();
+ RenderSurfaceImpl* render_surface = current_layer()->render_surface();
+ return render_surface && render_surface != target_render_surface();
}
inline bool current_layer_represents_target_render_surface() const {
return current_layer_index_ ==

Powered by Google App Engine
This is Rietveld 408576698