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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
126 const SchedulerSettings& scheduler_settings); | 126 const SchedulerSettings& scheduler_settings); |
127 | 127 |
128 void PostBeginImplFrameDeadline(base::TimeTicks deadline); | 128 void PostBeginImplFrameDeadline(base::TimeTicks deadline); |
129 void SetupNextBeginImplFrameIfNeeded(); | 129 void SetupNextBeginImplFrameIfNeeded(); |
130 void ActivatePendingTree(); | 130 void ActivatePendingTree(); |
131 void DrawAndSwapIfPossible(); | 131 void DrawAndSwapIfPossible(); |
132 void DrawAndSwapForced(); | 132 void DrawAndSwapForced(); |
133 void DrawAndReadback(); | 133 void DrawAndReadback(); |
134 void ProcessScheduledActions(); | 134 void ProcessScheduledActions(); |
135 | 135 |
136 bool CanPaintAndCommitBeforeDeadline() const; | |
brianderson
2013/11/05 00:24:17
Since commit happens before rasterization + activa
Dominik Grewe
2013/11/05 12:24:20
Sgtm.
| |
137 | |
136 const SchedulerSettings settings_; | 138 const SchedulerSettings settings_; |
137 SchedulerClient* client_; | 139 SchedulerClient* client_; |
138 | 140 |
139 bool last_set_needs_begin_impl_frame_; | 141 bool last_set_needs_begin_impl_frame_; |
140 BeginFrameArgs last_begin_impl_frame_args_; | 142 BeginFrameArgs last_begin_impl_frame_args_; |
141 base::CancelableClosure begin_impl_frame_deadline_closure_; | 143 base::CancelableClosure begin_impl_frame_deadline_closure_; |
142 base::CancelableClosure poll_for_draw_triggers_closure_; | 144 base::CancelableClosure poll_for_draw_triggers_closure_; |
143 | 145 |
144 SchedulerStateMachine state_machine_; | 146 SchedulerStateMachine state_machine_; |
145 bool inside_process_scheduled_actions_; | 147 bool inside_process_scheduled_actions_; |
146 SchedulerStateMachine::Action inside_action_; | 148 SchedulerStateMachine::Action inside_action_; |
147 | 149 |
148 base::WeakPtrFactory<Scheduler> weak_factory_; | 150 base::WeakPtrFactory<Scheduler> weak_factory_; |
149 | 151 |
150 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 152 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
151 }; | 153 }; |
152 | 154 |
153 } // namespace cc | 155 } // namespace cc |
154 | 156 |
155 #endif // CC_SCHEDULER_SCHEDULER_H_ | 157 #endif // CC_SCHEDULER_SCHEDULER_H_ |
OLD | NEW |