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

Unified Diff: ui/ozone/platform/dri/native_display_delegate_proxy.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: Rebased 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
Index: ui/ozone/platform/dri/native_display_delegate_proxy.h
diff --git a/ui/ozone/platform/dri/native_display_delegate_proxy.h b/ui/ozone/platform/dri/native_display_delegate_proxy.h
index a4dbf0669fe3f3cee8b7ee7fb146b6b972427835..70f1e8fedb51cd32b7d2de347a99a66d3fe68065 100644
--- a/ui/ozone/platform/dri/native_display_delegate_proxy.h
+++ b/ui/ozone/platform/dri/native_display_delegate_proxy.h
@@ -7,6 +7,7 @@
#include <map>
+#include "base/files/file.h"
#include "base/macros.h"
#include "base/memory/scoped_vector.h"
#include "base/observer_list.h"
@@ -74,6 +75,8 @@ class NativeDisplayDelegateProxy : public NativeDisplayDelegate,
const std::vector<DisplaySnapshot_Params>& displays);
void OnDisplayConfigured(int64_t display_id, bool status);
+ void OnNewGraphicsDevice(const base::FilePath& path, base::File file);
+
DriGpuPlatformSupportHost* proxy_; // Not owned.
DeviceManager* device_manager_; // Not owned.
DisplayManager* display_manager_; // Not owned.
@@ -90,6 +93,8 @@ class NativeDisplayDelegateProxy : public NativeDisplayDelegate,
// Map between display_id and the configuration callback.
std::map<int64_t, ConfigureCallback> configure_callback_map_;
+ base::WeakPtrFactory<NativeDisplayDelegateProxy> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateProxy);
};

Powered by Google App Engine
This is Rietveld 408576698