| 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;
|
| }
|
|
|
|
|