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

Unified Diff: ui/ozone/platform/dri/ozone_platform_dri.cc

Issue 913273006: ozone: choose a card useful for display rather than by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/ozone_platform_gbm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/ozone_platform_dri.cc
diff --git a/ui/ozone/platform/dri/ozone_platform_dri.cc b/ui/ozone/platform/dri/ozone_platform_dri.cc
index 8ffcabe719e8adf874f045e21fbd918f61f627e1..2574de0cd2eaf55694b1d954d6ef454cbf663489 100644
--- a/ui/ozone/platform/dri/ozone_platform_dri.cc
+++ b/ui/ozone/platform/dri/ozone_platform_dri.cc
@@ -40,8 +40,6 @@ namespace ui {
namespace {
-const char kDefaultGraphicsCardPath[] = "/dev/dri/card0";
-
// OzonePlatform for Linux DRI (Direct Rendering Infrastructure)
//
// This platform is Linux without any display server (no X, wayland, or
@@ -49,7 +47,7 @@ const char kDefaultGraphicsCardPath[] = "/dev/dri/card0";
class OzonePlatformDri : public OzonePlatform {
public:
OzonePlatformDri()
- : dri_(new DriWrapper(base::FilePath(kDefaultGraphicsCardPath))),
+ : dri_(new DriWrapper(GetFirstDisplayCardPath())),
buffer_generator_(new DriBufferGenerator()),
screen_manager_(new ScreenManager(buffer_generator_.get())),
device_manager_(CreateDeviceManager()),
« no previous file with comments | « ui/ozone/platform/dri/dri_util.cc ('k') | ui/ozone/platform/dri/ozone_platform_gbm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698