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

Issue 11359114: Use GLX_SGI_video_sync to get a vblank signal. (Closed)

Created:
8 years, 1 month ago by jonathan.backer
Modified:
8 years, 1 month ago
Reviewers:
piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium, ajuma
Visibility:
Public.

Description

Use GLX_SGI_video_sync to get a vblank signal. On platforms that support this feature: - we set up a separate thread - on a request for vsync timestamp, we block on the vsync on the separate thread - we grab a timestamp on completion - we proxy that timestamp back BUG=none TEST=by hand on Nvidia, ATI, and Intel drivers Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=166989

Patch Set 1 : "" #

Total comments: 10

Patch Set 2 : Address reviewer comments. #

Patch Set 3 : Rebase and address reviewer comments. #

Total comments: 2

Patch Set 4 : Use the right display. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+364 lines, -91 lines) Patch
M content/common/gpu/image_transport_surface.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M content/common/gpu/image_transport_surface.cc View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M ui/gl/generate_bindings.py View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/gl/gl_surface.h View 1 3 chunks +12 lines, -6 lines 0 comments Download
M ui/gl/gl_surface.cc View 2 chunks +3 lines, -6 lines 0 comments Download
M ui/gl/gl_surface_glx.h View 3 chunks +13 lines, -2 lines 0 comments Download
M ui/gl/gl_surface_glx.cc View 1 2 3 6 chunks +327 lines, -71 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
jonathan.backer
I've wrapped the additional thread so that we make at most one, but we only ...
8 years, 1 month ago (2012-11-08 20:55:47 UTC) #1
piman
https://codereview.chromium.org/11359114/diff/3001/content/common/gpu/image_transport_surface.cc File content/common/gpu/image_transport_surface.cc (right): https://codereview.chromium.org/11359114/diff/3001/content/common/gpu/image_transport_surface.cc#newcode358 content/common/gpu/image_transport_surface.cc:358: base::Unretained(helper_.get()))); What guarantees that the helper is still valid ...
8 years, 1 month ago (2012-11-08 23:51:16 UTC) #2
jonathan.backer
I hadn't thought about the cross process synchronization (browser <---> GPU). Thanks. https://codereview.chromium.org/11359114/diff/3001/content/common/gpu/image_transport_surface.cc File content/common/gpu/image_transport_surface.cc ...
8 years, 1 month ago (2012-11-09 17:02:35 UTC) #3
piman
Nice for the cancellation flag. Couple of things left. https://codereview.chromium.org/11359114/diff/3001/content/common/gpu/image_transport_surface.cc File content/common/gpu/image_transport_surface.cc (right): https://codereview.chromium.org/11359114/diff/3001/content/common/gpu/image_transport_surface.cc#newcode358 content/common/gpu/image_transport_surface.cc:358: ...
8 years, 1 month ago (2012-11-09 18:08:05 UTC) #4
jonathan.backer
> Since GLSurfaceGLX is refcounted, it's hard to guarantee (forever) it won't > outlive the ...
8 years, 1 month ago (2012-11-09 19:10:30 UTC) #5
piman
https://codereview.chromium.org/11359114/diff/2008/ui/gl/gl_surface_glx.cc File ui/gl/gl_surface_glx.cc (right): https://codereview.chromium.org/11359114/diff/2008/ui/gl/gl_surface_glx.cc#newcode184 ui/gl/gl_surface_glx.cc:184: XSync(g_display, False); ::gfx::g_display? I think as it it will ...
8 years, 1 month ago (2012-11-09 19:14:41 UTC) #6
jonathan.backer
https://codereview.chromium.org/11359114/diff/2008/ui/gl/gl_surface_glx.cc File ui/gl/gl_surface_glx.cc (right): https://codereview.chromium.org/11359114/diff/2008/ui/gl/gl_surface_glx.cc#newcode184 ui/gl/gl_surface_glx.cc:184: XSync(g_display, False); On 2012/11/09 19:14:42, piman wrote: > ::gfx::g_display? ...
8 years, 1 month ago (2012-11-09 19:24:55 UTC) #7
piman
lgtm
8 years, 1 month ago (2012-11-09 19:27:21 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/backer@chromium.org/11359114/12
8 years, 1 month ago (2012-11-09 20:13:26 UTC) #9
commit-bot: I haz the power
8 years, 1 month ago (2012-11-09 22:07:31 UTC) #10
Change committed as 166989

Powered by Google App Engine
This is Rietveld 408576698