| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 void SetNeedsRedraw(); | 74 void SetNeedsRedraw(); |
| 75 | 75 |
| 76 void SetNeedsManageTiles(); | 76 void SetNeedsManageTiles(); |
| 77 | 77 |
| 78 void SetMainThreadNeedsLayerTextures(); | 78 void SetMainThreadNeedsLayerTextures(); |
| 79 | 79 |
| 80 void SetSwapUsedIncompleteTile(bool used_incomplete_tile); | 80 void SetSwapUsedIncompleteTile(bool used_incomplete_tile); |
| 81 | 81 |
| 82 void SetSmoothnessTakesPriority(bool smoothness_takes_priority); | 82 void SetSmoothnessTakesPriority(bool smoothness_takes_priority); |
| 83 | 83 |
| 84 void FinishCommit(); | 84 void NotifyReadyToCommit(); |
| 85 void BeginMainFrameAborted(bool did_handle); | 85 void BeginMainFrameAborted(bool did_handle); |
| 86 | 86 |
| 87 void DidManageTiles(); | 87 void DidManageTiles(); |
| 88 void DidLoseOutputSurface(); | 88 void DidLoseOutputSurface(); |
| 89 void DidCreateAndInitializeOutputSurface(); | 89 void DidCreateAndInitializeOutputSurface(); |
| 90 bool HasInitializedOutputSurface() const { | 90 bool HasInitializedOutputSurface() const { |
| 91 return state_machine_.HasInitializedOutputSurface(); | 91 return state_machine_.HasInitializedOutputSurface(); |
| 92 } | 92 } |
| 93 | 93 |
| 94 bool CommitPending() const { return state_machine_.CommitPending(); } | 94 bool CommitPending() const { return state_machine_.CommitPending(); } |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 SchedulerStateMachine::Action inside_action_; | 151 SchedulerStateMachine::Action inside_action_; |
| 152 | 152 |
| 153 base::WeakPtrFactory<Scheduler> weak_factory_; | 153 base::WeakPtrFactory<Scheduler> weak_factory_; |
| 154 | 154 |
| 155 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 155 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 } // namespace cc | 158 } // namespace cc |
| 159 | 159 |
| 160 #endif // CC_SCHEDULER_SCHEDULER_H_ | 160 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |