| Index: cc/scheduler/scheduler_state_machine.h
|
| diff --git a/cc/scheduler/scheduler_state_machine.h b/cc/scheduler/scheduler_state_machine.h
|
| index 7ee039aee056e7fac0346232fee8843d897ed21e..b579998b5e1abbd6d912eb074d141ce90b9d491d 100644
|
| --- a/cc/scheduler/scheduler_state_machine.h
|
| +++ b/cc/scheduler/scheduler_state_machine.h
|
| @@ -12,6 +12,7 @@
|
| #include "base/time/time.h"
|
| #include "cc/base/cc_export.h"
|
| #include "cc/output/begin_frame_args.h"
|
| +#include "cc/scheduler/commit_earlyout_reason.h"
|
| #include "cc/scheduler/draw_result.h"
|
| #include "cc/scheduler/scheduler_settings.h"
|
|
|
| @@ -206,11 +207,12 @@ class CC_EXPORT SchedulerStateMachine {
|
|
|
| // Call this only in response to receiving an ACTION_SEND_BEGIN_MAIN_FRAME
|
| // from NextAction if the client rejects the BeginMainFrame message.
|
| - // If did_handle is false, then another commit will be retried soon.
|
| - void BeginMainFrameAborted(bool did_handle);
|
| + void BeginMainFrameAborted(CommitEarlyOutReason reason);
|
|
|
| // Set that we can create the first OutputSurface and start the scheduler.
|
| void SetCanStart() { can_start_ = true; }
|
| + // Allow access of the can_start_ state in tests.
|
| + bool CanStartForTesting() const { return can_start_; }
|
|
|
| void SetSkipNextBeginMainFrameToReduceLatency();
|
|
|
| @@ -286,7 +288,7 @@ class CC_EXPORT SchedulerStateMachine {
|
| bool HasRequestedSwapThisFrame() const;
|
| bool HasSwappedThisFrame() const;
|
|
|
| - void UpdateStateOnCommit(bool commit_was_aborted);
|
| + void UpdateStateOnCommit(bool commit_had_no_updates);
|
| void UpdateStateOnActivation();
|
| void UpdateStateOnDraw(bool did_request_swap);
|
| void UpdateStateOnPrepareTiles();
|
|
|