blob: fe90f431e254ffb319b37deb680782bcd9ebf7ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CC_SCHEDULER_SCHEDULER_SETTINGS_H_
#define CC_SCHEDULER_SCHEDULER_SETTINGS_H_
#include "base/memory/ref_counted.h"
#include "base/time/time.h"
#include "base/values.h"
#include "cc/base/cc_export.h"
namespace base {
namespace trace_event {
class ConvertableToTraceFormat;
}
}
namespace cc {
class LayerTreeSettings;
class CC_EXPORT SchedulerSettings {
public:
SchedulerSettings();
explicit SchedulerSettings(const LayerTreeSettings& settings);
~SchedulerSettings();
bool use_external_begin_frame_source;
bool forward_begin_frames_to_children;
bool main_frame_before_activation_enabled;
bool impl_side_painting;
bool timeout_and_draw_when_animation_checkerboards;
int maximum_number_of_failed_draws_before_draw_is_forced_;
bool using_synchronous_renderer_compositor;
bool throttle_frame_production;
bool disable_hi_res_timer_tasks_on_battery;
// In main thread low latency mode the entire
// BeginMainFrame->Commit->Activation->Draw cycle should complete before
// starting the next cycle. Additionally, BeginMainFrame and Commit are
// completed atomically with no other tasks or actions occuring between them.
bool main_thread_should_always_be_low_latency;
base::TimeDelta background_frame_interval;
scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const;
};
} // namespace cc
#endif // CC_SCHEDULER_SCHEDULER_SETTINGS_H_
|