OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 #ifndef CC_SCHEDULER_SCHEDULER_H_ | 5 #ifndef CC_SCHEDULER_SCHEDULER_H_ |
6 #define CC_SCHEDULER_SCHEDULER_H_ | 6 #define CC_SCHEDULER_SCHEDULER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 133 |
134 bool IsInsideAction(SchedulerStateMachine::Action action) { | 134 bool IsInsideAction(SchedulerStateMachine::Action action) { |
135 return inside_action_ == action; | 135 return inside_action_ == action; |
136 } | 136 } |
137 | 137 |
138 bool IsBeginMainFrameSent() const; | 138 bool IsBeginMainFrameSent() const; |
139 void SetContinuousPainting(bool continuous_painting) { | 139 void SetContinuousPainting(bool continuous_painting) { |
140 state_machine_.SetContinuousPainting(continuous_painting); | 140 state_machine_.SetContinuousPainting(continuous_painting); |
141 } | 141 } |
142 | 142 |
| 143 void SetDeferCommits(bool defer_commits); |
| 144 |
143 protected: | 145 protected: |
144 class CC_EXPORT SyntheticBeginFrameSource : public TimeSourceClient { | 146 class CC_EXPORT SyntheticBeginFrameSource : public TimeSourceClient { |
145 public: | 147 public: |
146 SyntheticBeginFrameSource(Scheduler* scheduler, | 148 SyntheticBeginFrameSource(Scheduler* scheduler, |
147 base::SingleThreadTaskRunner* task_runner); | 149 base::SingleThreadTaskRunner* task_runner); |
148 virtual ~SyntheticBeginFrameSource(); | 150 virtual ~SyntheticBeginFrameSource(); |
149 | 151 |
150 // Updates the phase and frequency of the timer. | 152 // Updates the phase and frequency of the timer. |
151 void CommitVSyncParameters(base::TimeTicks timebase, | 153 void CommitVSyncParameters(base::TimeTicks timebase, |
152 base::TimeDelta interval); | 154 base::TimeDelta interval); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 void SetupSyntheticBeginFrames(); | 226 void SetupSyntheticBeginFrames(); |
225 | 227 |
226 base::WeakPtrFactory<Scheduler> weak_factory_; | 228 base::WeakPtrFactory<Scheduler> weak_factory_; |
227 | 229 |
228 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 230 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
229 }; | 231 }; |
230 | 232 |
231 } // namespace cc | 233 } // namespace cc |
232 | 234 |
233 #endif // CC_SCHEDULER_SCHEDULER_H_ | 235 #endif // CC_SCHEDULER_SCHEDULER_H_ |
OLD | NEW |