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

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: 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/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 bfba0e04851c35aed77d8292a661b4df80060e5f..cd030c1da620c116384f71176e9ba8a0b590e1a1 100644
--- a/ui/ozone/platform/dri/ozone_platform_gbm.cc
+++ b/ui/ozone/platform/dri/ozone_platform_gbm.cc
@@ -47,8 +47,6 @@ namespace ui {
namespace {
-const char kDefaultGraphicsCardPath[] = "/dev/dri/card0";
-
class GlApiLoader {
public:
GlApiLoader()
@@ -152,7 +150,7 @@ class OzonePlatformGbm : public OzonePlatform {
void InitializeGPU() override {
gl_api_loader_.reset(new GlApiLoader());
// Async page flips are supported only on surfaceless mode.
- gbm_.reset(new GbmWrapper(kDefaultGraphicsCardPath));
+ gbm_.reset(new GbmWrapper(NULL));
gbm_->Initialize();
buffer_generator_.reset(new GbmBufferGenerator());
screen_manager_.reset(
« ui/ozone/platform/dri/ozone_platform_dri.cc ('K') | « 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