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

Unified Diff: cc/layers/layer_iterator.h

Issue 2690753002: cc: Move render surface ownership from layers to the effect tree (Closed)
Patch Set: Only update surfaces when can_render_to_separate_surface changes 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
« no previous file with comments | « cc/layers/layer_impl_unittest.cc ('k') | cc/layers/render_surface_impl.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 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_ ==
« no previous file with comments | « cc/layers/layer_impl_unittest.cc ('k') | cc/layers/render_surface_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698