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

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

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/native_display_delegate_proxy.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 b01cfc17bf8db60770c1a24b6bd92f70c3c5a7f6..8dd78386db621b3fd19f604e6f3c9ef82fb004fc 100644
--- a/ui/ozone/platform/dri/ozone_platform_dri.cc
+++ b/ui/ozone/platform/dri/ozone_platform_dri.cc
@@ -49,7 +49,7 @@ namespace {
class OzonePlatformDri : public OzonePlatform {
public:
OzonePlatformDri()
- : dri_(new DriWrapper(GetFirstDisplayCardPath())),
+ : dri_(new DriWrapper(GetPrimaryDisplayCardPath())),
buffer_generator_(new DriBufferGenerator()),
screen_manager_(new ScreenManager(buffer_generator_.get())),
device_manager_(CreateDeviceManager()),
@@ -88,7 +88,7 @@ class OzonePlatformDri : public OzonePlatform {
scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override {
return make_scoped_ptr(new NativeDisplayDelegateProxy(
gpu_platform_support_host_.get(), device_manager_.get(),
- display_manager_.get()));
+ display_manager_.get(), dri_->device_path()));
}
void InitializeUI() override {
if (!dri_->Initialize())
« no previous file with comments | « ui/ozone/platform/dri/native_display_delegate_proxy.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