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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 } | 252 } |
253 | 253 |
254 bool CouldSendBeginMainFrame() const; | 254 bool CouldSendBeginMainFrame() const; |
255 | 255 |
256 void SetImplLatencyTakesPriorityOnBattery( | 256 void SetImplLatencyTakesPriorityOnBattery( |
257 bool impl_latency_takes_priority_on_battery) { | 257 bool impl_latency_takes_priority_on_battery) { |
258 impl_latency_takes_priority_on_battery_ = | 258 impl_latency_takes_priority_on_battery_ = |
259 impl_latency_takes_priority_on_battery; | 259 impl_latency_takes_priority_on_battery; |
260 } | 260 } |
261 | 261 |
| 262 void SetDeferCommits(bool defer_commits); |
| 263 |
262 // TODO(zmo): This is temporary for debugging crbug.com/393331. | 264 // TODO(zmo): This is temporary for debugging crbug.com/393331. |
263 // We should remove it afterwards. | 265 // We should remove it afterwards. |
264 std::string GetStatesForDebugging() const; | 266 std::string GetStatesForDebugging() const; |
265 | 267 |
266 void SetChildrenNeedBeginFrames(bool children_need_begin_frames); | 268 void SetChildrenNeedBeginFrames(bool children_need_begin_frames); |
267 bool children_need_begin_frames() const { | 269 bool children_need_begin_frames() const { |
268 return children_need_begin_frames_; | 270 return children_need_begin_frames_; |
269 } | 271 } |
270 | 272 |
271 protected: | 273 protected: |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 bool pending_tree_is_ready_for_activation_; | 336 bool pending_tree_is_ready_for_activation_; |
335 bool active_tree_needs_first_draw_; | 337 bool active_tree_needs_first_draw_; |
336 bool did_commit_after_animating_; | 338 bool did_commit_after_animating_; |
337 bool did_create_and_initialize_first_output_surface_; | 339 bool did_create_and_initialize_first_output_surface_; |
338 bool impl_latency_takes_priority_; | 340 bool impl_latency_takes_priority_; |
339 bool skip_next_begin_main_frame_to_reduce_latency_; | 341 bool skip_next_begin_main_frame_to_reduce_latency_; |
340 bool skip_begin_main_frame_to_reduce_latency_; | 342 bool skip_begin_main_frame_to_reduce_latency_; |
341 bool continuous_painting_; | 343 bool continuous_painting_; |
342 bool impl_latency_takes_priority_on_battery_; | 344 bool impl_latency_takes_priority_on_battery_; |
343 bool children_need_begin_frames_; | 345 bool children_need_begin_frames_; |
| 346 bool defer_commits_; |
344 | 347 |
345 private: | 348 private: |
346 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); | 349 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); |
347 }; | 350 }; |
348 | 351 |
349 } // namespace cc | 352 } // namespace cc |
350 | 353 |
351 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 354 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
OLD | NEW |