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