| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 void DidLeaveBeginFrame(); | 121 void DidLeaveBeginFrame(); |
| 122 bool inside_begin_frame() const { return inside_begin_frame_; } | 122 bool inside_begin_frame() const { return inside_begin_frame_; } |
| 123 | 123 |
| 124 // Indicates whether the LayerTreeHostImpl is visible. | 124 // Indicates whether the LayerTreeHostImpl is visible. |
| 125 void SetVisible(bool visible); | 125 void SetVisible(bool visible); |
| 126 | 126 |
| 127 // Indicates that a redraw is required, either due to the impl tree changing | 127 // Indicates that a redraw is required, either due to the impl tree changing |
| 128 // or the screen being damaged and simply needing redisplay. | 128 // or the screen being damaged and simply needing redisplay. |
| 129 void SetNeedsRedraw(); | 129 void SetNeedsRedraw(); |
| 130 | 130 |
| 131 // Indicates that a redraw is required because we are currently rendering | 131 // Indicates whether a redraw is required because we are currently rendering |
| 132 // with a low resolution or checkerboarded tile. | 132 // with a low resolution or checkerboarded tile. |
| 133 void DidSwapUseIncompleteTile(); | 133 void SetSwapUsedIncompleteTile(bool used_incomplete_tile); |
| 134 | 134 |
| 135 // Indicates whether ACTION_DRAW_AND_SWAP_IF_POSSIBLE drew to the screen or | 135 // Indicates whether ACTION_DRAW_AND_SWAP_IF_POSSIBLE drew to the screen or |
| 136 // not. | 136 // not. |
| 137 void DidDrawIfPossibleCompleted(bool success); | 137 void DidDrawIfPossibleCompleted(bool success); |
| 138 | 138 |
| 139 // Indicates that a new commit flow needs to be performed, either to pull | 139 // Indicates that a new commit flow needs to be performed, either to pull |
| 140 // updates from the main thread to the impl, or to push deltas from the impl | 140 // updates from the main thread to the impl, or to push deltas from the impl |
| 141 // thread to main. | 141 // thread to main. |
| 142 void SetNeedsCommit(); | 142 void SetNeedsCommit(); |
| 143 | 143 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 bool draw_if_possible_failed_; | 236 bool draw_if_possible_failed_; |
| 237 bool did_create_and_initialize_first_output_surface_; | 237 bool did_create_and_initialize_first_output_surface_; |
| 238 | 238 |
| 239 private: | 239 private: |
| 240 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); | 240 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); |
| 241 }; | 241 }; |
| 242 | 242 |
| 243 } // namespace cc | 243 } // namespace cc |
| 244 | 244 |
| 245 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 245 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
| OLD | NEW |