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

Unified Diff: ui/gl/init/gl_factory_win.cc

Issue 2801163002: Deletes NativeViewGLSurfaceEGL::Initialize(gfx::VSyncProvider). (Closed)
Patch Set: fixes DirectCompositionSurfaceTest Created 3 years, 8 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 | « ui/gl/init/gl_factory_android.cc ('k') | ui/ozone/platform/cast/gl_surface_cast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/init/gl_factory_win.cc
diff --git a/ui/gl/init/gl_factory_win.cc b/ui/gl/init/gl_factory_win.cc
index 198147d3f572308889f9522dcac87b5fd754443a..06263a10c59b675e7ddebe0ca97fbd8cd3bd2bf5 100644
--- a/ui/gl/init/gl_factory_win.cc
+++ b/ui/gl/init/gl_factory_win.cc
@@ -103,13 +103,8 @@ scoped_refptr<GLSurface> CreateNativeViewGLSurfaceEGL(
DCHECK_EQ(kGLImplementationEGLGLES2, GetGLImplementation());
DCHECK(window != gfx::kNullAcceleratedWidget);
- scoped_refptr<NativeViewGLSurfaceEGL> surface(
- new NativeViewGLSurfaceEGL(window));
-
- if (!surface->Initialize(std::move(sync_provider)))
- return nullptr;
-
- return surface;
+ return InitializeGLSurface(
+ new NativeViewGLSurfaceEGL(window, std::move(sync_provider)));
}
scoped_refptr<GLSurface> CreateOffscreenGLSurfaceWithFormat(
« no previous file with comments | « ui/gl/init/gl_factory_android.cc ('k') | ui/ozone/platform/cast/gl_surface_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698