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

Issue 2277883002: Use vsync manager regardless of begin frame settings (Closed)

Created:
4 years, 4 months ago by enne (OOO)
Modified:
4 years, 4 months ago
Reviewers:
piman
CC:
cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, jam, jbauman+watch_chromium.org, kalyank, nona+watch_chromium.org, piman+watch_chromium.org, reveman, shuchen+watch_chromium.org, sievers+watch_chromium.org, James Su, Ian Vollick, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use vsync manager regardless of begin frame settings There was some hope that the ui::CompositorVSyncManager could be removed once --enable-begin-frame-scheduling was turned on. Unfortunately, the vsync manager is used by two additional systems that can't be easily removed: DelegatedFrameHost::AttemptFrameSubscriberCapture as well as components/exo/wayland/server.cc. The latter may go away eventually. If so, then the frame capture could then be changed to more simple polling as needed instead of vsync manager and observer system that needs to be plumbed everywhere. In the medium term, the vsync manager needs to live on in all paths. This means that BrowserCompositorOutputSurface and ui::Compositor always need to update the vsync manager with changes. Conditionals for whether or not to send vsync information to renderers just get moved down the pipeline from the output surface to DelegatedFrameHost. Committed: https://crrev.com/0875b32a9ef74d66951b77930ca46f1a3bf08043 Cr-Commit-Position: refs/heads/master@{#414186}

Patch Set 1 #

Patch Set 2 : Fix comment #

Patch Set 3 : Comments #

Total comments: 1

Patch Set 4 : Fix Mac compile OOPS #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -85 lines) Patch
M content/browser/compositor/browser_compositor_output_surface.h View 2 chunks +1 line, -13 lines 0 comments Download
M content/browser/compositor/browser_compositor_output_surface.cc View 4 chunks +4 lines, -47 lines 0 comments Download
M content/browser/renderer_host/browser_compositor_view_mac.mm View 1 2 3 2 chunks +2 lines, -8 lines 0 comments Download
M content/browser/renderer_host/delegated_frame_host.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M content/browser/renderer_host/delegated_frame_host.cc View 4 chunks +9 lines, -10 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/compositor/compositor.h View 1 chunk +6 lines, -0 lines 0 comments Download
M ui/compositor/compositor.cc View 1 chunk +7 lines, -4 lines 2 comments Download

Messages

Total messages: 19 (10 generated)
enne (OOO)
4 years, 4 months ago (2016-08-24 18:52:05 UTC) #2
enne (OOO)
After the branch point, I'll clean up the --disable-begin-frame-scheduling paths, but figured I'd keep that ...
4 years, 4 months ago (2016-08-24 18:55:03 UTC) #5
piman
lgtm https://codereview.chromium.org/2277883002/diff/60001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/2277883002/diff/60001/ui/compositor/compositor.cc#newcode405 ui/compositor/compositor.cc:405: base::TimeDelta interval) { This is only called on ...
4 years, 4 months ago (2016-08-24 21:23:59 UTC) #10
enne (OOO)
https://codereview.chromium.org/2277883002/diff/60001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/2277883002/diff/60001/ui/compositor/compositor.cc#newcode405 ui/compositor/compositor.cc:405: base::TimeDelta interval) { On 2016/08/24 at 21:23:58, piman wrote: ...
4 years, 4 months ago (2016-08-24 21:48:37 UTC) #11
piman
On 2016/08/24 21:48:37, enne wrote: > https://codereview.chromium.org/2277883002/diff/60001/ui/compositor/compositor.cc > File ui/compositor/compositor.cc (right): > > https://codereview.chromium.org/2277883002/diff/60001/ui/compositor/compositor.cc#newcode405 > ...
4 years, 4 months ago (2016-08-24 22:18:49 UTC) #12
enne (OOO)
On 2016/08/24 at 22:18:49, piman wrote: > I think one of the roots of the ...
4 years, 4 months ago (2016-08-24 22:23:48 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2277883002/60001
4 years, 4 months ago (2016-08-24 22:25:14 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-24 22:58:30 UTC) #17
commit-bot: I haz the power
4 years, 4 months ago (2016-08-24 23:00:42 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0875b32a9ef74d66951b77930ca46f1a3bf08043
Cr-Commit-Position: refs/heads/master@{#414186}

Powered by Google App Engine
This is Rietveld 408576698