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

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: Rebase and address reviewer comments. 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
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..d9ea02e64b879d05ef51f928be851fd28bddad01 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,
+ helper_->AsWeakPtr()));
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698