Index: ui/ozone/platform/dri/ozone_platform_gbm.cc |
diff --git a/ui/ozone/platform/dri/ozone_platform_gbm.cc b/ui/ozone/platform/dri/ozone_platform_gbm.cc |
index f4104fd97bfc3ecb28af2d68e693720b4b19c406..3b417c205b64db4ff9a4668c42be4edfb906443d 100644 |
--- a/ui/ozone/platform/dri/ozone_platform_gbm.cc |
+++ b/ui/ozone/platform/dri/ozone_platform_gbm.cc |
@@ -137,7 +137,6 @@ class OzonePlatformGbm : public OzonePlatform { |
surface_factory_ozone_->InitializeGpu(dri_.get(), |
buffer_generator_->device(), |
screen_manager_.get()); |
- |
gpu_platform_support_.reset( |
new GpuPlatformSupportGbm(surface_factory_ozone_.get())); |
#if defined(OS_CHROMEOS) |
@@ -148,6 +147,9 @@ class OzonePlatformGbm : public OzonePlatform { |
screen_manager_.get(), |
NULL))))); |
#endif |
+ if (surface_factory_ozone_->InitializeHardware() != |
+ DriSurfaceFactory::INITIALIZED) |
+ LOG(FATAL) << "failed to initialize display hardware"; |
} |
private: |