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/public/ozone_gpu_test_helper.h" | 5 #include "ui/ozone/public/ozone_gpu_test_helper.h" |
6 | 6 |
| 7 #include "base/message_loop/message_loop.h" |
7 #include "base/threading/thread.h" | 8 #include "base/threading/thread.h" |
8 #include "base/threading/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
9 #include "ipc/ipc_listener.h" | 10 #include "ipc/ipc_listener.h" |
10 #include "ipc/ipc_message.h" | 11 #include "ipc/ipc_message.h" |
11 #include "ipc/ipc_sender.h" | 12 #include "ipc/ipc_sender.h" |
12 #include "ipc/message_filter.h" | 13 #include "ipc/message_filter.h" |
13 #include "ui/ozone/public/gpu_platform_support_host.h" | 14 #include "ui/ozone/public/gpu_platform_support_host.h" |
14 #include "ui/ozone/public/ozone_platform.h" | 15 #include "ui/ozone/public/ozone_platform.h" |
15 | 16 |
16 namespace ui { | 17 namespace ui { |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 gpu_task_runner, io_helper_thread_->task_runner())); | 117 gpu_task_runner, io_helper_thread_->task_runner())); |
117 io_helper_thread_->task_runner()->PostTask( | 118 io_helper_thread_->task_runner()->PostTask( |
118 FROM_HERE, base::Bind(&FakeGpuProcessHost::InitOnIO, | 119 FROM_HERE, base::Bind(&FakeGpuProcessHost::InitOnIO, |
119 base::Unretained(fake_gpu_process_host_.get()))); | 120 base::Unretained(fake_gpu_process_host_.get()))); |
120 io_helper_thread_->FlushForTesting(); | 121 io_helper_thread_->FlushForTesting(); |
121 | 122 |
122 return true; | 123 return true; |
123 } | 124 } |
124 | 125 |
125 } // namespace ui | 126 } // namespace ui |
OLD | NEW |