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

Unified Diff: ui/ozone/platform/dri/dri_wrapper.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: 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/dri_wrapper.cc
diff --git a/ui/ozone/platform/dri/dri_wrapper.cc b/ui/ozone/platform/dri/dri_wrapper.cc
index 9cdc994353a2ec65886d71d342abad08ffaf8fa9..9964266342c8b1e8689b5121f897d9b0d83a97f0 100644
--- a/ui/ozone/platform/dri/dri_wrapper.cc
+++ b/ui/ozone/platform/dri/dri_wrapper.cc
@@ -163,10 +163,15 @@ DriWrapper::~DriWrapper() {
watcher_->Shutdown();
}
-void DriWrapper::Initialize() {
+bool DriWrapper::Initialize() {
plane_manager_.reset(new HardwareDisplayPlaneManagerLegacy());
- if (!plane_manager_->Initialize(this))
- LOG(ERROR) << "Failed to initialize the plane manager";
+ if (!plane_manager_->Initialize(this)) {
+ LOG(ERROR) << "Failed to initialize the plane manager for "
+ << device_path_.value();
+ return false;
alexst (slow to review) 2015/02/23 21:46:32 Should reset the plane manager here since it's in
dnicoara 2015/02/23 21:49:10 Done.
+ }
+
+ return true;
}
void DriWrapper::InitializeTaskRunner(

Powered by Google App Engine
This is Rietveld 408576698