| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 216 |
| 217 bool has_pending_tree() const { return has_pending_tree_; } | 217 bool has_pending_tree() const { return has_pending_tree_; } |
| 218 | 218 |
| 219 void DidLoseOutputSurface(); | 219 void DidLoseOutputSurface(); |
| 220 void DidCreateAndInitializeOutputSurface(); | 220 void DidCreateAndInitializeOutputSurface(); |
| 221 bool HasInitializedOutputSurface() const; | 221 bool HasInitializedOutputSurface() const; |
| 222 | 222 |
| 223 // True if we need to abort draws to make forward progress. | 223 // True if we need to abort draws to make forward progress. |
| 224 bool PendingDrawsShouldBeAborted() const; | 224 bool PendingDrawsShouldBeAborted() const; |
| 225 | 225 |
| 226 bool SupportsProactiveBeginFrame() const; |
| 227 |
| 226 protected: | 228 protected: |
| 227 bool BeginFrameNeededToDrawByImplThread() const; | 229 bool BeginFrameNeededToDrawByImplThread() const; |
| 228 bool ProactiveBeginFrameWantedByImplThread() const; | 230 bool ProactiveBeginFrameWantedByImplThread() const; |
| 229 | 231 |
| 230 // True if we need to force activations to make forward progress. | 232 // True if we need to force activations to make forward progress. |
| 231 bool PendingActivationsShouldBeForced() const; | 233 bool PendingActivationsShouldBeForced() const; |
| 232 | 234 |
| 233 bool ShouldBeginOutputSurfaceCreation() const; | 235 bool ShouldBeginOutputSurfaceCreation() const; |
| 234 bool ShouldDrawForced() const; | 236 bool ShouldDrawForced() const; |
| 235 bool ShouldDraw() const; | 237 bool ShouldDraw() const; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 bool draw_if_possible_failed_; | 285 bool draw_if_possible_failed_; |
| 284 bool did_create_and_initialize_first_output_surface_; | 286 bool did_create_and_initialize_first_output_surface_; |
| 285 | 287 |
| 286 private: | 288 private: |
| 287 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); | 289 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); |
| 288 }; | 290 }; |
| 289 | 291 |
| 290 } // namespace cc | 292 } // namespace cc |
| 291 | 293 |
| 292 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 294 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
| OLD | NEW |