| Index: cc/layers/solid_color_layer_impl.cc
|
| diff --git a/cc/layers/solid_color_layer_impl.cc b/cc/layers/solid_color_layer_impl.cc
|
| index a88c53e8e58aa9279065fb5b22cc9c5f1494f31f..476c13439fb9b51de0a6da791587eaf33d6fc132 100644
|
| --- a/cc/layers/solid_color_layer_impl.cc
|
| +++ b/cc/layers/solid_color_layer_impl.cc
|
| @@ -33,6 +33,9 @@ void SolidColorLayerImpl::AppendQuads(
|
| AppendDebugBorderQuad(
|
| render_pass, content_bounds(), shared_quad_state, append_quads_data);
|
|
|
| + Occlusion occlusion = occlusion_tracker.GetCurrentOcclusionForLayer(
|
| + draw_properties().target_space_transform);
|
| +
|
| // We create a series of smaller quads instead of just one large one so that
|
| // the culler can reduce the total pixels drawn.
|
| int width = content_bounds().width();
|
| @@ -43,8 +46,8 @@ void SolidColorLayerImpl::AppendQuads(
|
| y,
|
| std::min(width - x, tile_size_),
|
| std::min(height - y, tile_size_));
|
| - gfx::Rect visible_quad_rect = occlusion_tracker.UnoccludedContentRect(
|
| - quad_rect, draw_properties().target_space_transform);
|
| + gfx::Rect visible_quad_rect =
|
| + occlusion.GetUnoccludedContentRect(quad_rect);
|
| if (visible_quad_rect.IsEmpty())
|
| continue;
|
|
|
|
|