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

Unified Diff: gpu/ipc/service/child_window_surface_win.cc

Issue 2488413003: Mus: ImageTransportSurface should not depend on GpuChannelManager (Closed)
Patch Set: Fix windows compile issue Created 4 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
« no previous file with comments | « gpu/ipc/service/child_window_surface_win.h ('k') | gpu/ipc/service/gpu_command_buffer_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/child_window_surface_win.cc
diff --git a/gpu/ipc/service/child_window_surface_win.cc b/gpu/ipc/service/child_window_surface_win.cc
index 05675aaf7b5c5496ca989c41ab7c23b3f27c101e..e7f482064f415fc79b411130ba92e22067530d92 100644
--- a/gpu/ipc/service/child_window_surface_win.cc
+++ b/gpu/ipc/service/child_window_surface_win.cc
@@ -156,11 +156,12 @@ void DestroyWindowsOnThread(HWND child_window, HWND hidden_popup_window) {
} // namespace
-ChildWindowSurfaceWin::ChildWindowSurfaceWin(GpuChannelManager* manager,
- HWND parent_window)
+ChildWindowSurfaceWin::ChildWindowSurfaceWin(
+ base::WeakPtr<ImageTransportSurfaceDelegate> delegate,
+ HWND parent_window)
: gl::NativeViewGLSurfaceEGL(0),
parent_window_(parent_window),
- manager_(manager),
+ delegate_(delegate),
alpha_(true),
first_swap_(true) {
// Don't use EGL_ANGLE_window_fixed_size so that we can avoid recreating the
@@ -219,8 +220,7 @@ bool ChildWindowSurfaceWin::InitializeNativeWindow() {
shared_data_.get(), &window_, &initial_parent_window_));
event.Wait();
- manager_->delegate()->SendAcceleratedSurfaceCreatedChildWindow(parent_window_,
- window_);
+ delegate_->DidCreateAcceleratedSurfaceChildWindow(parent_window_, window_);
return true;
}
« no previous file with comments | « gpu/ipc/service/child_window_surface_win.h ('k') | gpu/ipc/service/gpu_command_buffer_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698