Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / cc / scheduler / scheduler_settings.cc
blob266ef1fedc9b4ec8b57baa5164b73ce973c21a7a
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
3 // found in the LICENSE file.
5 #include "cc/scheduler/scheduler_settings.h"
7 #include "base/trace_event/trace_event_argument.h"
9 namespace cc {
11 SchedulerSettings::SchedulerSettings()
12 : use_external_begin_frame_source(false),
13 main_frame_while_swap_throttled_enabled(false),
14 main_frame_before_activation_enabled(false),
15 impl_side_painting(false),
16 timeout_and_draw_when_animation_checkerboards(true),
17 maximum_number_of_failed_draws_before_draw_is_forced_(3),
18 using_synchronous_renderer_compositor(false),
19 throttle_frame_production(true),
20 main_thread_should_always_be_low_latency(false),
21 background_frame_interval(base::TimeDelta::FromSeconds(1)) {
24 SchedulerSettings::~SchedulerSettings() {}
26 scoped_refptr<base::trace_event::ConvertableToTraceFormat>
27 SchedulerSettings::AsValue() const {
28 scoped_refptr<base::trace_event::TracedValue> state =
29 new base::trace_event::TracedValue();
30 state->SetBoolean("use_external_begin_frame_source",
31 use_external_begin_frame_source);
32 state->SetBoolean("main_frame_while_swap_throttled_enabled",
33 main_frame_while_swap_throttled_enabled);
34 state->SetBoolean("main_frame_before_activation_enabled",
35 main_frame_before_activation_enabled);
36 state->SetBoolean("impl_side_painting", impl_side_painting);
37 state->SetBoolean("timeout_and_draw_when_animation_checkerboards",
38 timeout_and_draw_when_animation_checkerboards);
39 state->SetInteger("maximum_number_of_failed_draws_before_draw_is_forced_",
40 maximum_number_of_failed_draws_before_draw_is_forced_);
41 state->SetBoolean("using_synchronous_renderer_compositor",
42 using_synchronous_renderer_compositor);
43 state->SetBoolean("throttle_frame_production", throttle_frame_production);
44 state->SetBoolean("main_thread_should_always_be_low_latency",
45 main_thread_should_always_be_low_latency);
46 state->SetInteger("background_frame_interval",
47 background_frame_interval.InMicroseconds());
48 return state;
51 } // namespace cc