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

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

Issue 947293002: [Ozone-Dri] Gracefully handle DRM devices with no resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make errors/warning to vlogs 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_dri.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 905c9f49a95a4f1f68941f4a7ca78114af257793..b01cfc17bf8db60770c1a24b6bd92f70c3c5a7f6 100644
--- a/ui/ozone/platform/dri/ozone_platform_dri.cc
+++ b/ui/ozone/platform/dri/ozone_platform_dri.cc
@@ -91,7 +91,9 @@ class OzonePlatformDri : public OzonePlatform {
display_manager_.get()));
}
void InitializeUI() override {
- dri_->Initialize();
+ if (!dri_->Initialize())
+ LOG(FATAL) << "Failed to initialize primary DRM device";
+
// This makes sure that simple targets that do not handle display
// configuration can still use the primary display.
ForceInitializationOfPrimaryDisplay(dri_, screen_manager_.get());
« no previous file with comments | « ui/ozone/platform/dri/native_display_delegate_dri.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