OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "gpu/ipc/service/child_window_win.h" | 5 #include "gpu/ipc/service/child_window_win.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "base/message_loop/message_loop.h" |
11 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
12 #include "base/win/scoped_hdc.h" | 13 #include "base/win/scoped_hdc.h" |
13 #include "base/win/wrapped_window_proc.h" | 14 #include "base/win/wrapped_window_proc.h" |
14 #include "gpu/ipc/common/gpu_messages.h" | 15 #include "gpu/ipc/common/gpu_messages.h" |
15 #include "gpu/ipc/service/gpu_channel_manager.h" | 16 #include "gpu/ipc/service/gpu_channel_manager.h" |
16 #include "gpu/ipc/service/gpu_channel_manager_delegate.h" | 17 #include "gpu/ipc/service/gpu_channel_manager_delegate.h" |
17 #include "ui/gfx/native_widget_types.h" | 18 #include "ui/gfx/native_widget_types.h" |
18 #include "ui/gfx/win/hwnd_util.h" | 19 #include "ui/gfx/win/hwnd_util.h" |
19 #include "ui/gfx/win/window_impl.h" | 20 #include "ui/gfx/win/window_impl.h" |
20 | 21 |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 base::Bind(&DestroySharedData, base::Passed(std::move(shared_data_)))); | 207 base::Bind(&DestroySharedData, base::Passed(std::move(shared_data_)))); |
207 } | 208 } |
208 } | 209 } |
209 | 210 |
210 scoped_refptr<base::TaskRunner> ChildWindowWin::GetTaskRunnerForTesting() { | 211 scoped_refptr<base::TaskRunner> ChildWindowWin::GetTaskRunnerForTesting() { |
211 DCHECK(shared_data_); | 212 DCHECK(shared_data_); |
212 return shared_data_->thread.task_runner(); | 213 return shared_data_->thread.task_runner(); |
213 } | 214 } |
214 | 215 |
215 } // namespace gpu | 216 } // namespace gpu |
OLD | NEW |