| Index: ui/ozone/platform/drm/gpu/gbm_surface_factory.cc
|
| diff --git a/ui/ozone/platform/drm/gpu/gbm_surface_factory.cc b/ui/ozone/platform/drm/gpu/gbm_surface_factory.cc
|
| index f4828611e091c488c31c746e28d23ec04b1509df..6b68ffd40d82a6e0570b19c425df76248e073694 100644
|
| --- a/ui/ozone/platform/drm/gpu/gbm_surface_factory.cc
|
| +++ b/ui/ozone/platform/drm/gpu/gbm_surface_factory.cc
|
| @@ -39,11 +39,9 @@ void GbmSurfaceFactory::InitializeGpu(DrmDeviceManager* drm_device_manager,
|
|
|
| intptr_t GbmSurfaceFactory::GetNativeDisplay() {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| - auto primary_device = drm_device_manager_->GetDrmDevice(
|
| - gfx::kNullAcceleratedWidget);
|
| - DCHECK(primary_device.get());
|
| - auto gbm_device = static_cast<GbmDevice*>(primary_device.get());
|
| - return reinterpret_cast<EGLNativeDisplayType>(gbm_device->device());
|
| + // If using gbm surfaces, must return here the gbm device that corresponds
|
| + // to the primary drm device.
|
| + return EGL_DEFAULT_DISPLAY;
|
| }
|
|
|
| const int32* GbmSurfaceFactory::GetEGLSurfaceProperties(
|
|
|