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

Unified Diff: ui/ozone/platform/drm/host/drm_native_display_delegate.h

Issue 1064453003: [4/4][Ozone-Drm] Keep track of DRM devices in browser process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@change-page-flip-tracking
Patch Set: . 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/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 b922e33c662d68be769fb2f6e444af89c8304a60..a6844ba81d3356aa742897449eeac45431755b4a 100644
--- a/ui/ozone/platform/drm/host/drm_native_display_delegate.h
+++ b/ui/ozone/platform/drm/host/drm_native_display_delegate.h
@@ -6,12 +6,11 @@
#define UI_OZONE_PLATFORM_DRM_HOST_NATIVE_DISPLAY_DELEGATE_HOST_H_
#include <map>
-#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"
@@ -23,6 +22,7 @@ namespace ui {
class DeviceManager;
class DisplayManager;
+class DrmDeviceHandle;
class DrmGpuPlatformSupportHost;
struct DisplaySnapshot_Params;
@@ -82,7 +82,7 @@ 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);
void OnUpdateGraphicsDevice();
void OnRemoveGraphicsDevice(const base::FilePath& path);
@@ -110,7 +110,7 @@ class DrmNativeDisplayDelegate : public NativeDisplayDelegate,
std::map<int64_t, ConfigureCallback> configure_callback_map_;
// Keeps track of all the active DRM devices.
- std::set<base::FilePath> drm_devices_;
+ base::ScopedPtrHashMap<base::FilePath, DrmDeviceHandle> drm_devices_;
// Used to asynchronously process display hotplug events in the correct order.
SequencedScheduler scheduler_;

Powered by Google App Engine
This is Rietveld 408576698