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

Unified Diff: ui/ozone/platform/drm/gpu/drm_gpu_display_manager.h

Issue 1100973002: [2/4]Allow hotplugging of primary DRM device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-hotplug
Patch Set: unittests Created 5 years, 8 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
Index: ui/ozone/platform/drm/gpu/drm_gpu_display_manager.h
diff --git a/ui/ozone/platform/drm/gpu/drm_gpu_display_manager.h b/ui/ozone/platform/drm/gpu/drm_gpu_display_manager.h
index 5267b6f637094a7118432be98e96dd499dcff8f5..e23885b8421da46f14021814673441363450ce83 100644
--- a/ui/ozone/platform/drm/gpu/drm_gpu_display_manager.h
+++ b/ui/ozone/platform/drm/gpu/drm_gpu_display_manager.h
@@ -21,7 +21,7 @@ namespace ui {
class DeviceManager;
class DisplayMode;
class DrmDevice;
-class DrmDeviceGenerator;
+class DrmDeviceManager;
class DrmDisplaySnapshot;
class DrmDisplayMode;
class ScreenManager;
@@ -29,8 +29,7 @@ class ScreenManager;
class DrmGpuDisplayManager {
public:
DrmGpuDisplayManager(ScreenManager* screen_manager,
- const scoped_refptr<DrmDevice>& primary_device,
- scoped_ptr<DrmDeviceGenerator> device_generator);
+ DrmDeviceManager* drm_device_manager);
~DrmGpuDisplayManager();
void InitializeIOTaskRunner(
@@ -75,7 +74,7 @@ class DrmGpuDisplayManager {
const std::vector<DrmDisplaySnapshot*>& old_displays) const;
ScreenManager* screen_manager_; // Not owned.
- scoped_ptr<DrmDeviceGenerator> drm_device_generator_;
+ DrmDeviceManager* drm_device_manager_; // Not owned.
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
std::vector<scoped_refptr<DrmDevice>> devices_;
// Modes can be shared between different displays, so we need to keep track
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_device_manager.cc ('k') | ui/ozone/platform/drm/gpu/drm_gpu_display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698