Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: cc/scheduler/scheduler_state_machine.h

Issue 786123002: Update from https://crrev.com/307330 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/scheduler/scheduler_settings.cc ('k') | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler_state_machine.h
diff --git a/cc/scheduler/scheduler_state_machine.h b/cc/scheduler/scheduler_state_machine.h
index 12f8635210db0f022a8addaff57add1b71ccdb13..6e306942cf1925db5403884f82c559a94cbbeec7 100644
--- a/cc/scheduler/scheduler_state_machine.h
+++ b/cc/scheduler/scheduler_state_machine.h
@@ -62,6 +62,14 @@ class CC_EXPORT SchedulerStateMachine {
};
static const char* BeginImplFrameStateToString(BeginImplFrameState state);
+ enum BeginImplFrameDeadlineMode {
+ BEGIN_IMPL_FRAME_DEADLINE_MODE_IMMEDIATE,
+ BEGIN_IMPL_FRAME_DEADLINE_MODE_REGULAR,
+ BEGIN_IMPL_FRAME_DEADLINE_MODE_LATE,
+ };
+ static const char* BeginImplFrameDeadlineModeToString(
+ BeginImplFrameDeadlineMode mode);
+
enum CommitState {
COMMIT_STATE_IDLE,
COMMIT_STATE_BEGIN_MAIN_FRAME_SENT,
@@ -128,10 +136,10 @@ class CC_EXPORT SchedulerStateMachine {
void OnBeginImplFrameDeadlinePending();
void OnBeginImplFrameDeadline();
void OnBeginImplFrameIdle();
- bool ShouldTriggerBeginImplFrameDeadlineEarly() const;
BeginImplFrameState begin_impl_frame_state() const {
return begin_impl_frame_state_;
}
+ BeginImplFrameDeadlineMode CurrentBeginImplFrameDeadlineMode() const;
// If the main thread didn't manage to produce a new frame in time for the
// impl thread to draw, it is in a high latency mode.
@@ -258,6 +266,8 @@ class CC_EXPORT SchedulerStateMachine {
bool BeginFrameNeededForChildren() const;
bool ProactiveBeginFrameWanted() const;
+ bool ShouldTriggerBeginImplFrameDeadlineImmediately() const;
+
// True if we need to force activations to make forward progress.
bool PendingActivationsShouldBeForced() const;
« no previous file with comments | « cc/scheduler/scheduler_settings.cc ('k') | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698