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

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

Issue 1821863002: Hook up ui::Compositor to Display's BeginFrameSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unittests Created 4 years, 8 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 return LayerTreeSettings::ScrollbarAnimator::NO_ANIMATOR; 50 return LayerTreeSettings::ScrollbarAnimator::NO_ANIMATOR;
51 } 51 }
52 return LayerTreeSettings::ScrollbarAnimator::NO_ANIMATOR; 52 return LayerTreeSettings::ScrollbarAnimator::NO_ANIMATOR;
53 } 53 }
54 54
55 } // namespace 55 } // namespace
56 56
57 LayerTreeSettings::LayerTreeSettings() 57 LayerTreeSettings::LayerTreeSettings()
58 : single_thread_proxy_scheduler(true), 58 : single_thread_proxy_scheduler(true),
59 use_external_begin_frame_source(false), 59 use_external_begin_frame_source(false),
60 use_output_surface_begin_frame_source(false),
60 main_frame_before_activation_enabled(false), 61 main_frame_before_activation_enabled(false),
61 using_synchronous_renderer_compositor(false), 62 using_synchronous_renderer_compositor(false),
62 can_use_lcd_text(true), 63 can_use_lcd_text(true),
63 use_distance_field_text(false), 64 use_distance_field_text(false),
64 gpu_rasterization_enabled(false), 65 gpu_rasterization_enabled(false),
65 gpu_rasterization_forced(false), 66 gpu_rasterization_forced(false),
66 gpu_rasterization_msaa_sample_count(0), 67 gpu_rasterization_msaa_sample_count(0),
67 gpu_rasterization_skewport_target_time_in_seconds(0.2f), 68 gpu_rasterization_skewport_target_time_in_seconds(0.2f),
68 create_low_res_tiling(false), 69 create_low_res_tiling(false),
69 scrollbar_animator(NO_ANIMATOR), 70 scrollbar_animator(NO_ANIMATOR),
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 using_synchronous_renderer_compositor; 312 using_synchronous_renderer_compositor;
312 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; 313 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval;
313 scheduler_settings.background_frame_interval = 314 scheduler_settings.background_frame_interval =
314 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); 315 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate);
315 scheduler_settings.abort_commit_before_output_surface_creation = 316 scheduler_settings.abort_commit_before_output_surface_creation =
316 abort_commit_before_output_surface_creation; 317 abort_commit_before_output_surface_creation;
317 return scheduler_settings; 318 return scheduler_settings;
318 } 319 }
319 320
320 } // namespace cc 321 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698