| Index: content/common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc
|
| diff --git a/content/common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc b/content/common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc
|
| index fa12bf90c4f1661bfa32e688b7b63de0b4074c51..dfc0e38ee0b4b1c8518c922f1289fd658c00fc6a 100644
|
| --- a/content/common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc
|
| +++ b/content/common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/logging.h"
|
| #include "ui/gl/gl_image.h"
|
| +#include "ui/ozone/public/ozone_platform.h"
|
| #include "ui/ozone/public/surface_factory_ozone.h"
|
|
|
| namespace content {
|
| @@ -41,8 +42,9 @@ bool GpuMemoryBufferFactoryOzoneNativeBuffer::
|
| void GpuMemoryBufferFactoryOzoneNativeBuffer::
|
| GetSupportedGpuMemoryBufferConfigurations(
|
| std::vector<Configuration>* configurations) {
|
| - if (!ui::SurfaceFactoryOzone::GetInstance()->CanCreateNativePixmap(
|
| - ui::SurfaceFactoryOzone::SCANOUT))
|
| + if (!ui::OzonePlatform::GetInstance()
|
| + ->GetSurfaceFactoryOzone()
|
| + ->CanCreateNativePixmap(ui::SurfaceFactoryOzone::SCANOUT))
|
| return;
|
|
|
| configurations->assign(
|
|
|