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

Issue 2277883003: gl: Disable SGI_video_sync by default. (Closed)

Created:
4 years, 4 months ago by brianderson
Modified:
4 years, 4 months ago
Reviewers:
danakj, sunnyps, piman
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gl: Disable SGI_video_sync by default. Disables the SGI_video_sync extension and assumes a vsync interval of 59.9Hz on Linux. Also adds an --enable-sgi-video-sync command line flag to re-enable the extension. Use of the extension on a thread other than the main GPU thread is encountering issues with Chrome's sandbox for certain combinations of Linux window managers and NVIDIA drivers. Before this patch, we were assuming a frequency of 60Hz on Linux and re-aligning the phase every 5 seconds. Since we can no longer align the phase, we assume a frequency of 59.9 Hz. On a 60Hz monitor, this avoids driver backpressure on the GPU thread at the cost of skipping a frame every 10 seconds. BUG=636644 Committed: https://crrev.com/22774dfbaceb5f616183b3d6135264b458c9ed0a Cr-Commit-Position: refs/heads/master@{#414342}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Stub -> Fixed; pull up command line check; #

Total comments: 2

Patch Set 3 : forward flag #

Total comments: 3

Patch Set 4 : accidentally an s #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -7 lines) Patch
M ui/gfx/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/vsync_provider.h View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
A + ui/gfx/vsync_provider.cc View 1 1 chunk +5 lines, -4 lines 0 comments Download
M ui/gl/gl_surface_glx.cc View 1 3 chunks +18 lines, -3 lines 0 comments Download
M ui/gl/gl_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_switches.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (17 generated)
brianderson
Ptal.
4 years, 4 months ago (2016-08-24 20:43:48 UTC) #4
piman
https://codereview.chromium.org/2277883003/diff/1/ui/gl/gl_surface_glx.cc File ui/gl/gl_surface_glx.cc (right): https://codereview.chromium.org/2277883003/diff/1/ui/gl/gl_surface_glx.cc#newcode515 ui/gl/gl_surface_glx.cc:515: // not common. The investigation for bug https://bugs.chromium.org/p/chromium/issues/detail?id=262437 (where ...
4 years, 4 months ago (2016-08-24 21:04:29 UTC) #5
piman
4 years, 4 months ago (2016-08-24 21:04:31 UTC) #6
danakj
https://codereview.chromium.org/2277883003/diff/1/ui/gfx/vsync_provider.h File ui/gfx/vsync_provider.h (right): https://codereview.chromium.org/2277883003/diff/1/ui/gfx/vsync_provider.h#newcode32 ui/gfx/vsync_provider.h:32: class GFX_EXPORT VSyncProviderStub : public VSyncProvider { nit: FixedVsyncProvider ...
4 years, 4 months ago (2016-08-24 22:20:50 UTC) #7
danakj
On 2016/08/24 22:20:50, danakj wrote: > https://codereview.chromium.org/2277883003/diff/1/ui/gfx/vsync_provider.h > File ui/gfx/vsync_provider.h (right): > > https://codereview.chromium.org/2277883003/diff/1/ui/gfx/vsync_provider.h#newcode32 > ...
4 years, 4 months ago (2016-08-24 22:35:02 UTC) #8
danakj
On 2016/08/24 22:35:02, danakj wrote: > On 2016/08/24 22:20:50, danakj wrote: > > https://codereview.chromium.org/2277883003/diff/1/ui/gfx/vsync_provider.h > ...
4 years, 4 months ago (2016-08-24 22:43:58 UTC) #9
piman
On Wed, Aug 24, 2016 at 3:43 PM, <danakj@chromium.org> wrote: > On 2016/08/24 22:35:02, danakj ...
4 years, 4 months ago (2016-08-24 22:46:01 UTC) #10
sunnyps
On 2016/08/24 at 22:35:02, danakj wrote: > On 2016/08/24 22:20:50, danakj wrote: > > https://codereview.chromium.org/2277883003/diff/1/ui/gfx/vsync_provider.h ...
4 years, 4 months ago (2016-08-24 22:47:16 UTC) #11
sunnyps
On 2016/08/24 at 22:47:16, sunnyps wrote: > On 2016/08/24 at 22:35:02, danakj wrote: > > ...
4 years, 4 months ago (2016-08-24 22:52:17 UTC) #14
danakj
On 2016/08/24 22:43:58, danakj wrote: > Furthermore, the following to list all possible rates only ...
4 years, 4 months ago (2016-08-24 22:52:23 UTC) #15
piman
On Wed, Aug 24, 2016 at 3:52 PM, <danakj@chromium.org> wrote: > On 2016/08/24 22:43:58, danakj ...
4 years, 4 months ago (2016-08-24 23:03:08 UTC) #16
danakj
OK this protocol is actually insane, the number of lists of things and how to ...
4 years, 4 months ago (2016-08-24 23:22:18 UTC) #17
piman
On Wed, Aug 24, 2016 at 4:22 PM, <danakj@chromium.org> wrote: > OK this protocol is ...
4 years, 4 months ago (2016-08-24 23:37:25 UTC) #18
danakj
On 2016/08/24 23:37:25, piman wrote: > On Wed, Aug 24, 2016 at 4:22 PM, <mailto:danakj@chromium.org> ...
4 years, 4 months ago (2016-08-24 23:40:17 UTC) #19
brianderson
For monitors below <= 59Hz I don't think targeting 59.9 Hz will introduce a regression. ...
4 years, 4 months ago (2016-08-24 23:49:33 UTC) #20
brianderson
https://codereview.chromium.org/2277883003/diff/1/ui/gfx/vsync_provider.h File ui/gfx/vsync_provider.h (right): https://codereview.chromium.org/2277883003/diff/1/ui/gfx/vsync_provider.h#newcode32 ui/gfx/vsync_provider.h:32: class GFX_EXPORT VSyncProviderStub : public VSyncProvider { On 2016/08/24 ...
4 years, 4 months ago (2016-08-24 23:51:19 UTC) #21
piman
https://codereview.chromium.org/2277883003/diff/20001/ui/gl/gl_switches.cc File ui/gl/gl_switches.cc (right): https://codereview.chromium.org/2277883003/diff/20001/ui/gl/gl_switches.cc#newcode87 ui/gl/gl_switches.cc:87: const char kEnableSgiVideoSync[] = "enable-sgi-video-sync"; Please add this to ...
4 years, 4 months ago (2016-08-25 00:22:52 UTC) #24
brianderson
Wdyt of 59.9? I can investigate using xrandr and maybe cherry-pick to the branch. https://codereview.chromium.org/2277883003/diff/20001/ui/gl/gl_switches.cc ...
4 years, 4 months ago (2016-08-25 01:46:05 UTC) #27
piman
On 2016/08/25 01:46:05, brianderson wrote: > Wdyt of 59.9? > > I can investigate using ...
4 years, 4 months ago (2016-08-25 01:56:01 UTC) #28
sunnyps
https://codereview.chromium.org/2277883003/diff/1/ui/gfx/vsync_provider.cc File ui/gfx/vsync_provider.cc (left): https://codereview.chromium.org/2277883003/diff/1/ui/gfx/vsync_provider.cc#oldcode5 ui/gfx/vsync_provider.cc:5: #include "ui/gfx/image/image_skia_source.h" git cl upload marked this as a ...
4 years, 4 months ago (2016-08-25 01:59:29 UTC) #29
danakj
https://codereview.chromium.org/2277883003/diff/40001/ui/gfx/vsync_provider.h File ui/gfx/vsync_provider.h (right): https://codereview.chromium.org/2277883003/diff/40001/ui/gfx/vsync_provider.h#newcode32 ui/gfx/vsync_provider.h:32: class GFX_EXPORT FixedVSyncProvider : public VSyncProvider { On 2016/08/25 ...
4 years, 4 months ago (2016-08-25 02:04:52 UTC) #30
sunnyps
On 2016/08/25 at 02:04:52, danakj wrote: > https://codereview.chromium.org/2277883003/diff/40001/ui/gfx/vsync_provider.h > File ui/gfx/vsync_provider.h (right): > > https://codereview.chromium.org/2277883003/diff/40001/ui/gfx/vsync_provider.h#newcode32 ...
4 years, 4 months ago (2016-08-25 02:19:57 UTC) #31
sunnyps
On 2016/08/25 at 02:19:57, sunnyps wrote: > On 2016/08/25 at 02:04:52, danakj wrote: > > ...
4 years, 4 months ago (2016-08-25 02:21:05 UTC) #32
sunnyps
On 2016/08/25 at 02:19:57, sunnyps wrote: > On 2016/08/25 at 02:04:52, danakj wrote: > > ...
4 years, 4 months ago (2016-08-25 02:21:07 UTC) #33
brianderson
60Hz may work better - I'm not sure. Given the lack of data I'm going ...
4 years, 4 months ago (2016-08-25 05:09:50 UTC) #36
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/2277883003/40001
4 years, 4 months ago (2016-08-25 05:10:44 UTC) #39
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/2277883003/60001
4 years, 4 months ago (2016-08-25 05:13:49 UTC) #43
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-25 06:35:40 UTC) #44
commit-bot: I haz the power
4 years, 4 months ago (2016-08-25 06:39:53 UTC) #46
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/22774dfbaceb5f616183b3d6135264b458c9ed0a
Cr-Commit-Position: refs/heads/master@{#414342}

Powered by Google App Engine
This is Rietveld 408576698