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

Issue 11752002: Calculate the refresh period from GLX_OML_sync_control. (Closed)

Created:
7 years, 11 months ago by jonathan.backer
Modified:
7 years, 11 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Calculate the refresh period from GLX_OML_sync_control. glXGetSyncValuesOML gives us a count of the number of refreshes that have occurred (media stream counter). We can use this and the time between successive UST counters to measure the period of the screen refresh. BUG=none TEST=by hand on stumpy and alex using xrandr to force different refresh rates Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175234

Patch Set 1 #

Patch Set 2 : More sanity checking. #

Total comments: 2

Patch Set 3 : Address reviewer comments. #

Patch Set 4 : gcc compile fix #

Total comments: 6

Patch Set 5 : Address reviewer comments. #

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

Messages

Total messages: 12 (0 generated)
jonathan.backer
Seems accurate to within about 10us on alex and stumpy. Do we want to clamp ...
7 years, 11 months ago (2013-01-02 21:07:10 UTC) #1
jonathan.backer
On 2013/01/02 21:07:10, jonathan.backer wrote: > Seems accurate to within about 10us on alex and ...
7 years, 11 months ago (2013-01-02 21:39:12 UTC) #2
ajuma
The approach looks good to me and is a big improvement over assuming 60 fps. ...
7 years, 11 months ago (2013-01-04 15:34:43 UTC) #3
jonathan.backer
https://codereview.chromium.org/11752002/diff/4001/ui/gl/gl_surface_glx.cc File ui/gl/gl_surface_glx.cc (right): https://codereview.chromium.org/11752002/diff/4001/ui/gl/gl_surface_glx.cc#newcode151 ui/gl/gl_surface_glx.cc:151: int64 last_good_interval_; On 2013/01/04 15:34:43, ajuma wrote: > Nit: ...
7 years, 11 months ago (2013-01-04 16:26:45 UTC) #4
ajuma
LGTM On 2013/01/04 16:26:45, jonathan.backer wrote: > https://codereview.chromium.org/11752002/diff/4001/ui/gl/gl_surface_glx.cc > File ui/gl/gl_surface_glx.cc (right): > > https://codereview.chromium.org/11752002/diff/4001/ui/gl/gl_surface_glx.cc#newcode151 ...
7 years, 11 months ago (2013-01-04 16:28:33 UTC) #5
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 11 months ago (2013-01-04 16:56:53 UTC) #6
jonathan.backer
+gman for a full committer review ajuma@ wrote the original code, but he's not yet ...
7 years, 11 months ago (2013-01-04 17:02:24 UTC) #7
apatrick_chromium
Just nits. LGTM. https://codereview.chromium.org/11752002/diff/15001/ui/gl/gl_surface_glx.cc File ui/gl/gl_surface_glx.cc (right): https://codereview.chromium.org/11752002/diff/15001/ui/gl/gl_surface_glx.cc#newcode61 ui/gl/gl_surface_glx.cc:61: last_timebase_(), nit: this line is redundant. ...
7 years, 11 months ago (2013-01-04 21:21:09 UTC) #8
jonathan.backer
https://codereview.chromium.org/11752002/diff/15001/ui/gl/gl_surface_glx.cc File ui/gl/gl_surface_glx.cc (right): https://codereview.chromium.org/11752002/diff/15001/ui/gl/gl_surface_glx.cc#newcode61 ui/gl/gl_surface_glx.cc:61: last_timebase_(), On 2013/01/04 21:21:09, apatrick_chromium wrote: > nit: this ...
7 years, 11 months ago (2013-01-04 21:29:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/backer@chromium.org/11752002/19001
7 years, 11 months ago (2013-01-04 21:30:29 UTC) #10
commit-bot: I haz the power
Change committed as 175234
7 years, 11 months ago (2013-01-04 23:37:58 UTC) #11
piman
7 years, 11 months ago (2013-01-08 21:08:06 UTC) #12
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698