| Index: components/exo/display.cc
|
| diff --git a/components/exo/display.cc b/components/exo/display.cc
|
| index 2accab24cb1b2ac053d0a415f0e747ba14d1a10d..083461b761eef1a4cf832b96345e8fa994cc7cb0 100644
|
| --- a/components/exo/display.cc
|
| +++ b/components/exo/display.cc
|
| @@ -63,7 +63,8 @@ std::unique_ptr<Buffer> Display::CreateLinuxDMABufBuffer(
|
| base::ScopedFD fd,
|
| const gfx::Size& size,
|
| gfx::BufferFormat format,
|
| - int stride) {
|
| + const std::vector<int>& strides,
|
| + const std::vector<int>& offsets) {
|
| TRACE_EVENT1("exo", "Display::CreateLinuxDMABufBuffer", "size",
|
| size.ToString());
|
|
|
| @@ -71,8 +72,8 @@ std::unique_ptr<Buffer> Display::CreateLinuxDMABufBuffer(
|
| handle.type = gfx::OZONE_NATIVE_PIXMAP;
|
| handle.native_pixmap_handle.fds.emplace_back(
|
| base::FileDescriptor(std::move(fd)));
|
| - handle.native_pixmap_handle.strides.push_back(stride);
|
| - handle.native_pixmap_handle.offsets.push_back(0);
|
| + handle.native_pixmap_handle.strides = strides;
|
| + handle.native_pixmap_handle.offsets = offsets;
|
|
|
| std::unique_ptr<gfx::GpuMemoryBuffer> gpu_memory_buffer =
|
| aura::Env::GetInstance()
|
|
|