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

Unified Diff: gpu/ipc/service/direct_composition_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
Index: gpu/ipc/service/direct_composition_surface_win.cc
diff --git a/gpu/ipc/service/direct_composition_surface_win.cc b/gpu/ipc/service/direct_composition_surface_win.cc
index b794e77143cd68a378bed6a5c515aa1c25e39437..154405590ad03e2952585b7c8c3cb8500c5c2642 100644
--- a/gpu/ipc/service/direct_composition_surface_win.cc
+++ b/gpu/ipc/service/direct_composition_surface_win.cc
@@ -644,9 +644,12 @@ bool DCLayerTree::ScheduleDCLayer(const ui::DCRendererLayerParams& params) {
}
DirectCompositionSurfaceWin::DirectCompositionSurfaceWin(
+ std::unique_ptr<gfx::VSyncProvider> vsync_provider,
base::WeakPtr<ImageTransportSurfaceDelegate> delegate,
HWND parent_window)
- : gl::GLSurfaceEGL(), child_window_(delegate, parent_window) {}
+ : gl::GLSurfaceEGL(),
+ child_window_(delegate, parent_window),
+ vsync_provider_(std::move(vsync_provider)) {}
DirectCompositionSurfaceWin::~DirectCompositionSurfaceWin() {
Destroy();
@@ -704,12 +707,6 @@ bool DirectCompositionSurfaceWin::InitializeNativeWindow() {
return result;
}
-bool DirectCompositionSurfaceWin::Initialize(
- std::unique_ptr<gfx::VSyncProvider> vsync_provider) {
- vsync_provider_ = std::move(vsync_provider);
- return Initialize(gl::GLSurfaceFormat());
-}
-
bool DirectCompositionSurfaceWin::Initialize(gl::GLSurfaceFormat format) {
d3d11_device_ = gl::QueryD3D11DeviceObjectFromANGLE();
dcomp_device_ = gl::QueryDirectCompositionDevice(d3d11_device_);
« no previous file with comments | « gpu/ipc/service/direct_composition_surface_win.h ('k') | gpu/ipc/service/direct_composition_surface_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698