| OLD | NEW |
| 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 <limits> | 8 #include <limits> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 13 #include "ui/gfx/buffer_types.h" | 13 #include "ui/gfx/buffer_types.h" |
| 14 | 14 |
| 15 namespace cc { | 15 namespace cc { |
| 16 | 16 |
| 17 LayerSettings::LayerSettings() : use_compositor_animation_timelines(false) { | |
| 18 } | |
| 19 | |
| 20 LayerSettings::~LayerSettings() { | |
| 21 } | |
| 22 | |
| 23 LayerTreeSettings::LayerTreeSettings() | 17 LayerTreeSettings::LayerTreeSettings() |
| 24 : single_thread_proxy_scheduler(true), | 18 : single_thread_proxy_scheduler(true), |
| 25 use_external_begin_frame_source(false), | 19 use_external_begin_frame_source(false), |
| 26 main_frame_before_activation_enabled(false), | 20 main_frame_before_activation_enabled(false), |
| 27 using_synchronous_renderer_compositor(false), | 21 using_synchronous_renderer_compositor(false), |
| 28 accelerated_animation_enabled(true), | 22 accelerated_animation_enabled(true), |
| 29 can_use_lcd_text(true), | 23 can_use_lcd_text(true), |
| 30 use_distance_field_text(false), | 24 use_distance_field_text(false), |
| 31 gpu_rasterization_enabled(false), | 25 gpu_rasterization_enabled(false), |
| 32 gpu_rasterization_forced(false), | 26 gpu_rasterization_forced(false), |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 timeout_and_draw_when_animation_checkerboards; | 81 timeout_and_draw_when_animation_checkerboards; |
| 88 scheduler_settings.using_synchronous_renderer_compositor = | 82 scheduler_settings.using_synchronous_renderer_compositor = |
| 89 using_synchronous_renderer_compositor; | 83 using_synchronous_renderer_compositor; |
| 90 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; | 84 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; |
| 91 scheduler_settings.background_frame_interval = | 85 scheduler_settings.background_frame_interval = |
| 92 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); | 86 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); |
| 93 return scheduler_settings; | 87 return scheduler_settings; |
| 94 } | 88 } |
| 95 | 89 |
| 96 } // namespace cc | 90 } // namespace cc |
| OLD | NEW |