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

Side by Side Diff: ui/ozone/platform/dri/dri_gpu_platform_support.cc

Issue 905873003: [8/8][Ozone-Dri] Pass DRM FD to GPU process on hotplug event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@udl2.9-allow-ndd-to-handle-multiple-drm-devices
Patch Set: . Created 5 years, 10 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/dri_gpu_platform_support.h ('k') | ui/ozone/platform/dri/drm_device_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698