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

Unified Diff: ui/ozone/platform/dri/drm_device_generator.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/dri/drm_device_generator.h ('k') | ui/ozone/platform/dri/gbm_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/drm_device_generator.cc
diff --git a/ui/ozone/platform/dri/drm_device_generator.cc b/ui/ozone/platform/dri/drm_device_generator.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7b4a568eeda6774551859fc98e047dca331ab98f
--- /dev/null
+++ b/ui/ozone/platform/dri/drm_device_generator.cc
@@ -0,0 +1,25 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/ozone/platform/dri/drm_device_generator.h"
+
+#include "ui/ozone/platform/dri/dri_wrapper.h"
+
+namespace ui {
+
+DrmDeviceGenerator::DrmDeviceGenerator() {
+}
+
+DrmDeviceGenerator::~DrmDeviceGenerator() {
+}
+
+scoped_refptr<DriWrapper> DrmDeviceGenerator::CreateDevice(
+ const base::FilePath& device_path,
+ base::File file) {
+ scoped_refptr<DriWrapper> drm = new DriWrapper(device_path, file.Pass());
+ drm->Initialize();
+ return drm;
+}
+
+} // namespace ui
« no previous file with comments | « ui/ozone/platform/dri/drm_device_generator.h ('k') | ui/ozone/platform/dri/gbm_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698