| 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 c7fca0143d60dcf2b735ad45d4d371cbf5b74792..d0caeb3d1a35b6902ca91ab9e24c0d4698800d96 100644
|
| --- a/ui/ozone/platform/dri/ozone_platform_gbm.cc
|
| +++ b/ui/ozone/platform/dri/ozone_platform_gbm.cc
|
| @@ -128,7 +128,8 @@ class OzonePlatformGbm : public OzonePlatform {
|
| display_manager_.reset(new DisplayManager());
|
| // Needed since the browser process creates the accelerated widgets and that
|
| // happens through SFO.
|
| - surface_factory_ozone_.reset(new GbmSurfaceFactory(use_surfaceless_));
|
| + if (!surface_factory_ozone_)
|
| + surface_factory_ozone_.reset(new GbmSurfaceFactory(use_surfaceless_));
|
| device_manager_ = CreateDeviceManager();
|
| gpu_platform_support_host_.reset(new DriGpuPlatformSupportHost());
|
| cursor_factory_ozone_.reset(new BitmapCursorFactoryOzone);
|
|
|