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

Side by Side Diff: gpu/ipc/service/child_window_surface_win.cc

Issue 1845563005: Refactor content/common/gpu into gpu/ipc/service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drop ref to deleted content_tests_gypi_values.content_unittests_ozone_sources Created 4 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 unified diff | Download patch
« no previous file with comments | « gpu/ipc/service/child_window_surface_win.h ('k') | gpu/ipc/service/gpu_channel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « gpu/ipc/service/child_window_surface_win.h ('k') | gpu/ipc/service/gpu_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698