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

Unified Diff: ui/ozone/platform/drm/gbm_surface_factory.cc

Issue 1100973002: [2/4]Allow hotplugging of primary DRM device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-hotplug
Patch Set: Created 5 years, 8 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/drm/gbm_surface_factory.cc
diff --git a/ui/ozone/platform/drm/gbm_surface_factory.cc b/ui/ozone/platform/drm/gbm_surface_factory.cc
index 4c836ee325be18973389ec7d86da872f16d8f0f1..c8d3b9608edfdc64f4e382e68b455c941195ffda 100644
--- a/ui/ozone/platform/drm/gbm_surface_factory.cc
+++ b/ui/ozone/platform/drm/gbm_surface_factory.cc
@@ -83,13 +83,7 @@ void GbmSurfaceFactory::InitializeGpu(DrmDeviceManager* drm_device_manager,
}
intptr_t GbmSurfaceFactory::GetNativeDisplay() {
-#if defined(USE_MESA_PLATFORM_NULL)
return EGL_DEFAULT_DISPLAY;
-#else
- scoped_refptr<GbmDevice> gbm = GetGbmDevice(gfx::kNullAcceleratedWidget);
- DCHECK(gbm);
- return reinterpret_cast<intptr_t>(gbm->device());
-#endif
}
const int32* GbmSurfaceFactory::GetEGLSurfaceProperties(
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/drm_device.cc » ('j') | ui/ozone/platform/drm/gpu/drm_device_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698