| Index: ui/gl/gl_surface_ozone.cc
|
| diff --git a/ui/gl/gl_surface_ozone.cc b/ui/gl/gl_surface_ozone.cc
|
| index 800be1759fe96331573944463123e00ce19968f2..486b30967a2aa1c6f256a0599958caa98e50e90a 100644
|
| --- a/ui/gl/gl_surface_ozone.cc
|
| +++ b/ui/gl/gl_surface_ozone.cc
|
| @@ -327,9 +327,12 @@ class GL_EXPORT GLSurfaceOzoneSurfacelessSurfaceImpl
|
|
|
| bool Initialize(scoped_refptr<ui::NativePixmap> pixmap,
|
| gfx::GpuMemoryBuffer::Format format) {
|
| - base::FileDescriptor handle(pixmap->GetDmaBufFd(), false);
|
| - if (!GLImageLinuxDMABuffer::Initialize(handle, format,
|
| - pixmap->GetDmaBufPitch()))
|
| + const std::vector<base::FileDescriptor> handles = {
|
| + base::FileDescriptor(pixmap->GetDmaBufFd(), false)};
|
| + const std::vector<gfx::GpuMemoryBuffer::Format> formats = {format};
|
| + const std::vector<int> pitches = {pixmap->GetDmaBufPitch()};
|
| +
|
| + if (!GLImageLinuxDMABuffer::Initialize(1, handles, formats, pitches))
|
| return false;
|
| pixmap_ = pixmap;
|
| return true;
|
|
|