| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 void DrawAndSwapIfPossible(); | 122 void DrawAndSwapIfPossible(); |
| 123 void DrawAndSwapForced(); | 123 void DrawAndSwapForced(); |
| 124 void DrawAndReadback(); | 124 void DrawAndReadback(); |
| 125 void ProcessScheduledActions(); | 125 void ProcessScheduledActions(); |
| 126 | 126 |
| 127 const SchedulerSettings settings_; | 127 const SchedulerSettings settings_; |
| 128 SchedulerClient* client_; | 128 SchedulerClient* client_; |
| 129 | 129 |
| 130 base::WeakPtrFactory<Scheduler> weak_factory_; | 130 base::WeakPtrFactory<Scheduler> weak_factory_; |
| 131 bool last_set_needs_begin_frame_; | 131 bool last_set_needs_begin_frame_; |
| 132 bool has_pending_begin_frame_; | |
| 133 BeginFrameArgs last_begin_frame_args_; | 132 BeginFrameArgs last_begin_frame_args_; |
| 134 base::CancelableClosure poll_for_draw_triggers_closure_; | 133 base::CancelableClosure poll_for_draw_triggers_closure_; |
| 135 | 134 |
| 136 SchedulerStateMachine state_machine_; | 135 SchedulerStateMachine state_machine_; |
| 137 bool inside_process_scheduled_actions_; | 136 bool inside_process_scheduled_actions_; |
| 138 SchedulerStateMachine::Action inside_action_; | 137 SchedulerStateMachine::Action inside_action_; |
| 139 | 138 |
| 140 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 139 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 141 }; | 140 }; |
| 142 | 141 |
| 143 } // namespace cc | 142 } // namespace cc |
| 144 | 143 |
| 145 #endif // CC_SCHEDULER_SCHEDULER_H_ | 144 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |