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

Unified Diff: cc/trees/layer_tree_host_common.cc

Issue 2112973003: cc: Add verify transform tree calculations to LayerTreeSettings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "TODO" Created 4 years, 6 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 71d8e6be0a6626f00b14320fadb73cd0f29cbe5b..9ee300fcdb61d1d59d1f7d4b4a4373ec15194c96 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -81,6 +81,7 @@ LayerTreeHostCommon::CalcDrawPropsImplInputs::CalcDrawPropsImplInputs(
bool can_render_to_separate_surface,
bool can_adjust_raster_scales,
bool verify_clip_tree_calculations,
+ bool verify_transform_tree_calculations,
LayerImplList* render_surface_layer_list,
PropertyTrees* property_trees)
: root_layer(root_layer),
@@ -98,6 +99,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_transform_tree_calculations(verify_transform_tree_calculations),
render_surface_layer_list(render_surface_layer_list),
property_trees(property_trees) {}
@@ -120,6 +122,7 @@ LayerTreeHostCommon::CalcDrawPropsImplInputsForTesting::
true,
false,
true,
+ true,
render_surface_layer_list,
GetPropertyTrees(root_layer)) {
DCHECK(root_layer);
@@ -592,6 +595,9 @@ void CalculateDrawPropertiesInternal(
if (inputs->verify_clip_tree_calculations)
draw_property_utils::VerifyClipTreeCalculations(visible_layer_list,
inputs->property_trees);
+ if (inputs->verify_transform_tree_calculations)
+ draw_property_utils::VerifyTransformTreeCalculations(
+ visible_layer_list, inputs->property_trees);
if (should_measure_property_tree_performance) {
TRACE_EVENT_END0(TRACE_DISABLED_BY_DEFAULT("cc.debug.cdp-perf"),
« 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