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

Unified Diff: ui/gl/gl_surface.cc

Issue 11195011: Send vsync timebase updates to the browser compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use the existing output surface mechanism to feed vsync info into the compositor Created 8 years, 2 months 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 a05eae85e3de3d4fc7afd0a64123bd80a9c28eec..16e4356c541b2aaf6067bd45bd5d429c1791e95f 100644
--- a/ui/gl/gl_surface.cc
+++ b/ui/gl/gl_surface.cc
@@ -147,6 +147,12 @@ unsigned GLSurface::GetFormat() {
return 0;
}
+bool GLSurface::GetSyncValues(int64* monotonicTime,
+ int64* mediaStreamCounter,
+ int64* swapBufferCounter) {
+ return false;
+}
+
GLSurface* GLSurface::GetCurrent() {
return current_surface_.Pointer()->Get();
}
@@ -251,6 +257,13 @@ unsigned GLSurfaceAdapter::GetFormat() {
return surface_->GetFormat();
}
+bool GLSurfaceAdapter::GetSyncValues(int64* monotonicTime,
+ int64* mediaStreamCounter,
+ int64* swapBufferCounter) {
+ return surface_->GetSyncValues(monotonicTime, mediaStreamCounter,
+ swapBufferCounter);
+}
+
GLSurfaceAdapter::~GLSurfaceAdapter() {}
} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698