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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 23708021: Do not clip inside OcclusionTracker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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_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;

Powered by Google App Engine
This is Rietveld 408576698