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

Unified Diff: ui/gl/gl_surface_ozone.cc

Issue 215893003: [Ozone] Get VSyncProvider before passing in the scoped_ptr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_ozone.cc
diff --git a/ui/gl/gl_surface_ozone.cc b/ui/gl/gl_surface_ozone.cc
index a92c895618f9ce262fc2de64299996ac0f1867a3..28eceebc35fef3840126acc5b5b01ce590532e6e 100644
--- a/ui/gl/gl_surface_ozone.cc
+++ b/ui/gl/gl_surface_ozone.cc
@@ -77,9 +77,12 @@ scoped_refptr<GLSurface> GLSurface::CreateViewGLSurface(
SurfaceFactoryOzone::GetInstance()->CreateSurfaceForWidget(window);
if (!surface_ozone->InitializeEGL())
return NULL;
+
+ scoped_ptr<VSyncProvider> vsync_provider =
+ surface_ozone->CreateVSyncProvider();
scoped_refptr<GLSurfaceOzoneEGL> surface =
new GLSurfaceOzoneEGL(surface_ozone.Pass());
- if (!surface->Initialize(surface_ozone->CreateVSyncProvider()))
+ if (!surface->Initialize(vsync_provider.Pass()))
return NULL;
return surface;
} else {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698