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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 } | 236 } |
237 | 237 |
238 bool CouldSendBeginMainFrame() const; | 238 bool CouldSendBeginMainFrame() const; |
239 | 239 |
240 void SetImplLatencyTakesPriorityOnBattery( | 240 void SetImplLatencyTakesPriorityOnBattery( |
241 bool impl_latency_takes_priority_on_battery) { | 241 bool impl_latency_takes_priority_on_battery) { |
242 impl_latency_takes_priority_on_battery_ = | 242 impl_latency_takes_priority_on_battery_ = |
243 impl_latency_takes_priority_on_battery; | 243 impl_latency_takes_priority_on_battery; |
244 } | 244 } |
245 | 245 |
| 246 void SetDeferCommits(bool defer_commits); |
| 247 |
246 // TODO(zmo): This is temporary for debugging crbug.com/393331. | 248 // TODO(zmo): This is temporary for debugging crbug.com/393331. |
247 // We should remove it afterwards. | 249 // We should remove it afterwards. |
248 std::string GetStatesForDebugging() const; | 250 std::string GetStatesForDebugging() const; |
249 | 251 |
250 void SetChildrenNeedBeginFrames(bool children_need_begin_frames); | 252 void SetChildrenNeedBeginFrames(bool children_need_begin_frames); |
251 bool children_need_begin_frames() const { | 253 bool children_need_begin_frames() const { |
252 return children_need_begin_frames_; | 254 return children_need_begin_frames_; |
253 } | 255 } |
254 | 256 |
255 protected: | 257 protected: |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 bool pending_tree_is_ready_for_activation_; | 318 bool pending_tree_is_ready_for_activation_; |
317 bool active_tree_needs_first_draw_; | 319 bool active_tree_needs_first_draw_; |
318 bool did_commit_after_animating_; | 320 bool did_commit_after_animating_; |
319 bool did_create_and_initialize_first_output_surface_; | 321 bool did_create_and_initialize_first_output_surface_; |
320 bool impl_latency_takes_priority_; | 322 bool impl_latency_takes_priority_; |
321 bool skip_next_begin_main_frame_to_reduce_latency_; | 323 bool skip_next_begin_main_frame_to_reduce_latency_; |
322 bool skip_begin_main_frame_to_reduce_latency_; | 324 bool skip_begin_main_frame_to_reduce_latency_; |
323 bool continuous_painting_; | 325 bool continuous_painting_; |
324 bool impl_latency_takes_priority_on_battery_; | 326 bool impl_latency_takes_priority_on_battery_; |
325 bool children_need_begin_frames_; | 327 bool children_need_begin_frames_; |
| 328 bool defer_commits_; |
326 | 329 |
327 private: | 330 private: |
328 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); | 331 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); |
329 }; | 332 }; |
330 | 333 |
331 } // namespace cc | 334 } // namespace cc |
332 | 335 |
333 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 336 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
OLD | NEW |