Index: ui/ozone/platform/drm/host/drm_native_display_delegate.h |
diff --git a/ui/ozone/platform/drm/host/drm_native_display_delegate.h b/ui/ozone/platform/drm/host/drm_native_display_delegate.h |
index e0205bd372ec78d4e5fa45b488d211d8e0aca686..ae4e3d3fa125858a868cd598ad93e98bbd642ba6 100644 |
--- a/ui/ozone/platform/drm/host/drm_native_display_delegate.h |
+++ b/ui/ozone/platform/drm/host/drm_native_display_delegate.h |
@@ -7,12 +7,11 @@ |
#include <map> |
#include <queue> |
-#include <set> |
+#include "base/containers/scoped_ptr_hash_map.h" |
#include "base/files/file.h" |
#include "base/files/file_path.h" |
#include "base/macros.h" |
-#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_vector.h" |
#include "base/observer_list.h" |
#include "ui/display/types/native_display_delegate.h" |
@@ -24,6 +23,7 @@ namespace ui { |
class DeviceManager; |
class DisplayManager; |
+class DrmDeviceHandle; |
class DrmGpuPlatformSupportHost; |
struct DisplaySnapshot_Params; |
@@ -97,7 +97,8 @@ class DrmNativeDisplayDelegate : public NativeDisplayDelegate, |
// Called as a result of finishing to process the display hotplug event. These |
// are responsible for dequing the event and scheduling the next event. |
- void OnAddGraphicsDevice(const base::FilePath& path, base::File file); |
+ void OnAddGraphicsDevice(const base::FilePath& path, |
+ scoped_ptr<DrmDeviceHandle> handle); |
void OnUpdateGraphicsDevice(); |
void OnRemoveGraphicsDevice(const base::FilePath& path); |
@@ -138,7 +139,7 @@ class DrmNativeDisplayDelegate : public NativeDisplayDelegate, |
std::queue<DisplayEvent> event_queue_; |
// Keeps track of all the active DRM devices. |
- std::set<base::FilePath> drm_devices_; |
+ base::ScopedPtrHashMap<base::FilePath, DrmDeviceHandle> drm_devices_; |
base::WeakPtrFactory<DrmNativeDisplayDelegate> weak_ptr_factory_; |