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" |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 } | 282 } |
283 | 283 |
284 void DriGpuPlatformSupport::OnTakeDisplayControl() { | 284 void DriGpuPlatformSupport::OnTakeDisplayControl() { |
285 ndd_->TakeDisplayControl(); | 285 ndd_->TakeDisplayControl(); |
286 } | 286 } |
287 | 287 |
288 void DriGpuPlatformSupport::OnRelinquishDisplayControl() { | 288 void DriGpuPlatformSupport::OnRelinquishDisplayControl() { |
289 ndd_->RelinquishDisplayControl(); | 289 ndd_->RelinquishDisplayControl(); |
290 } | 290 } |
291 | 291 |
292 void DriGpuPlatformSupport::OnAddGraphicsDevice(const base::FilePath& path) { | 292 void DriGpuPlatformSupport::OnAddGraphicsDevice( |
293 ndd_->AddGraphicsDevice(path); | 293 const base::FilePath& path, |
| 294 const base::FileDescriptor& fd) { |
| 295 ndd_->AddGraphicsDevice(path, fd); |
294 } | 296 } |
295 | 297 |
296 void DriGpuPlatformSupport::OnRemoveGraphicsDevice(const base::FilePath& path) { | 298 void DriGpuPlatformSupport::OnRemoveGraphicsDevice(const base::FilePath& path) { |
297 ndd_->RemoveGraphicsDevice(path); | 299 ndd_->RemoveGraphicsDevice(path); |
298 } | 300 } |
299 | 301 |
300 void DriGpuPlatformSupport::RelinquishGpuResources( | 302 void DriGpuPlatformSupport::RelinquishGpuResources( |
301 const base::Closure& callback) { | 303 const base::Closure& callback) { |
302 callback.Run(); | 304 callback.Run(); |
303 } | 305 } |
304 | 306 |
305 void DriGpuPlatformSupport::SetIOTaskRunner( | 307 void DriGpuPlatformSupport::SetIOTaskRunner( |
306 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner) { | 308 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner) { |
307 ndd_->InitializeIOTaskRunner(io_task_runner); | 309 ndd_->InitializeIOTaskRunner(io_task_runner); |
308 } | 310 } |
309 | 311 |
310 IPC::MessageFilter* DriGpuPlatformSupport::GetMessageFilter() { | 312 IPC::MessageFilter* DriGpuPlatformSupport::GetMessageFilter() { |
311 return filter_.get(); | 313 return filter_.get(); |
312 } | 314 } |
313 | 315 |
314 } // namespace ui | 316 } // namespace ui |
OLD | NEW |