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

Unified Diff: cc/trees/layer_tree_host_impl.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/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 9ee229bd760f95dfdaffb42b388c3d9e7236bbfa..990f0ce629132bdd632daa43ea28d37646602c52 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -378,9 +378,9 @@ bool LayerTreeHostImpl::HaveTouchEventHandlersAt(gfx::Point viewport_point) {
return false;
}
-void LayerTreeHostImpl::DidReceiveLastInputEventForVSync(
+void LayerTreeHostImpl::DidReceiveLastInputEventForBeginFrame(
base::TimeTicks frame_time) {
- client_->DidReceiveLastInputEventForVSync(frame_time);
+ client_->DidReceiveLastInputEventForBeginFrameOnImplThread(frame_time);
}
void LayerTreeHostImpl::TrackDamageForAllSurfaces(
@@ -1044,8 +1044,8 @@ void LayerTreeHostImpl::OnVSyncParametersChanged(base::TimeTicks timebase,
client_->OnVSyncParametersChanged(timebase, interval);
}
-void LayerTreeHostImpl::DidVSync(base::TimeTicks frame_time) {
- client_->DidVSync(frame_time);
+void LayerTreeHostImpl::BeginFrame(base::TimeTicks frame_time) {
+ client_->BeginFrameOnImplThread(frame_time);
}
void LayerTreeHostImpl::OnSendFrameToParentCompositorAck(
@@ -1196,9 +1196,9 @@ bool LayerTreeHostImpl::SwapBuffers(const LayerTreeHostImpl::FrameData& frame) {
return true;
}
-void LayerTreeHostImpl::EnableVSyncNotification(bool enable) {
+void LayerTreeHostImpl::SetNeedsBeginFrame(bool enable) {
if (output_surface_)
- output_surface_->EnableVSyncNotification(enable);
+ output_surface_->SetNeedsBeginFrame(enable);
}
gfx::Size LayerTreeHostImpl::DeviceViewportSize() const {
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698