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

Unified Diff: cc/trees/layer_tree_host_common.cc

Issue 2354753003: cc : Compute visible rects dynamically (2) (Closed)
Patch Set: comments Created 4 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
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_common.cc
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
index 6e1b45cd4690552e65cdd9d62b1872fd39e0f5d8..1ef2946e23ebbebfb67e3461810777a98d2e14ed 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -558,8 +558,7 @@ void CalculateDrawPropertiesInternal(
inputs->elastic_overscroll, inputs->page_scale_factor,
inputs->device_scale_factor, gfx::Rect(inputs->device_viewport_size),
inputs->device_transform, inputs->can_render_to_separate_surface,
- inputs->verify_visible_rect_calculations, inputs->property_trees,
- &visible_layer_list);
+ inputs->property_trees, &visible_layer_list);
// Property trees are normally constructed on the main thread and
// passed to compositor thread. Source to parent updates on them are not
@@ -601,8 +600,7 @@ void CalculateDrawPropertiesInternal(
inputs->device_transform);
draw_property_utils::ComputeVisibleRects(
inputs->root_layer, inputs->property_trees,
- inputs->can_render_to_separate_surface,
- inputs->verify_visible_rect_calculations, &visible_layer_list);
+ inputs->can_render_to_separate_surface, &visible_layer_list);
break;
}
}
@@ -627,6 +625,9 @@ void CalculateDrawPropertiesInternal(
if (inputs->verify_clip_tree_calculations)
draw_property_utils::VerifyClipTreeCalculations(visible_layer_list,
inputs->property_trees);
+ if (inputs->verify_visible_rect_calculations)
+ draw_property_utils::VerifyVisibleRectsCalculations(visible_layer_list,
+ inputs->property_trees);
if (inputs->verify_transform_tree_calculations)
draw_property_utils::VerifyTransformTreeCalculations(
visible_layer_list, inputs->property_trees);
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698