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

Unified Diff: gpu/ipc/service/image_transport_surface_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 | « gpu/ipc/service/image_transport_surface_android.cc ('k') | ui/gl/gl_surface_egl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/image_transport_surface_win.cc
diff --git a/gpu/ipc/service/image_transport_surface_win.cc b/gpu/ipc/service/image_transport_surface_win.cc
index fcba271ece7ce7113b4d17fc3c01508aedfa45d2..495a58341641082dfed3e0319436a8c4a9f2f805 100644
--- a/gpu/ipc/service/image_transport_surface_win.cc
+++ b/gpu/ipc/service/image_transport_surface_win.cc
@@ -56,15 +56,16 @@ scoped_refptr<gl::GLSurface> ImageTransportSurface::CreateNativeSurface(
overlays_supported);
if (overlays_supported) {
scoped_refptr<DirectCompositionSurfaceWin> egl_surface =
- make_scoped_refptr(
- new DirectCompositionSurfaceWin(delegate, surface_handle));
- if (!egl_surface->Initialize(std::move(vsync_provider)))
+ make_scoped_refptr(new DirectCompositionSurfaceWin(
+ std::move(vsync_provider), delegate, surface_handle));
+ if (!egl_surface->Initialize())
return nullptr;
surface = egl_surface;
} else {
- scoped_refptr<ChildWindowSurfaceWin> egl_surface = make_scoped_refptr(
- new ChildWindowSurfaceWin(delegate, surface_handle));
- if (!egl_surface->Initialize(std::move(vsync_provider)))
+ scoped_refptr<ChildWindowSurfaceWin> egl_surface =
+ make_scoped_refptr(new ChildWindowSurfaceWin(
+ std::move(vsync_provider), delegate, surface_handle));
+ if (!egl_surface->Initialize())
return nullptr;
surface = egl_surface;
}
« no previous file with comments | « gpu/ipc/service/image_transport_surface_android.cc ('k') | ui/gl/gl_surface_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698