OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/common/gpu/child_window_surface_win.h" | 5 #include "gpu/ipc/service/child_window_surface_win.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/win/scoped_hdc.h" | 8 #include "base/win/scoped_hdc.h" |
9 #include "base/win/wrapped_window_proc.h" | 9 #include "base/win/wrapped_window_proc.h" |
10 #include "content/common/gpu/gpu_channel_manager.h" | |
11 #include "content/common/gpu/gpu_channel_manager_delegate.h" | |
12 #include "gpu/ipc/common/gpu_messages.h" | 10 #include "gpu/ipc/common/gpu_messages.h" |
| 11 #include "gpu/ipc/service/gpu_channel_manager.h" |
| 12 #include "gpu/ipc/service/gpu_channel_manager_delegate.h" |
13 #include "ui/base/win/hidden_window.h" | 13 #include "ui/base/win/hidden_window.h" |
14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
15 #include "ui/gfx/win/hwnd_util.h" | 15 #include "ui/gfx/win/hwnd_util.h" |
16 #include "ui/gl/egl_util.h" | 16 #include "ui/gl/egl_util.h" |
17 #include "ui/gl/gl_context.h" | 17 #include "ui/gl/gl_context.h" |
18 #include "ui/gl/gl_surface_egl.h" | 18 #include "ui/gl/gl_surface_egl.h" |
19 #include "ui/gl/scoped_make_current.h" | 19 #include "ui/gl/scoped_make_current.h" |
20 | 20 |
21 namespace content { | 21 namespace gpu { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 ATOM g_window_class; | 25 ATOM g_window_class; |
26 | 26 |
27 LRESULT CALLBACK IntermediateWindowProc(HWND window, | 27 LRESULT CALLBACK IntermediateWindowProc(HWND window, |
28 UINT message, | 28 UINT message, |
29 WPARAM w_param, | 29 WPARAM w_param, |
30 LPARAM l_param) { | 30 LPARAM l_param) { |
31 switch (message) { | 31 switch (message) { |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 FillRect(dc, &rect, reinterpret_cast<HBRUSH>(GetStockObject(BLACK_BRUSH))); | 218 FillRect(dc, &rect, reinterpret_cast<HBRUSH>(GetStockObject(BLACK_BRUSH))); |
219 rect_to_clear_ = gfx::Rect(); | 219 rect_to_clear_ = gfx::Rect(); |
220 } | 220 } |
221 } | 221 } |
222 | 222 |
223 ChildWindowSurfaceWin::~ChildWindowSurfaceWin() { | 223 ChildWindowSurfaceWin::~ChildWindowSurfaceWin() { |
224 gfx::SetWindowUserData(window_, nullptr); | 224 gfx::SetWindowUserData(window_, nullptr); |
225 DestroyWindow(window_); | 225 DestroyWindow(window_); |
226 } | 226 } |
227 | 227 |
228 } // namespace content | 228 } // namespace gpu |
OLD | NEW |