| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/scheduler/scheduler_settings.h" | 5 #include "cc/scheduler/scheduler_settings.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event_argument.h" | 7 #include "base/debug/trace_event_argument.h" |
| 8 #include "cc/trees/layer_tree_settings.h" | 8 #include "cc/trees/layer_tree_settings.h" |
| 9 | 9 |
| 10 namespace cc { | 10 namespace cc { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 impl_side_painting(settings.impl_side_painting), | 32 impl_side_painting(settings.impl_side_painting), |
| 33 timeout_and_draw_when_animation_checkerboards( | 33 timeout_and_draw_when_animation_checkerboards( |
| 34 settings.timeout_and_draw_when_animation_checkerboards), | 34 settings.timeout_and_draw_when_animation_checkerboards), |
| 35 maximum_number_of_failed_draws_before_draw_is_forced_( | 35 maximum_number_of_failed_draws_before_draw_is_forced_( |
| 36 settings.maximum_number_of_failed_draws_before_draw_is_forced_), | 36 settings.maximum_number_of_failed_draws_before_draw_is_forced_), |
| 37 using_synchronous_renderer_compositor( | 37 using_synchronous_renderer_compositor( |
| 38 settings.using_synchronous_renderer_compositor), | 38 settings.using_synchronous_renderer_compositor), |
| 39 throttle_frame_production(settings.throttle_frame_production), | 39 throttle_frame_production(settings.throttle_frame_production), |
| 40 disable_hi_res_timer_tasks_on_battery( | 40 disable_hi_res_timer_tasks_on_battery( |
| 41 settings.disable_hi_res_timer_tasks_on_battery), | 41 settings.disable_hi_res_timer_tasks_on_battery), |
| 42 main_thread_should_always_be_low_latency( | 42 main_thread_should_always_be_low_latency(false), |
| 43 settings.main_thread_should_always_be_low_latency), | |
| 44 background_frame_interval(base::TimeDelta::FromSecondsD( | 43 background_frame_interval(base::TimeDelta::FromSecondsD( |
| 45 1.0 / settings.background_animation_rate)) { | 44 1.0 / settings.background_animation_rate)) { |
| 46 } | 45 } |
| 47 | 46 |
| 48 SchedulerSettings::~SchedulerSettings() {} | 47 SchedulerSettings::~SchedulerSettings() {} |
| 49 | 48 |
| 50 scoped_refptr<base::debug::ConvertableToTraceFormat> | 49 scoped_refptr<base::debug::ConvertableToTraceFormat> |
| 51 SchedulerSettings::AsValue() const { | 50 SchedulerSettings::AsValue() const { |
| 52 scoped_refptr<base::debug::TracedValue> state = | 51 scoped_refptr<base::debug::TracedValue> state = |
| 53 new base::debug::TracedValue(); | 52 new base::debug::TracedValue(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 68 state->SetBoolean("disable_hi_res_timer_tasks_on_battery", | 67 state->SetBoolean("disable_hi_res_timer_tasks_on_battery", |
| 69 disable_hi_res_timer_tasks_on_battery); | 68 disable_hi_res_timer_tasks_on_battery); |
| 70 state->SetBoolean("main_thread_should_always_be_low_latency", | 69 state->SetBoolean("main_thread_should_always_be_low_latency", |
| 71 main_thread_should_always_be_low_latency); | 70 main_thread_should_always_be_low_latency); |
| 72 state->SetInteger("background_frame_interval", | 71 state->SetInteger("background_frame_interval", |
| 73 background_frame_interval.InMicroseconds()); | 72 background_frame_interval.InMicroseconds()); |
| 74 return state; | 73 return state; |
| 75 } | 74 } |
| 76 | 75 |
| 77 } // namespace cc | 76 } // namespace cc |
| OLD | NEW |