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

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

Issue 953363003: Figure out the default graphics card on the Browser process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@assume-minigbm
Patch Set: Rename 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/dri_util.cc ('k') | ui/ozone/platform/dri/native_display_delegate_proxy.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_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 70f1e8fedb51cd32b7d2de347a99a66d3fe68065..324c737692bba5c15886828a11bc2beceff59257 100644
--- a/ui/ozone/platform/dri/native_display_delegate_proxy.h
+++ b/ui/ozone/platform/dri/native_display_delegate_proxy.h
@@ -8,6 +8,7 @@
#include <map>
#include "base/files/file.h"
+#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/scoped_vector.h"
#include "base/observer_list.h"
@@ -29,7 +30,8 @@ class NativeDisplayDelegateProxy : public NativeDisplayDelegate,
public:
NativeDisplayDelegateProxy(DriGpuPlatformSupportHost* proxy,
DeviceManager* device_manager,
- DisplayManager* display_manager);
+ DisplayManager* display_manager,
+ const base::FilePath& primary_graphics_card_path);
~NativeDisplayDelegateProxy() override;
// NativeDisplayDelegate overrides:
@@ -81,6 +83,11 @@ class NativeDisplayDelegateProxy : public NativeDisplayDelegate,
DeviceManager* device_manager_; // Not owned.
DisplayManager* display_manager_; // Not owned.
+ // File path for the primary graphics card which is opened by default in the
+ // GPU process. We'll avoid opening this in hotplug events since it will race
+ // with the GPU process trying to open it and aquire DRM master.
+ const base::FilePath primary_graphics_card_path_;
+
// Keeps track if there is a dummy display. This happens on initialization
// when there is no connection to the GPU to update the displays.
bool has_dummy_display_;
« no previous file with comments | « ui/ozone/platform/dri/dri_util.cc ('k') | ui/ozone/platform/dri/native_display_delegate_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698