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 1fc56edd7ac6ce3972a14e237d7b88bfeb9f0aec..780664a644cf1a9c24a42b3405d191ee2d0bdab1 100644 |
--- a/ui/ozone/platform/dri/ozone_platform_dri.cc |
+++ b/ui/ozone/platform/dri/ozone_platform_dri.cc |
@@ -87,6 +87,10 @@ class OzonePlatformDri : public OzonePlatform { |
new CursorFactoryEvdevDri(surface_factory_ozone_.get())); |
event_factory_ozone_.reset(new EventFactoryEvdev( |
cursor_factory_ozone_.get(), device_manager_.get())); |
+ if (surface_factory_ozone_->InitializeHardware() != |
+ DriSurfaceFactory::INITIALIZED) |
+ LOG(FATAL) << "failed to initialize display hardware"; |
+ |
} |
virtual void InitializeGPU() OVERRIDE {} |