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

Side by Side Diff: cc/trees/layer_tree_settings.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 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 "cc/proto/gfx_conversions.h" 7 #include "cc/proto/gfx_conversions.h"
8 #include "third_party/khronos/GLES2/gl2.h" 8 #include "third_party/khronos/GLES2/gl2.h"
9 9
10 namespace cc { 10 namespace cc {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 max_memory_for_prepaint_percentage == 69 max_memory_for_prepaint_percentage ==
70 other.max_memory_for_prepaint_percentage && 70 other.max_memory_for_prepaint_percentage &&
71 use_zero_copy == other.use_zero_copy && 71 use_zero_copy == other.use_zero_copy &&
72 use_partial_raster == other.use_partial_raster && 72 use_partial_raster == other.use_partial_raster &&
73 enable_elastic_overscroll == other.enable_elastic_overscroll && 73 enable_elastic_overscroll == other.enable_elastic_overscroll &&
74 ignore_root_layer_flings == other.ignore_root_layer_flings && 74 ignore_root_layer_flings == other.ignore_root_layer_flings &&
75 scheduled_raster_task_limit == other.scheduled_raster_task_limit && 75 scheduled_raster_task_limit == other.scheduled_raster_task_limit &&
76 use_occlusion_for_tile_prioritization == 76 use_occlusion_for_tile_prioritization ==
77 other.use_occlusion_for_tile_prioritization && 77 other.use_occlusion_for_tile_prioritization &&
78 verify_clip_tree_calculations == other.verify_clip_tree_calculations && 78 verify_clip_tree_calculations == other.verify_clip_tree_calculations &&
79 verify_visible_rect_calculations ==
80 other.verify_visible_rect_calculations &&
79 verify_transform_tree_calculations == 81 verify_transform_tree_calculations ==
80 other.verify_transform_tree_calculations && 82 other.verify_transform_tree_calculations &&
81 image_decode_tasks_enabled == other.image_decode_tasks_enabled && 83 image_decode_tasks_enabled == other.image_decode_tasks_enabled &&
82 max_staging_buffer_usage_in_bytes == 84 max_staging_buffer_usage_in_bytes ==
83 other.max_staging_buffer_usage_in_bytes && 85 other.max_staging_buffer_usage_in_bytes &&
84 gpu_memory_policy == other.gpu_memory_policy && 86 gpu_memory_policy == other.gpu_memory_policy &&
85 software_memory_policy == other.software_memory_policy && 87 software_memory_policy == other.software_memory_policy &&
86 LayerTreeDebugState::Equal(initial_debug_state, 88 LayerTreeDebugState::Equal(initial_debug_state,
87 other.initial_debug_state) && 89 other.initial_debug_state) &&
88 use_cached_picture_raster == other.use_cached_picture_raster; 90 use_cached_picture_raster == other.use_cached_picture_raster;
89 } 91 }
90 92
91 SchedulerSettings LayerTreeSettings::ToSchedulerSettings() const { 93 SchedulerSettings LayerTreeSettings::ToSchedulerSettings() const {
92 SchedulerSettings scheduler_settings; 94 SchedulerSettings scheduler_settings;
93 scheduler_settings.main_frame_before_activation_enabled = 95 scheduler_settings.main_frame_before_activation_enabled =
94 main_frame_before_activation_enabled; 96 main_frame_before_activation_enabled;
95 scheduler_settings.timeout_and_draw_when_animation_checkerboards = 97 scheduler_settings.timeout_and_draw_when_animation_checkerboards =
96 timeout_and_draw_when_animation_checkerboards; 98 timeout_and_draw_when_animation_checkerboards;
97 scheduler_settings.using_synchronous_renderer_compositor = 99 scheduler_settings.using_synchronous_renderer_compositor =
98 using_synchronous_renderer_compositor; 100 using_synchronous_renderer_compositor;
99 scheduler_settings.background_frame_interval = 101 scheduler_settings.background_frame_interval =
100 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); 102 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate);
101 scheduler_settings.abort_commit_before_compositor_frame_sink_creation = 103 scheduler_settings.abort_commit_before_compositor_frame_sink_creation =
102 abort_commit_before_compositor_frame_sink_creation; 104 abort_commit_before_compositor_frame_sink_creation;
103 return scheduler_settings; 105 return scheduler_settings;
104 } 106 }
105 107
106 } // namespace cc 108 } // namespace cc
OLDNEW
« cc/trees/layer_tree_impl_unittest.cc ('K') | « cc/trees/layer_tree_settings.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698