cc: Rename VSync to BeginFrame
commitc8cbae7f41a1212bce61523021a60ee78783993b
authorbrianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 23 May 2013 10:45:03 +0000 (23 10:45 +0000)
committerbrianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 23 May 2013 10:45:03 +0000 (23 10:45 +0000)
tree8a57d88602df03a587c2dcd2a95039b20ec4ef83
parent280755cad298b37cd6ead4d16337c4e1ed79f1a0
cc: Rename VSync to BeginFrame

We are replacing hard vsync scheduling with BeginFrame+deadline
intervals.

This patch removes references to vsync in CC where it will no
longer make sense. (One exception is cc::VSyncTimeSource, which
will be removed in future patches to be incorporated into the
scheduler itself.)

Additionally, BeginFrames are clarified with suffixes whenever
context is not enough and existing identifiers associated with
BeginFrame when it no longer makes sense are renamed.

A summary of the important renames are as follows:

Browser Side Renames:
COutputSurface::EnableVSyncNotification -> SetNeedsBeginFrame
COutputSurface::OnDidVSync -> OnBeginFrame
ViewHostMsg_SetVSyncNotificationEnabled -> ViewHostMsg_SetNeedsBeginFrame
ViewMsg_DidVSync -> ViewMsg_BeginFrame

Impl Side Renames:
LTHI::EnableVSyncNotification -> SetNeedsBeginFrame
LTHI::DidVSync -> BeginFrame
LTHI::DidRecieveLastInputEventForVSync -> DidReceiveLastInputEventForBeginFrame

Main+Impl Side Renames:
LTHIClient::DidVSync -> BeginFrameOnImplThread
LTHIClient::DidRecieveLastInputEventForVSync -> DidReceiveLastInputEventForBeginFrameOnImplThread
TProxy::BeginFrame -> BeginFrameOnMainThread
TProxy::ForceBeginFrameOnImplThread -> ForceCommitOnImplThread
TProxy::BeginFrameCompleteOnImplThread -> StartCommitOnImplThread
Scheduler::BeginFrameComplete -> FinishCommit
Scheduler::BeginFrameAborted -> BeginFrameAbortedByMainThread
Scheduler::LastVsyncTime -> LastBeginFrameOnImplThreadTime
Scheduler::VSyncTick -> BeginFrame
SchedulerSM::VSyncCallbackNeeded -> BeginFrameNeededByImplThread
SchedulerSM::ACTION_BEGIN_FRAME -> ACTION_SEND_BEGIN_FRAME_TO_MAIN_THREAD
FRC::DidBeginFrame -> DidSwapBuffers
FRC::DidFinishFrame -> DidSwapBuffersComplete

Random Renames:
LTSettings::render_vsync_enabled -> throttle_frame_production
LTSettings::render_vsync_notification_enabled -> render_parent_drives_begin_frame
LTSettings::synchronously_disable_vsync -> using_synchronous_renderer_compositor
RenderWidget::SynchronouslyDisableVSync -> UsingSynchronousRendererCompositor

BUG=240945

Review URL: https://chromiumcodereview.appspot.com/15058004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201739 0039d316-1c4b-4281-b951-d872f2087c98
41 files changed:
cc/input/input_handler.h
cc/output/output_surface.h
cc/output/output_surface_client.h
cc/scheduler/frame_rate_controller.cc
cc/scheduler/frame_rate_controller.h
cc/scheduler/frame_rate_controller_unittest.cc
cc/scheduler/scheduler.cc
cc/scheduler/scheduler.h
cc/scheduler/scheduler_state_machine.cc
cc/scheduler/scheduler_state_machine.h
cc/scheduler/scheduler_state_machine_unittest.cc
cc/scheduler/scheduler_unittest.cc
cc/test/fake_layer_tree_host_impl_client.h
cc/test/fake_output_surface.cc
cc/test/fake_output_surface.h
cc/test/layer_tree_test.cc
cc/trees/layer_tree_host_impl.cc
cc/trees/layer_tree_host_impl.h
cc/trees/layer_tree_host_impl_unittest.cc
cc/trees/layer_tree_host_unittest.cc
cc/trees/layer_tree_host_unittest_animation.cc
cc/trees/layer_tree_host_unittest_scroll.cc
cc/trees/layer_tree_settings.cc
cc/trees/layer_tree_settings.h
cc/trees/single_thread_proxy.h
cc/trees/thread_proxy.cc
cc/trees/thread_proxy.h
chrome/test/perf/rendering/latency_tests.cc
content/browser/android/content_view_core_impl.cc
content/browser/renderer_host/render_widget_host_view_android.cc
content/browser/renderer_host/render_widget_host_view_android.h
content/common/view_messages.h
content/renderer/android/synchronous_compositor_output_surface.cc
content/renderer/android/synchronous_compositor_output_surface.h
content/renderer/gpu/compositor_output_surface.cc
content/renderer/gpu/compositor_output_surface.h
content/renderer/gpu/input_handler_proxy.cc
content/renderer/gpu/input_handler_proxy_unittest.cc
content/renderer/gpu/render_widget_compositor.cc
content/renderer/render_widget.cc
content/renderer/render_widget.h