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

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

Issue 399953003: ozone: Remove InitializeHardware / ShutdownHardware (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/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 f043996669ccccbdebca6a4925ce7a977631fa4d..8557f35eaffa3e3c1509a375ba8618c4ee384f48 100644
--- a/ui/ozone/platform/dri/ozone_platform_gbm.cc
+++ b/ui/ozone/platform/dri/ozone_platform_gbm.cc
@@ -154,7 +154,6 @@ class OzonePlatformGbm : public OzonePlatform {
surface_factory_ozone_->InitializeGpu(dri_.get(),
surface_generator_->device(),
screen_manager_.get());
-
gpu_platform_support_.reset(
new GpuPlatformSupportGbm(surface_factory_ozone_.get()));
#if defined(OS_CHROMEOS)
@@ -165,6 +164,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:

Powered by Google App Engine
This is Rietveld 408576698