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

Issue 15058004: cc: Rename VSync to BeginFrame (Closed)

Created:
7 years, 7 months ago by brianderson
Modified:
7 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, jam, apatrick_chromium, jdduke (slow)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201739

Patch Set 1 #

Patch Set 2 : Fix test compiler errors #

Total comments: 2

Patch Set 3 : Be very explicit about Begin*Frame type #

Patch Set 4 : Fix Android #

Total comments: 1

Patch Set 5 : Fix android more; Use BeginChildCompositorFrame #

Patch Set 6 : Rebase. Clarify w/ suffixes. Don't clarify if context is not ambiguous. #

Patch Set 7 : Undo LTHClient changes #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+564 lines, -498 lines) Patch
M cc/input/input_handler.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M cc/output/output_surface.h View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M cc/output/output_surface_client.h View 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/scheduler/frame_rate_controller.h View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M cc/scheduler/frame_rate_controller.cc View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M cc/scheduler/frame_rate_controller_unittest.cc View 1 2 3 4 5 5 chunks +44 lines, -41 lines 0 comments Download
M cc/scheduler/scheduler.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -5 lines 0 comments Download
M cc/scheduler/scheduler.cc View 1 2 3 4 5 7 chunks +19 lines, -18 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.h View 1 2 3 4 5 4 chunks +23 lines, -20 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.cc View 1 2 3 4 5 14 chunks +33 lines, -26 lines 0 comments Download
M cc/scheduler/scheduler_state_machine_unittest.cc View 1 2 3 4 5 62 chunks +199 lines, -162 lines 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 2 3 4 5 6 7 14 chunks +20 lines, -20 lines 0 comments Download
M cc/test/fake_layer_tree_host_impl_client.h View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M cc/test/fake_output_surface.h View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M cc/test/fake_output_surface.cc View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 5 chunks +7 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 5 chunks +26 lines, -24 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M cc/trees/single_thread_proxy.h View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M cc/trees/thread_proxy.h View 1 2 3 4 5 8 chunks +17 lines, -15 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 5 19 chunks +69 lines, -69 lines 0 comments Download
M chrome/test/perf/rendering/latency_tests.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -5 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 2 chunks +6 lines, -7 lines 0 comments Download
M content/renderer/android/synchronous_compositor_output_surface.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/android/synchronous_compositor_output_surface.cc View 1 2 3 4 5 3 chunks +7 lines, -7 lines 0 comments Download
M content/renderer/gpu/compositor_output_surface.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/gpu/compositor_output_surface.cc View 1 2 3 4 5 3 chunks +6 lines, -6 lines 0 comments Download
M content/renderer/gpu/input_handler_proxy.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/gpu/input_handler_proxy_unittest.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -3 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 39 (0 generated)
Sami
Thanks Brian, I like where this is going. https://codereview.chromium.org/15058004/diff/11001/cc/output/output_surface.h File cc/output/output_surface.h (right): https://codereview.chromium.org/15058004/diff/11001/cc/output/output_surface.h#newcode102 cc/output/output_surface.h:102: virtual ...
7 years, 7 months ago (2013-05-15 12:11:20 UTC) #1
danakj
I find it a little weird we'll end up with 2 "BeginFrame"s that are very ...
7 years, 7 months ago (2013-05-15 13:32:29 UTC) #2
brianderson
On 2013/05/15 13:32:29, danakj wrote: > I find it a little weird we'll end up ...
7 years, 7 months ago (2013-05-15 18:01:00 UTC) #3
brianderson
https://codereview.chromium.org/15058004/diff/11001/cc/output/output_surface.h File cc/output/output_surface.h (right): https://codereview.chromium.org/15058004/diff/11001/cc/output/output_surface.h#newcode102 cc/output/output_surface.h:102: virtual void EnableBeginFrameNotification(bool enable) {} On 2013/05/15 12:11:20, Sami ...
7 years, 7 months ago (2013-05-15 18:03:30 UTC) #4
brianderson
ptal. Enough places had to deal with different BeginFrames that making it explicit everywhere made ...
7 years, 7 months ago (2013-05-16 20:56:46 UTC) #5
brianderson
Adding folks for OWNERS reviews. This patch touches a lot of files, but is just ...
7 years, 7 months ago (2013-05-16 21:19:19 UTC) #6
jamesr
On 2013/05/16 21:19:19, Brian Anderson wrote: > Adding folks for OWNERS reviews. > This patch ...
7 years, 7 months ago (2013-05-16 21:21:27 UTC) #7
jamesr
https://codereview.chromium.org/15058004/diff/32001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/15058004/diff/32001/content/renderer/gpu/render_widget_compositor.cc#newcode509 content/renderer/gpu/render_widget_compositor.cc:509: widget_->willBeginCompositorFrame(); WillBeginMainFrame() is now inconsistent with the devtools instrumentation. ...
7 years, 7 months ago (2013-05-16 21:23:39 UTC) #8
palmer
LGTM rubberstamp for content/common/view_messages.h
7 years, 7 months ago (2013-05-16 22:00:25 UTC) #9
Yaron
content/renderer/android lgtm
7 years, 7 months ago (2013-05-16 22:43:45 UTC) #10
jamesr
On 2013/05/15 18:01:00, Brian Anderson wrote: > On 2013/05/15 13:32:29, danakj wrote: > > I ...
7 years, 7 months ago (2013-05-17 00:27:51 UTC) #11
no sievers
On 2013/05/16 21:19:19, Brian Anderson wrote: > Adding folks for OWNERS reviews. > +sievers for: ...
7 years, 7 months ago (2013-05-17 00:54:52 UTC) #12
brianderson
On 2013/05/16 21:23:39, jamesr wrote: > https://codereview.chromium.org/15058004/diff/32001/content/renderer/gpu/render_widget_compositor.cc > File content/renderer/gpu/render_widget_compositor.cc (right): > > https://codereview.chromium.org/15058004/diff/32001/content/renderer/gpu/render_widget_compositor.cc#newcode509 > ...
7 years, 7 months ago (2013-05-17 01:01:38 UTC) #13
brianderson
On 2013/05/17 00:27:51, jamesr wrote: > On 2013/05/15 18:01:00, Brian Anderson wrote: > > On ...
7 years, 7 months ago (2013-05-17 03:30:49 UTC) #14
Sami
On 2013/05/17 03:30:49, Brian Anderson wrote: > 1) Rename BeginFrame to BeginMainFrame, add BeginImplFrame and ...
7 years, 7 months ago (2013-05-17 09:23:34 UTC) #15
danakj
On Fri, May 17, 2013 at 5:23 AM, <skyostil@chromium.org> wrote: > On 2013/05/17 03:30:49, Brian ...
7 years, 7 months ago (2013-05-17 13:35:31 UTC) #16
nduca
I honestly think we're overthinking here. Inspector's BeginFrame is actually goign to evolve over time ...
7 years, 7 months ago (2013-05-17 17:39:16 UTC) #17
Tom Hudson
On 2013/05/17 17:39:16, nduca wrote: > I honestly think we're overthinking here. Inspector's BeginFrame is ...
7 years, 7 months ago (2013-05-20 08:22:23 UTC) #18
Ken Russell (switch to Gerrit)
content/renderer/gpu LGTM
7 years, 7 months ago (2013-05-20 17:54:28 UTC) #19
enne (OOO)
On 2013/05/20 08:22:23, Tom Hudson wrote: > Nat, I spend too much time down below ...
7 years, 7 months ago (2013-05-20 18:56:39 UTC) #20
nduca
Your'e on the right track actually: in the end state we seek, there really is ...
7 years, 7 months ago (2013-05-20 19:03:50 UTC) #21
nduca
(lgtm by the way)
7 years, 7 months ago (2013-05-20 19:05:38 UTC) #22
brianderson
jamesr, I think I'm just missing a thumbs up for content/renderer now. ptal. > WillBeginMainFrame() ...
7 years, 7 months ago (2013-05-20 21:27:02 UTC) #23
jamesr
Leaking the "impl" nomenclature out of cc/ is pretty unfortunate - it's not a great ...
7 years, 7 months ago (2013-05-20 21:30:56 UTC) #24
nduca
BeginCompositorFrame sounds nice
7 years, 7 months ago (2013-05-20 21:31:52 UTC) #25
brianderson
Ok, here's the current plan: * Do not refer to "Impl" outside of cc, use ...
7 years, 7 months ago (2013-05-21 00:06:13 UTC) #26
jamesr
On 2013/05/21 00:06:13, Brian Anderson wrote: > Ok, here's the current plan: > * Do ...
7 years, 7 months ago (2013-05-21 00:08:33 UTC) #27
Ian Vollick
On 2013/05/21 00:08:33, jamesr wrote: > On 2013/05/21 00:06:13, Brian Anderson wrote: > > Ok, ...
7 years, 7 months ago (2013-05-21 16:52:37 UTC) #28
brianderson
PTAL. To speed up the naming discussion without having to wade through the entire patch, ...
7 years, 7 months ago (2013-05-21 22:59:22 UTC) #29
nduca
This is not what we discussed. Can you update me on why you decided against ...
7 years, 7 months ago (2013-05-21 23:48:23 UTC) #30
brianderson
On 2013/05/21 23:48:23, nduca wrote: > This is not what we discussed. Can you update ...
7 years, 7 months ago (2013-05-22 00:32:30 UTC) #31
nduca
ok. How about not changing lthclient?
7 years, 7 months ago (2013-05-22 00:50:47 UTC) #32
brianderson
On 2013/05/22 00:50:47, nduca wrote: > ok. How about not changing lthclient? I see! ThreadProxy ...
7 years, 7 months ago (2013-05-22 00:59:37 UTC) #33
brianderson
On 2013/05/22 00:59:37, Brian Anderson wrote: > On 2013/05/22 00:50:47, nduca wrote: > > ok. ...
7 years, 7 months ago (2013-05-22 01:37:01 UTC) #34
nduca
lgtm
7 years, 7 months ago (2013-05-22 01:37:56 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brianderson@chromium.org/15058004/100001
7 years, 7 months ago (2013-05-22 17:11:26 UTC) #36
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=43117
7 years, 7 months ago (2013-05-22 18:12:30 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brianderson@chromium.org/15058004/120004
7 years, 7 months ago (2013-05-22 19:53:14 UTC) #38
commit-bot: I haz the power
7 years, 7 months ago (2013-05-23 10:45:05 UTC) #39
Message was sent while issue was closed.
Change committed as 201739

Powered by Google App Engine
This is Rietveld 408576698