| 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()),
|
|
|