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

Issue 566663002: GetVSyncParameters only once every 5 seconds on Linux (Closed)

Created:
6 years, 3 months ago by brianderson
Modified:
6 years, 3 months ago
CC:
chromium-reviews, piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

GetVSyncParameters only once every 5 seconds on Linux Some Linux drivers implement the GLX_SGI_video_sync extension in a way that eats a ton of CPU resources. Only call it periodically to reduce CPU usage. BUG=373489 Committed: https://crrev.com/60cf26c22bf0bb90fa6dbbdef5cb79fe7c305ecb Cr-Commit-Position: refs/heads/master@{#294483}

Patch Set 1 #

Total comments: 4

Patch Set 2 : reduce ifdefs #

Patch Set 3 : remove whitespace edit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -0 lines) Patch
M ui/gl/gl_surface_glx.cc View 1 2 3 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
brianderson
ptal
6 years, 3 months ago (2014-09-11 18:25:14 UTC) #2
Ken Russell (switch to Gerrit)
Looks good in general, but a couple of questions. https://codereview.chromium.org/566663002/diff/1/ui/gl/gl_surface_glx.cc File ui/gl/gl_surface_glx.cc (right): https://codereview.chromium.org/566663002/diff/1/ui/gl/gl_surface_glx.cc#newcode59 ui/gl/gl_surface_glx.cc:59: ...
6 years, 3 months ago (2014-09-11 18:37:34 UTC) #3
brianderson
https://codereview.chromium.org/566663002/diff/1/ui/gl/gl_surface_glx.cc File ui/gl/gl_surface_glx.cc (right): https://codereview.chromium.org/566663002/diff/1/ui/gl/gl_surface_glx.cc#newcode59 ui/gl/gl_surface_glx.cc:59: #if defined(OS_LINUX) On 2014/09/11 18:37:34, Ken Russell wrote: > ...
6 years, 3 months ago (2014-09-11 18:50:30 UTC) #4
Ken Russell (switch to Gerrit)
Thanks. LGTM regardless of the answer about the top #ifdef. We should think about how ...
6 years, 3 months ago (2014-09-11 18:52:01 UTC) #5
brianderson
Stephane confirmed that the file is used on Chrome OS as well, however the GLX_SGI_video_sync ...
6 years, 3 months ago (2014-09-11 20:25:20 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/566663002/40001
6 years, 3 months ago (2014-09-11 20:30:49 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001) as c6a16595578971a7e1235b37d80d080c5e37a62e
6 years, 3 months ago (2014-09-11 23:00:05 UTC) #9
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 23:08:09 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/60cf26c22bf0bb90fa6dbbdef5cb79fe7c305ecb
Cr-Commit-Position: refs/heads/master@{#294483}

Powered by Google App Engine
This is Rietveld 408576698