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

Unified Diff: content/common/gpu/image_transport_surface.cc

Issue 11359114: Use GLX_SGI_video_sync to get a vblank signal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/gl/generate_bindings.py » ('j') | ui/gl/gl_surface.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/image_transport_surface.cc
diff --git a/content/common/gpu/image_transport_surface.cc b/content/common/gpu/image_transport_surface.cc
index e0f1e2f0e68c665b7ef6e508e348fd3cdb66bd0b..d0241e967926b00e8d5921575c11ffa131d2a661 100644
--- a/content/common/gpu/image_transport_surface.cc
+++ b/content/common/gpu/image_transport_surface.cc
@@ -353,11 +353,9 @@ gfx::Size PassThroughImageTransportSurface::GetSize() {
PassThroughImageTransportSurface::~PassThroughImageTransportSurface() {}
void PassThroughImageTransportSurface::SendVSyncUpdateIfAvailable() {
- base::TimeTicks timebase;
- base::TimeDelta interval;
- if (GetVSyncParameters(&timebase, &interval)) {
- helper_->SendUpdateVSyncParameters(timebase, interval);
- }
+ GetVSyncParameters(
+ base::Bind(&ImageTransportHelper::SendUpdateVSyncParameters,
+ base::Unretained(helper_.get())));
piman 2012/11/08 23:51:16 What guarantees that the helper is still valid whe
jonathan.backer 2012/11/09 17:02:35 PTITSurface owns ITHelper and GLSurfaceGLX GLSurfa
piman 2012/11/09 18:08:05 Since GLSurfaceGLX is refcounted, it's hard to gua
}
} // namespace content
« no previous file with comments | « no previous file | ui/gl/generate_bindings.py » ('j') | ui/gl/gl_surface.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698