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

Side by Side Diff: cc/trees/layer_tree_settings.cc

Issue 1800923002: cc: Directly use property trees to calculate clip rect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add setting to only calculate and verify in cc_unittest Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_settings.h" 5 #include "cc/trees/layer_tree_settings.h"
6 6
7 #include <GLES2/gl2.h> 7 #include <GLES2/gl2.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <limits> 9 #include <limits>
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 strict_layer_property_change_checking(false), 90 strict_layer_property_change_checking(false),
91 use_zero_copy(false), 91 use_zero_copy(false),
92 use_partial_raster(false), 92 use_partial_raster(false),
93 enable_elastic_overscroll(false), 93 enable_elastic_overscroll(false),
94 use_image_texture_targets( 94 use_image_texture_targets(
95 static_cast<size_t>(gfx::BufferFormat::LAST) + 1, 95 static_cast<size_t>(gfx::BufferFormat::LAST) + 1,
96 GL_TEXTURE_2D), 96 GL_TEXTURE_2D),
97 ignore_root_layer_flings(false), 97 ignore_root_layer_flings(false),
98 scheduled_raster_task_limit(32), 98 scheduled_raster_task_limit(32),
99 use_occlusion_for_tile_prioritization(false), 99 use_occlusion_for_tile_prioritization(false),
100 verify_clip_tree_calculations(false),
100 image_decode_tasks_enabled(false), 101 image_decode_tasks_enabled(false),
101 wait_for_beginframe_interval(true), 102 wait_for_beginframe_interval(true),
102 abort_commit_before_output_surface_creation(true), 103 abort_commit_before_output_surface_creation(true),
103 use_mouse_wheel_gestures(false), 104 use_mouse_wheel_gestures(false),
104 max_staging_buffer_usage_in_bytes(32 * 1024 * 1024), 105 max_staging_buffer_usage_in_bytes(32 * 1024 * 1024),
105 memory_policy_(64 * 1024 * 1024, 106 memory_policy_(64 * 1024 * 1024,
106 gpu::MemoryAllocation::CUTOFF_ALLOW_EVERYTHING, 107 gpu::MemoryAllocation::CUTOFF_ALLOW_EVERYTHING,
107 ManagedMemoryPolicy::kDefaultNumResourcesLimit) {} 108 ManagedMemoryPolicy::kDefaultNumResourcesLimit) {}
108 109
109 LayerTreeSettings::LayerTreeSettings(const LayerTreeSettings& other) = default; 110 LayerTreeSettings::LayerTreeSettings(const LayerTreeSettings& other) = default;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 strict_layer_property_change_checking == 158 strict_layer_property_change_checking ==
158 other.strict_layer_property_change_checking && 159 other.strict_layer_property_change_checking &&
159 use_zero_copy == other.use_zero_copy && 160 use_zero_copy == other.use_zero_copy &&
160 use_partial_raster == other.use_partial_raster && 161 use_partial_raster == other.use_partial_raster &&
161 enable_elastic_overscroll == other.enable_elastic_overscroll && 162 enable_elastic_overscroll == other.enable_elastic_overscroll &&
162 use_image_texture_targets == other.use_image_texture_targets && 163 use_image_texture_targets == other.use_image_texture_targets &&
163 ignore_root_layer_flings == other.ignore_root_layer_flings && 164 ignore_root_layer_flings == other.ignore_root_layer_flings &&
164 scheduled_raster_task_limit == other.scheduled_raster_task_limit && 165 scheduled_raster_task_limit == other.scheduled_raster_task_limit &&
165 use_occlusion_for_tile_prioritization == 166 use_occlusion_for_tile_prioritization ==
166 other.use_occlusion_for_tile_prioritization && 167 other.use_occlusion_for_tile_prioritization &&
168 verify_clip_tree_calculations == other.verify_clip_tree_calculations &&
167 image_decode_tasks_enabled == other.image_decode_tasks_enabled && 169 image_decode_tasks_enabled == other.image_decode_tasks_enabled &&
168 wait_for_beginframe_interval == other.wait_for_beginframe_interval && 170 wait_for_beginframe_interval == other.wait_for_beginframe_interval &&
169 use_mouse_wheel_gestures == other.use_mouse_wheel_gestures && 171 use_mouse_wheel_gestures == other.use_mouse_wheel_gestures &&
170 max_staging_buffer_usage_in_bytes == 172 max_staging_buffer_usage_in_bytes ==
171 other.max_staging_buffer_usage_in_bytes && 173 other.max_staging_buffer_usage_in_bytes &&
172 memory_policy_ == other.memory_policy_ && 174 memory_policy_ == other.memory_policy_ &&
173 LayerTreeDebugState::Equal(initial_debug_state, 175 LayerTreeDebugState::Equal(initial_debug_state,
174 other.initial_debug_state); 176 other.initial_debug_state);
175 } 177 }
176 178
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 using_synchronous_renderer_compositor; 313 using_synchronous_renderer_compositor;
312 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; 314 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval;
313 scheduler_settings.background_frame_interval = 315 scheduler_settings.background_frame_interval =
314 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); 316 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate);
315 scheduler_settings.abort_commit_before_output_surface_creation = 317 scheduler_settings.abort_commit_before_output_surface_creation =
316 abort_commit_before_output_surface_creation; 318 abort_commit_before_output_surface_creation;
317 return scheduler_settings; 319 return scheduler_settings;
318 } 320 }
319 321
320 } // namespace cc 322 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698