| Index: components/exo/display.cc
|
| diff --git a/components/exo/display.cc b/components/exo/display.cc
|
| index 02b6d0ea11047a8ab8ac3f1645bedbeee1358965..c8a27a6c3f3bf691dc512498c40eae0ca22e1fa0 100644
|
| --- a/components/exo/display.cc
|
| +++ b/components/exo/display.cc
|
| @@ -101,6 +101,22 @@ std::unique_ptr<Buffer> Display::CreateLinuxDMABufBuffer(
|
| // COMMANDS_COMPLETED queries are required by native pixmaps.
|
| GL_COMMANDS_COMPLETED_CHROMIUM, use_zero_copy, is_overlay_candidate);
|
| }
|
| +
|
| +std::unique_ptr<gfx::GpuFence> Display::CreateLinuxFence(base::ScopedFD fd) {
|
| + TRACE_EVENT1("exo", "Display::CreateLinuxFence", "fd", fd.get());
|
| +
|
| + gfx::GpuFenceHandle handle;
|
| +
|
| + handle.fd.fd = fd.release();
|
| +
|
| + std::unique_ptr<gfx::GpuFence> gpu_fence =
|
| + aura::Env::GetInstance()
|
| + ->context_factory()
|
| + ->GetGpuMemoryBufferManager()
|
| + ->CreateGpuFenceFromHandle(handle);
|
| +
|
| + return std::move(gpu_fence);
|
| +}
|
| #endif
|
|
|
| std::unique_ptr<ShellSurface> Display::CreateShellSurface(Surface* surface) {
|
|
|