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

Unified Diff: cc/scheduler/scheduler_state_machine.h

Issue 1253203003: cc: Remove SchedulerStateMachine::UpdateState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nix WillAction Created 5 years, 5 months 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.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 af81845be7551eec289424ec0d1b506177e5206c..0477a2f11137a98a1048e3b41226eba2e7b6a8d4 100644
--- a/cc/scheduler/scheduler_state_machine.h
+++ b/cc/scheduler/scheduler_state_machine.h
@@ -122,7 +122,14 @@ class CC_EXPORT SchedulerStateMachine {
void AsValueInto(base::trace_event::TracedValue* dict) const;
Action NextAction() const;
- void UpdateState(Action action);
+ void WillAnimate();
+ void WillSendBeginMainFrame();
+ void WillCommit(bool commit_had_no_updates);
+ void WillActivate();
+ void WillDraw(bool did_request_swap);
+ void WillBeginOutputSurfaceCreation();
+ void WillPrepareTiles();
+ void WillInvalidateOutputSurface();
// Indicates whether the impl thread needs a BeginImplFrame callback in order
// to make progress.
@@ -284,15 +291,6 @@ class CC_EXPORT SchedulerStateMachine {
bool ShouldPrepareTiles() const;
bool ShouldInvalidateOutputSurface() const;
- void UpdateStateOnAnimate();
- void UpdateStateOnSendBeginMainFrame();
- void UpdateStateOnCommit(bool commit_had_no_updates);
- void UpdateStateOnActivation();
- void UpdateStateOnDraw(bool did_request_swap);
- void UpdateStateOnBeginOutputSurfaceCreation();
- void UpdateStateOnPrepareTiles();
- void UpdateStateOnInvalidateOutputSurface();
-
const SchedulerSettings settings_;
OutputSurfaceState output_surface_state_;
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698