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

Unified Diff: ui/gl/gl_surface.cc

Issue 11293194: ui: Prefer +/- operators to apply offsets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: floats 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
« .gitmodules ('K') | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_glx.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {}
« .gitmodules ('K') | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_glx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698