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 fa1e6005279c0570a489e18b0b2d8e514aaf9a95..7be66746fd150248248e1697d9cefe663dd89257 100644 |
--- a/cc/trees/layer_tree_host_common.h |
+++ b/cc/trees/layer_tree_host_common.h |
@@ -207,7 +207,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; |
} |