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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 } | 152 } |
153 | 153 |
154 bool WillDrawIfNeeded() const; | 154 bool WillDrawIfNeeded() const; |
155 | 155 |
156 base::TimeTicks AnticipatedDrawTime() const; | 156 base::TimeTicks AnticipatedDrawTime() const; |
157 | 157 |
158 void NotifyBeginMainFrameStarted(); | 158 void NotifyBeginMainFrameStarted(); |
159 | 159 |
160 base::TimeTicks LastBeginImplFrameTime(); | 160 base::TimeTicks LastBeginImplFrameTime(); |
161 | 161 |
| 162 void SetDeferCommits(bool defer_commits); |
| 163 |
162 scoped_refptr<base::debug::ConvertableToTraceFormat> AsValue() const; | 164 scoped_refptr<base::debug::ConvertableToTraceFormat> AsValue() const; |
163 void AsValueInto(base::debug::TracedValue* value) const override; | 165 void AsValueInto(base::debug::TracedValue* value) const override; |
164 | 166 |
165 void SetContinuousPainting(bool continuous_painting) { | 167 void SetContinuousPainting(bool continuous_painting) { |
166 state_machine_.SetContinuousPainting(continuous_painting); | 168 state_machine_.SetContinuousPainting(continuous_painting); |
167 } | 169 } |
168 | 170 |
169 // BeginFrameObserverMixin | 171 // BeginFrameObserverMixin |
170 bool OnBeginFrameMixInDelegate(const BeginFrameArgs& args) override; | 172 bool OnBeginFrameMixInDelegate(const BeginFrameArgs& args) override; |
171 | 173 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 254 |
253 friend class SchedulerFrameSourcesConstructor; | 255 friend class SchedulerFrameSourcesConstructor; |
254 friend class TestSchedulerFrameSourcesConstructor; | 256 friend class TestSchedulerFrameSourcesConstructor; |
255 | 257 |
256 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 258 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
257 }; | 259 }; |
258 | 260 |
259 } // namespace cc | 261 } // namespace cc |
260 | 262 |
261 #endif // CC_SCHEDULER_SCHEDULER_H_ | 263 #endif // CC_SCHEDULER_SCHEDULER_H_ |
OLD | NEW |