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

Unified Diff: cc/trees/layer_tree_host_common.cc

Issue 2334003003: cc : Compute visible rects dynamically (1) (Closed)
Patch Set: comment 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/layer_tree_host_common.h ('k') | cc/trees/layer_tree_host_common_perftest.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 047c758bc39d6347f5699aa031be34ff84f49519..6e1b45cd4690552e65cdd9d62b1872fd39e0f5d8 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -83,6 +83,7 @@ LayerTreeHostCommon::CalcDrawPropsImplInputs::CalcDrawPropsImplInputs(
bool can_render_to_separate_surface,
bool can_adjust_raster_scales,
bool verify_clip_tree_calculations,
+ bool verify_visible_rect_calculations,
bool verify_transform_tree_calculations,
LayerImplList* render_surface_layer_list,
PropertyTrees* property_trees)
@@ -101,6 +102,7 @@ LayerTreeHostCommon::CalcDrawPropsImplInputs::CalcDrawPropsImplInputs(
can_render_to_separate_surface(can_render_to_separate_surface),
can_adjust_raster_scales(can_adjust_raster_scales),
verify_clip_tree_calculations(verify_clip_tree_calculations),
+ verify_visible_rect_calculations(verify_visible_rect_calculations),
verify_transform_tree_calculations(verify_transform_tree_calculations),
render_surface_layer_list(render_surface_layer_list),
property_trees(property_trees) {}
@@ -126,6 +128,7 @@ LayerTreeHostCommon::CalcDrawPropsImplInputsForTesting::
false,
true,
true,
+ true,
render_surface_layer_list,
GetPropertyTrees(root_layer)) {
DCHECK(root_layer);
@@ -555,7 +558,8 @@ 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->property_trees, &visible_layer_list);
+ inputs->verify_visible_rect_calculations, 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
@@ -597,7 +601,8 @@ void CalculateDrawPropertiesInternal(
inputs->device_transform);
draw_property_utils::ComputeVisibleRects(
inputs->root_layer, inputs->property_trees,
- inputs->can_render_to_separate_surface, &visible_layer_list);
+ inputs->can_render_to_separate_surface,
+ inputs->verify_visible_rect_calculations, &visible_layer_list);
break;
}
}
« no previous file with comments | « cc/trees/layer_tree_host_common.h ('k') | cc/trees/layer_tree_host_common_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698