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

Unified Diff: cc/trees/layer_tree_host_impl.cc

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/trees/layer_tree_host_common.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 27aae697ce36c36f7215cb2dae55ca6368f031a3..4d86ad40c107751955b78cdf03f8218fb4d3225c 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -888,17 +888,18 @@ DrawResult LayerTreeHostImpl::CalculateRenderPasses(FrameData* frame) {
AppendQuadsData append_quads_data;
+ RenderSurfaceImpl* render_surface = it->render_surface();
if (it.represents_target_render_surface()) {
- if (it->render_surface()->HasCopyRequest()) {
+ if (render_surface->HasCopyRequest()) {
active_tree()
->property_trees()
->effect_tree.TakeCopyRequestsAndTransformToSurface(
- it->render_surface()->EffectTreeIndex(),
+ render_surface->EffectTreeIndex(),
&target_render_pass->copy_requests);
}
} else if (it.represents_contributing_render_surface() &&
- it->render_surface()->contributes_to_drawn_surface()) {
- it->render_surface()->AppendQuads(target_render_pass, &append_quads_data);
+ render_surface->contributes_to_drawn_surface()) {
+ render_surface->AppendQuads(target_render_pass, &append_quads_data);
} else if (it.represents_itself() && !it->visible_layer_rect().IsEmpty()) {
bool occluded =
it->draw_properties().occlusion_in_content_space.IsOccluded(
« no previous file with comments | « cc/trees/layer_tree_host_common.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698