| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 void DrawAndSwapForced(); | 112 void DrawAndSwapForced(); |
| 113 void DrawAndReadback(); | 113 void DrawAndReadback(); |
| 114 void ProcessScheduledActions(); | 114 void ProcessScheduledActions(); |
| 115 | 115 |
| 116 const SchedulerSettings settings_; | 116 const SchedulerSettings settings_; |
| 117 SchedulerClient* client_; | 117 SchedulerClient* client_; |
| 118 | 118 |
| 119 base::WeakPtrFactory<Scheduler> weak_factory_; | 119 base::WeakPtrFactory<Scheduler> weak_factory_; |
| 120 bool last_set_needs_begin_frame_; | 120 bool last_set_needs_begin_frame_; |
| 121 bool has_pending_begin_frame_; | 121 bool has_pending_begin_frame_; |
| 122 // TODO(brianderson): crbug.com/249806 : Remove safe_to_expect_begin_frame_ | |
| 123 // workaround. | |
| 124 bool safe_to_expect_begin_frame_; | |
| 125 BeginFrameArgs last_begin_frame_args_; | 122 BeginFrameArgs last_begin_frame_args_; |
| 126 | 123 |
| 127 SchedulerStateMachine state_machine_; | 124 SchedulerStateMachine state_machine_; |
| 128 bool inside_process_scheduled_actions_; | 125 bool inside_process_scheduled_actions_; |
| 129 | 126 |
| 130 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 127 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 131 }; | 128 }; |
| 132 | 129 |
| 133 } // namespace cc | 130 } // namespace cc |
| 134 | 131 |
| 135 #endif // CC_SCHEDULER_SCHEDULER_H_ | 132 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |