Chromium Code Reviews| 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( |