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

Side by Side Diff: cc/scheduler/scheduler_settings.cc

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « cc/scheduler/scheduler_settings.h ('k') | cc/scheduler/scheduler_state_machine.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/trace_event/trace_event_argument.h" 7 #include "base/trace_event/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 28 matching lines...) Expand all
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(false), 42 main_thread_should_always_be_low_latency(false),
43 background_frame_interval(base::TimeDelta::FromSecondsD( 43 background_frame_interval(base::TimeDelta::FromSecondsD(
44 1.0 / settings.background_animation_rate)) { 44 1.0 / settings.background_animation_rate)) {
45 } 45 }
46 46
47 SchedulerSettings::~SchedulerSettings() {} 47 SchedulerSettings::~SchedulerSettings() {}
48 48
49 scoped_refptr<base::debug::ConvertableToTraceFormat> 49 scoped_refptr<base::trace_event::ConvertableToTraceFormat>
50 SchedulerSettings::AsValue() const { 50 SchedulerSettings::AsValue() const {
51 scoped_refptr<base::debug::TracedValue> state = 51 scoped_refptr<base::trace_event::TracedValue> state =
52 new base::debug::TracedValue(); 52 new base::trace_event::TracedValue();
53 state->SetBoolean("use_external_begin_frame_source", 53 state->SetBoolean("use_external_begin_frame_source",
54 use_external_begin_frame_source); 54 use_external_begin_frame_source);
55 state->SetBoolean("forward_begin_frames_to_children", 55 state->SetBoolean("forward_begin_frames_to_children",
56 forward_begin_frames_to_children); 56 forward_begin_frames_to_children);
57 state->SetBoolean("main_frame_before_activation_enabled", 57 state->SetBoolean("main_frame_before_activation_enabled",
58 main_frame_before_activation_enabled); 58 main_frame_before_activation_enabled);
59 state->SetBoolean("impl_side_painting", impl_side_painting); 59 state->SetBoolean("impl_side_painting", impl_side_painting);
60 state->SetBoolean("timeout_and_draw_when_animation_checkerboards", 60 state->SetBoolean("timeout_and_draw_when_animation_checkerboards",
61 timeout_and_draw_when_animation_checkerboards); 61 timeout_and_draw_when_animation_checkerboards);
62 state->SetInteger("maximum_number_of_failed_draws_before_draw_is_forced_", 62 state->SetInteger("maximum_number_of_failed_draws_before_draw_is_forced_",
63 maximum_number_of_failed_draws_before_draw_is_forced_); 63 maximum_number_of_failed_draws_before_draw_is_forced_);
64 state->SetBoolean("using_synchronous_renderer_compositor", 64 state->SetBoolean("using_synchronous_renderer_compositor",
65 using_synchronous_renderer_compositor); 65 using_synchronous_renderer_compositor);
66 state->SetBoolean("throttle_frame_production", throttle_frame_production); 66 state->SetBoolean("throttle_frame_production", throttle_frame_production);
67 state->SetBoolean("disable_hi_res_timer_tasks_on_battery", 67 state->SetBoolean("disable_hi_res_timer_tasks_on_battery",
68 disable_hi_res_timer_tasks_on_battery); 68 disable_hi_res_timer_tasks_on_battery);
69 state->SetBoolean("main_thread_should_always_be_low_latency", 69 state->SetBoolean("main_thread_should_always_be_low_latency",
70 main_thread_should_always_be_low_latency); 70 main_thread_should_always_be_low_latency);
71 state->SetInteger("background_frame_interval", 71 state->SetInteger("background_frame_interval",
72 background_frame_interval.InMicroseconds()); 72 background_frame_interval.InMicroseconds());
73 return state; 73 return state;
74 } 74 }
75 75
76 } // namespace cc 76 } // namespace cc
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler_settings.h ('k') | cc/scheduler/scheduler_state_machine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698