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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 2334003003: cc : Compute visible rects dynamically (1) (Closed)
Patch Set: fix compile error 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
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index dd62a982aa04f2c574c34248ee6d12cdf8c3a8f3..310ddf1ff2ff0b4450cc7e7e294cebf6d47cad73 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -921,7 +921,9 @@ void LayerTreeImpl::SetElementIdsForTesting() {
}
}
-bool LayerTreeImpl::UpdateDrawProperties(bool update_lcd_text) {
+bool LayerTreeImpl::UpdateDrawProperties(
+ bool update_lcd_text,
+ bool force_skip_verify_visible_rect_calculations) {
if (!needs_update_draw_properties_)
return true;
@@ -949,6 +951,10 @@ bool LayerTreeImpl::UpdateDrawProperties(bool update_lcd_text) {
bool can_render_to_separate_surface =
(!is_in_resourceless_software_draw_mode());
+ bool verify_visible_rect_calculations =
+ force_skip_verify_visible_rect_calculations
+ ? false
+ : settings().verify_visible_rect_calculations;
LayerTreeHostCommon::CalcDrawPropsImplInputs inputs(
layer_list_[0], DrawViewportSize(),
layer_tree_host_impl_->DrawTransform(), device_scale_factor(),
@@ -959,6 +965,7 @@ bool LayerTreeImpl::UpdateDrawProperties(bool update_lcd_text) {
can_render_to_separate_surface,
settings().layer_transforms_should_scale_layer_contents,
settings().verify_clip_tree_calculations,
+ verify_visible_rect_calculations,
settings().verify_transform_tree_calculations,
&render_surface_layer_list_, &property_trees_);
LayerTreeHostCommon::CalculateDrawProperties(&inputs);

Powered by Google App Engine
This is Rietveld 408576698