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

Unified Diff: ui/gl/gl_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
Index: ui/gl/gl_surface.cc
diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc
index 832015b22f94d830d388ff06c1d5a10ba0c67550..45b6494be5719b2930097d447401d48e06083e02 100644
--- a/ui/gl/gl_surface.cc
+++ b/ui/gl/gl_surface.cc
@@ -147,9 +147,7 @@ unsigned GLSurface::GetFormat() {
return 0;
}
-bool GLSurface::GetVSyncParameters(base::TimeTicks* timebase,
- base::TimeDelta* interval) {
- return false;
+void GLSurface::GetVSyncParameters(const UpdateVSyncCallback& callback) {
}
GLSurface* GLSurface::GetCurrent() {
@@ -256,9 +254,8 @@ unsigned GLSurfaceAdapter::GetFormat() {
return surface_->GetFormat();
}
-bool GLSurfaceAdapter::GetVSyncParameters(base::TimeTicks* timebase,
- base::TimeDelta* interval) {
- return surface_->GetVSyncParameters(timebase, interval);
+void GLSurfaceAdapter::GetVSyncParameters(const UpdateVSyncCallback& callback) {
+ surface_->GetVSyncParameters(callback);
}
GLSurfaceAdapter::~GLSurfaceAdapter() {}

Powered by Google App Engine
This is Rietveld 408576698