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

Unified Diff: cc/trees/layer_tree_host_common.h

Issue 1868003002: cc: Move RenderTarget Information to Effect Tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: cc/trees/layer_tree_host_common.h
diff --git a/cc/trees/layer_tree_host_common.h b/cc/trees/layer_tree_host_common.h
index 892521cd4bd9dee71f19736091fcdefa25ebbbe5..9e0c3f9b1a553728a9ea3c01c233d04a65903ebe 100644
--- a/cc/trees/layer_tree_host_common.h
+++ b/cc/trees/layer_tree_host_common.h
@@ -198,7 +198,8 @@ bool LayerTreeHostCommon::RenderSurfaceContributesToTarget(
//
// Otherwise, the layer just contributes itself to the target surface.
- return layer->render_target() == layer &&
+ return layer->has_render_surface() &&
+ layer->render_target() == layer->render_surface() &&
layer->id() != target_surface_layer_id;
}

Powered by Google App Engine
This is Rietveld 408576698