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

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

Issue 786123002: Update from https://crrev.com/307330 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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.cc ('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/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
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
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
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/scheduler/scheduler_state_machine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698