| Index: gpu/ipc/service/child_window_surface_win.h
|
| diff --git a/gpu/ipc/service/child_window_surface_win.h b/gpu/ipc/service/child_window_surface_win.h
|
| index ba8d35005920953c7fb8dc39f01b80e949d91e65..add4d490e8f55061c916d7e1811a0319e13938ed 100644
|
| --- a/gpu/ipc/service/child_window_surface_win.h
|
| +++ b/gpu/ipc/service/child_window_surface_win.h
|
| @@ -5,6 +5,8 @@
|
| #ifndef GPU_IPC_SERVICE_CHILD_WINDOW_SURFACE_WIN_H_
|
| #define GPU_IPC_SERVICE_CHILD_WINDOW_SURFACE_WIN_H_
|
|
|
| +#include "base/memory/weak_ptr.h"
|
| +#include "gpu/ipc/service/image_transport_surface_delegate.h"
|
| #include "ui/gl/gl_surface_egl.h"
|
|
|
| #include <windows.h>
|
| @@ -16,7 +18,8 @@ struct SharedData;
|
|
|
| class ChildWindowSurfaceWin : public gl::NativeViewGLSurfaceEGL {
|
| public:
|
| - ChildWindowSurfaceWin(GpuChannelManager* manager, HWND parent_window);
|
| + ChildWindowSurfaceWin(base::WeakPtr<ImageTransportSurfaceDelegate> delegate,
|
| + HWND parent_window);
|
|
|
| // GLSurface implementation.
|
| EGLConfig GetConfig() override;
|
| @@ -41,7 +44,7 @@ class ChildWindowSurfaceWin : public gl::NativeViewGLSurfaceEGL {
|
| // The window is initially created with this parent window. We need to keep it
|
| // around so that we can destroy it at the end.
|
| HWND initial_parent_window_;
|
| - GpuChannelManager* manager_;
|
| + base::WeakPtr<ImageTransportSurfaceDelegate> delegate_;
|
| bool alpha_;
|
| bool first_swap_;
|
|
|
|
|