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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 // TODO(zmo): This is temporary for debugging crbug.com/393331. | 248 // TODO(zmo): This is temporary for debugging crbug.com/393331. |
249 // We should remove it afterwards. | 249 // We should remove it afterwards. |
250 std::string GetStatesForDebugging() const; | 250 std::string GetStatesForDebugging() const; |
251 | 251 |
252 void SetChildrenNeedBeginFrames(bool children_need_begin_frames); | 252 void SetChildrenNeedBeginFrames(bool children_need_begin_frames); |
253 bool children_need_begin_frames() const { | 253 bool children_need_begin_frames() const { |
254 return children_need_begin_frames_; | 254 return children_need_begin_frames_; |
255 } | 255 } |
256 | 256 |
257 protected: | 257 protected: |
258 bool BeginFrameNeededToAnimateOrDraw() const; | 258 bool BeginFrameRequiredForAction() const; |
259 bool BeginFrameNeededForChildren() const; | 259 bool BeginFrameRequiredForChildren() const; |
260 bool ProactiveBeginFrameWanted() const; | 260 bool ProactiveBeginFrameWanted() const; |
261 | 261 |
262 bool ShouldTriggerBeginImplFrameDeadlineImmediately() const; | 262 bool ShouldTriggerBeginImplFrameDeadlineImmediately() const; |
263 | 263 |
264 // True if we need to force activations to make forward progress. | 264 // True if we need to force activations to make forward progress. |
265 bool PendingActivationsShouldBeForced() const; | 265 bool PendingActivationsShouldBeForced() const; |
266 | 266 |
267 bool ShouldAnimate() const; | 267 bool ShouldAnimate() const; |
268 bool ShouldBeginOutputSurfaceCreation() const; | 268 bool ShouldBeginOutputSurfaceCreation() const; |
269 bool ShouldDraw() const; | 269 bool ShouldDraw() const; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 bool did_request_swap_in_last_frame_; | 335 bool did_request_swap_in_last_frame_; |
336 bool did_perform_swap_in_last_draw_; | 336 bool did_perform_swap_in_last_draw_; |
337 | 337 |
338 private: | 338 private: |
339 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); | 339 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); |
340 }; | 340 }; |
341 | 341 |
342 } // namespace cc | 342 } // namespace cc |
343 | 343 |
344 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 344 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
OLD | NEW |