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

Unified Diff: ui/ozone/platform/dri/ozone_platform_gbm.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/ozone_platform_dri.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/ozone_platform_gbm.cc
diff --git a/ui/ozone/platform/dri/ozone_platform_gbm.cc b/ui/ozone/platform/dri/ozone_platform_gbm.cc
index ade1511e9c7323aecdb076d5050c1a5c09f75826..a5b674232943a80424a4747a4d63613bca07af5c 100644
--- a/ui/ozone/platform/dri/ozone_platform_gbm.cc
+++ b/ui/ozone/platform/dri/ozone_platform_gbm.cc
@@ -49,8 +49,6 @@ namespace ui {
namespace {
-const char kDefaultGraphicsCardPath[] = "/dev/dri/card0";
-
class GlApiLoader {
public:
GlApiLoader()
@@ -155,7 +153,7 @@ class OzonePlatformGbm : public OzonePlatform {
void InitializeGPU() override {
gl_api_loader_.reset(new GlApiLoader());
// Async page flips are supported only on surfaceless mode.
- gbm_ = new GbmWrapper(base::FilePath(kDefaultGraphicsCardPath));
+ gbm_ = new GbmWrapper(GetFirstDisplayCardPath());
gbm_->Initialize();
drm_device_manager_.reset(new DrmDeviceManager(gbm_));
buffer_generator_.reset(new GbmBufferGenerator());
« no previous file with comments | « ui/ozone/platform/dri/ozone_platform_dri.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698