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

Unified Diff: cc/scheduler/frame_rate_controller.cc

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/scheduler/frame_rate_controller.h ('k') | cc/scheduler/frame_rate_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/frame_rate_controller.cc
diff --git a/cc/scheduler/frame_rate_controller.cc b/cc/scheduler/frame_rate_controller.cc
index 4e523d782c1d3ab1618732922b85ff0e01171602..4fcea235a5504da09ba9baaf28bf0055426189e5 100644
--- a/cc/scheduler/frame_rate_controller.cc
+++ b/cc/scheduler/frame_rate_controller.cc
@@ -98,10 +98,10 @@ void FrameRateController::OnTimerTick() {
// Check if we have too many frames in flight.
bool throttled =
max_frames_pending_ && num_frames_pending_ >= max_frames_pending_;
- TRACE_COUNTER_ID1("cc", "ThrottledVSyncInterval", thread_, throttled);
+ TRACE_COUNTER_ID1("cc", "ThrottledCompositor", thread_, throttled);
if (client_)
- client_->VSyncTick(throttled);
+ client_->BeginFrame(throttled);
if (swap_buffers_complete_supported_ && !is_time_source_throttling_ &&
!throttled)
@@ -117,14 +117,14 @@ void FrameRateController::PostManualTick() {
void FrameRateController::ManualTick() { OnTimerTick(); }
-void FrameRateController::DidBeginFrame() {
+void FrameRateController::DidSwapBuffers() {
if (swap_buffers_complete_supported_)
num_frames_pending_++;
else if (!is_time_source_throttling_)
PostManualTick();
}
-void FrameRateController::DidFinishFrame() {
+void FrameRateController::DidSwapBuffersComplete() {
DCHECK(swap_buffers_complete_supported_);
DCHECK_GT(num_frames_pending_, 0);
« no previous file with comments | « cc/scheduler/frame_rate_controller.h ('k') | cc/scheduler/frame_rate_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698