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

Unified Diff: cc/scheduler/frame_rate_controller.h

Issue 15058004: cc: Rename VSync to BeginFrame (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase 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
« no previous file with comments | « cc/output/output_surface_client.h ('k') | cc/scheduler/frame_rate_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/frame_rate_controller.h
diff --git a/cc/scheduler/frame_rate_controller.h b/cc/scheduler/frame_rate_controller.h
index fe258668dfe3c81632d43f82dfec0840b8570a00..9210a670d9992523c055a35e16310fcddbc6318b 100644
--- a/cc/scheduler/frame_rate_controller.h
+++ b/cc/scheduler/frame_rate_controller.h
@@ -19,7 +19,7 @@ class TimeSource;
class CC_EXPORT FrameRateControllerClient {
public:
// Throttled is true when we have a maximum number of frames pending.
- virtual void VSyncTick(bool throttled) = 0;
+ virtual void BeginFrame(bool throttled) = 0;
protected:
virtual ~FrameRateControllerClient() {}
@@ -44,12 +44,12 @@ class CC_EXPORT FrameRateController {
// Use the following methods to adjust target frame rate.
//
- // Multiple frames can be in-progress, but for every DidBeginFrame, a
+ // Multiple frames can be in-progress, but for every DidSwapBuffers, a
// DidFinishFrame should be posted.
//
// If the rendering pipeline crashes, call DidAbortAllPendingFrames.
- void DidBeginFrame();
- void DidFinishFrame();
+ void DidSwapBuffers();
+ void DidSwapBuffersComplete();
void DidAbortAllPendingFrames();
void SetMaxFramesPending(int max_frames_pending); // 0 for unlimited.
int MaxFramesPending() const { return max_frames_pending_; }
« no previous file with comments | « cc/output/output_surface_client.h ('k') | cc/scheduler/frame_rate_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698