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

Unified Diff: cc/scheduler/scheduler_state_machine.h

Issue 15058004: cc: Rename VSync to BeginFrame (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix test compiler errors Created 7 years, 7 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
Index: cc/scheduler/scheduler_state_machine.h
diff --git a/cc/scheduler/scheduler_state_machine.h b/cc/scheduler/scheduler_state_machine.h
index fb3908b71ced9af5ad0bcfe58e360e75377a3abf..5c1b03be9cc2d4d3ffaca57125858330c903e353 100644
--- a/cc/scheduler/scheduler_state_machine.h
+++ b/cc/scheduler/scheduler_state_machine.h
@@ -70,14 +70,14 @@ class CC_EXPORT SchedulerStateMachine {
Action NextAction() const;
void UpdateState(Action action);
- // Indicates whether the scheduler needs a vsync callback in order to make
- // progress.
- bool VSyncCallbackNeeded() const;
+ // Indicates whether the scheduler needs a BeginFrame callback in order to
+ // make progress.
+ bool BeginFrameCallbackNeeded() const;
- // Indicates that the system has entered and left a vsync callback.
- // The scheduler will not draw more than once in a given vsync callback.
- void DidEnterVSync();
- void DidLeaveVSync();
+ // Indicates that the system has entered and left a BeginFrame callback.
+ // The scheduler will not draw more than once in a given BeginFrame callback.
+ void DidEnterBeginFrame();
+ void DidLeaveBeginFrame();
// Indicates whether the LayerTreeHostImpl is visible.
void SetVisible(bool visible);
@@ -180,7 +180,7 @@ class CC_EXPORT SchedulerStateMachine {
bool needs_forced_commit_;
bool expect_immediate_begin_frame_;
bool main_thread_needs_layer_textures_;
- bool inside_vsync_;
+ bool inside_begin_frame_;
bool visible_;
bool can_start_;
bool can_draw_;

Powered by Google App Engine
This is Rietveld 408576698