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_STATE_MACHINE_H_ | 5 #ifndef CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
6 #define CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 6 #define CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 bool PendingDrawsShouldBeAborted() const; | 230 bool PendingDrawsShouldBeAborted() const; |
231 | 231 |
232 bool SupportsProactiveBeginFrame() const; | 232 bool SupportsProactiveBeginFrame() const; |
233 | 233 |
234 void SetContinuousPainting(bool continuous_painting) { | 234 void SetContinuousPainting(bool continuous_painting) { |
235 continuous_painting_ = continuous_painting; | 235 continuous_painting_ = continuous_painting; |
236 } | 236 } |
237 | 237 |
238 bool CouldSendBeginMainFrame() const; | 238 bool CouldSendBeginMainFrame() const; |
239 | 239 |
| 240 // TODO(zmo): This is temporary for debugging crbug.com/393331. |
| 241 // We should remove it afterwards. |
| 242 std::string GetStatesForDebugging() const; |
| 243 |
240 protected: | 244 protected: |
241 bool BeginFrameNeededToAnimateOrDraw() const; | 245 bool BeginFrameNeededToAnimateOrDraw() const; |
242 bool ProactiveBeginFrameWanted() const; | 246 bool ProactiveBeginFrameWanted() const; |
243 | 247 |
244 // True if we need to force activations to make forward progress. | 248 // True if we need to force activations to make forward progress. |
245 bool PendingActivationsShouldBeForced() const; | 249 bool PendingActivationsShouldBeForced() const; |
246 | 250 |
247 bool ShouldAnimate() const; | 251 bool ShouldAnimate() const; |
248 bool ShouldBeginOutputSurfaceCreation() const; | 252 bool ShouldBeginOutputSurfaceCreation() const; |
249 bool ShouldDrawForced() const; | 253 bool ShouldDrawForced() const; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 bool skip_begin_main_frame_to_reduce_latency_; | 312 bool skip_begin_main_frame_to_reduce_latency_; |
309 bool continuous_painting_; | 313 bool continuous_painting_; |
310 | 314 |
311 private: | 315 private: |
312 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); | 316 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); |
313 }; | 317 }; |
314 | 318 |
315 } // namespace cc | 319 } // namespace cc |
316 | 320 |
317 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 321 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
OLD | NEW |