Extend the enterprise policy for SSL overrides to the "danger" command
[chromium-blink-merge.git] / cc / scheduler / scheduler_settings.cc
blobc6c8e8eb2dbc00e2b6c37c6a0cd0d5ec0b2fd652
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_before_activation_enabled(false),
14 impl_side_painting(false),
15 timeout_and_draw_when_animation_checkerboards(true),
16 maximum_number_of_failed_draws_before_draw_is_forced_(3),
17 using_synchronous_renderer_compositor(false),
18 throttle_frame_production(true),
19 main_thread_should_always_be_low_latency(false),
20 background_frame_interval(base::TimeDelta::FromSeconds(1)) {
23 SchedulerSettings::~SchedulerSettings() {}
25 scoped_refptr<base::trace_event::ConvertableToTraceFormat>
26 SchedulerSettings::AsValue() const {
27 scoped_refptr<base::trace_event::TracedValue> state =
28 new base::trace_event::TracedValue();
29 state->SetBoolean("use_external_begin_frame_source",
30 use_external_begin_frame_source);
31 state->SetBoolean("main_frame_before_activation_enabled",
32 main_frame_before_activation_enabled);
33 state->SetBoolean("impl_side_painting", impl_side_painting);
34 state->SetBoolean("timeout_and_draw_when_animation_checkerboards",
35 timeout_and_draw_when_animation_checkerboards);
36 state->SetInteger("maximum_number_of_failed_draws_before_draw_is_forced_",
37 maximum_number_of_failed_draws_before_draw_is_forced_);
38 state->SetBoolean("using_synchronous_renderer_compositor",
39 using_synchronous_renderer_compositor);
40 state->SetBoolean("throttle_frame_production", throttle_frame_production);
41 state->SetBoolean("main_thread_should_always_be_low_latency",
42 main_thread_should_always_be_low_latency);
43 state->SetInteger("background_frame_interval",
44 background_frame_interval.InMicroseconds());
45 return state;
48 } // namespace cc