| 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 08e4ac16366b7a4e3b1de129cd5b81d1c7a994d1..7298084dd7795752d421944493caed7ba7536166 100644
|
| --- a/cc/trees/layer_tree_host_impl.cc
|
| +++ b/cc/trees/layer_tree_host_impl.cc
|
| @@ -540,7 +540,8 @@ static void AppendQuadsToFillScreen(
|
| if (!root_layer || !SkColorGetA(screen_background_color))
|
| return;
|
|
|
| - Region fill_region = occlusion_tracker.ComputeVisibleRegionInScreen();
|
| + Region fill_region = occlusion_tracker.ComputeVisibleRegionInScreen(
|
| + root_layer->render_surface()->content_rect());
|
| if (fill_region.IsEmpty())
|
| return;
|
|
|
| @@ -665,9 +666,7 @@ bool LayerTreeHostImpl::CalculateRenderPasses(FrameData* frame) {
|
| settings_.show_overdraw_in_tracing &&
|
| base::debug::TraceLog::GetInstance() &&
|
| base::debug::TraceLog::GetInstance()->IsEnabled();
|
| - OcclusionTrackerImpl occlusion_tracker(
|
| - active_tree_->root_layer()->render_surface()->content_rect(),
|
| - record_metrics_for_frame);
|
| + OcclusionTrackerImpl occlusion_tracker(record_metrics_for_frame);
|
| occlusion_tracker.set_minimum_tracking_size(
|
| settings_.minimum_occlusion_tracking_size);
|
|
|
| @@ -742,8 +741,6 @@ bool LayerTreeHostImpl::CalculateRenderPasses(FrameData* frame) {
|
| it->visible_content_rect(),
|
| it->draw_transform(),
|
| impl_draw_transform_is_unknown,
|
| - it->is_clipped(),
|
| - it->clip_rect(),
|
| &has_occlusion_from_outside_target_surface)) {
|
| append_quads_data.had_occlusion_from_outside_target_surface |=
|
| has_occlusion_from_outside_target_surface;
|
|
|