| 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 228 |
| 229 // True if we need to abort draws to make forward progress. | 229 // True if we need to abort draws to make forward progress. |
| 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; |
| 239 |
| 238 protected: | 240 protected: |
| 239 bool BeginFrameNeededToAnimateOrDraw() const; | 241 bool BeginFrameNeededToAnimateOrDraw() const; |
| 240 bool ProactiveBeginFrameWanted() const; | 242 bool ProactiveBeginFrameWanted() const; |
| 241 | 243 |
| 242 // True if we need to force activations to make forward progress. | 244 // True if we need to force activations to make forward progress. |
| 243 bool PendingActivationsShouldBeForced() const; | 245 bool PendingActivationsShouldBeForced() const; |
| 244 | 246 |
| 245 bool ShouldAnimate() const; | 247 bool ShouldAnimate() const; |
| 246 bool ShouldBeginOutputSurfaceCreation() const; | 248 bool ShouldBeginOutputSurfaceCreation() const; |
| 247 bool ShouldDrawForced() const; | 249 bool ShouldDrawForced() const; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 bool skip_begin_main_frame_to_reduce_latency_; | 308 bool skip_begin_main_frame_to_reduce_latency_; |
| 307 bool continuous_painting_; | 309 bool continuous_painting_; |
| 308 | 310 |
| 309 private: | 311 private: |
| 310 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); | 312 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); |
| 311 }; | 313 }; |
| 312 | 314 |
| 313 } // namespace cc | 315 } // namespace cc |
| 314 | 316 |
| 315 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 317 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
| OLD | NEW |