OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ui/ozone/platform/dri/dri_gpu_platform_support.h" | 5 #include "ui/ozone/platform/dri/dri_gpu_platform_support.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/thread_task_runner_handle.h" | 8 #include "base/thread_task_runner_handle.h" |
9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
10 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" | 10 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" |
11 #include "ui/ozone/common/gpu/ozone_gpu_messages.h" | 11 #include "ui/ozone/common/gpu/ozone_gpu_messages.h" |
12 #include "ui/ozone/platform/dri/dri_window_delegate_impl.h" | 12 #include "ui/ozone/platform/dri/dri_window_delegate_impl.h" |
13 #include "ui/ozone/platform/dri/dri_window_delegate_manager.h" | 13 #include "ui/ozone/platform/dri/dri_window_delegate_manager.h" |
14 #include "ui/ozone/platform/dri/dri_wrapper.h" | 14 #include "ui/ozone/platform/dri/drm_device.h" |
15 #include "ui/ozone/platform/dri/native_display_delegate_dri.h" | 15 #include "ui/ozone/platform/dri/native_display_delegate_dri.h" |
16 | 16 |
17 namespace ui { | 17 namespace ui { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 void MessageProcessedOnMain( | 21 void MessageProcessedOnMain( |
22 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner, | 22 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner, |
23 const base::Closure& io_thread_task) { | 23 const base::Closure& io_thread_task) { |
24 io_thread_task_runner->PostTask(FROM_HERE, io_thread_task); | 24 io_thread_task_runner->PostTask(FROM_HERE, io_thread_task); |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 void DriGpuPlatformSupport::SetIOTaskRunner( | 302 void DriGpuPlatformSupport::SetIOTaskRunner( |
303 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner) { | 303 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner) { |
304 ndd_->InitializeIOTaskRunner(io_task_runner); | 304 ndd_->InitializeIOTaskRunner(io_task_runner); |
305 } | 305 } |
306 | 306 |
307 IPC::MessageFilter* DriGpuPlatformSupport::GetMessageFilter() { | 307 IPC::MessageFilter* DriGpuPlatformSupport::GetMessageFilter() { |
308 return filter_.get(); | 308 return filter_.get(); |
309 } | 309 } |
310 | 310 |
311 } // namespace ui | 311 } // namespace ui |
OLD | NEW |