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

Unified Diff: ui/ozone/platform/dri/native_display_delegate_dri.h

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/gbm_buffer.cc ('k') | ui/ozone/platform/dri/native_display_delegate_dri.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/native_display_delegate_dri.h
diff --git a/ui/ozone/platform/dri/native_display_delegate_dri.h b/ui/ozone/platform/dri/native_display_delegate_dri.h
index 5ddb07ab5f7bf5ecb83a79a5765aad9af3484191..d63015d7d0d833fcc15247556d8c9b005a8c0769 100644
--- a/ui/ozone/platform/dri/native_display_delegate_dri.h
+++ b/ui/ozone/platform/dri/native_display_delegate_dri.h
@@ -11,6 +11,7 @@
#include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
namespace base {
+class FileDescriptor;
class FilePath;
class SingleThreadTaskRunner;
}
@@ -22,12 +23,14 @@ class DisplaySnapshotDri;
class DisplayMode;
class DisplayModeDri;
class DriWrapper;
+class DrmDeviceGenerator;
class ScreenManager;
class NativeDisplayDelegateDri {
public:
NativeDisplayDelegateDri(ScreenManager* screen_manager,
- const scoped_refptr<DriWrapper>& primary_device);
+ const scoped_refptr<DriWrapper>& primary_device,
+ scoped_ptr<DrmDeviceGenerator> device_generator);
~NativeDisplayDelegateDri();
void InitializeIOTaskRunner(
@@ -49,7 +52,8 @@ class NativeDisplayDelegateDri {
bool RelinquishDisplayControl();
// Called on DRM hotplug events to add/remove a DRM device.
- void AddGraphicsDevice(const base::FilePath& path);
+ void AddGraphicsDevice(const base::FilePath& path,
+ const base::FileDescriptor& fd);
void RemoveGraphicsDevice(const base::FilePath& path);
private:
@@ -73,6 +77,7 @@ class NativeDisplayDelegateDri {
const std::vector<DisplaySnapshotDri*>& old_displays) const;
ScreenManager* screen_manager_; // Not owned.
+ scoped_ptr<DrmDeviceGenerator> drm_device_generator_;
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
std::vector<scoped_refptr<DriWrapper>> devices_;
// Modes can be shared between different displays, so we need to keep track
« no previous file with comments | « ui/ozone/platform/dri/gbm_buffer.cc ('k') | ui/ozone/platform/dri/native_display_delegate_dri.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698