Index: gpu/ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap.cc |
diff --git a/gpu/ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap.cc b/gpu/ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap.cc |
index 35e77b3e4b1e41a979eeb8d97889c088da3ca54d..a6fe210ec306eda4a8e1314dc82dbb9e47022596 100644 |
--- a/gpu/ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap.cc |
+++ b/gpu/ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap.cc |
@@ -55,12 +55,13 @@ GpuMemoryBufferFactoryOzoneNativePixmap::CreateImageForGpuMemoryBuffer( |
const gfx::Size& size, |
gfx::BufferFormat format, |
unsigned internalformat, |
- int client_id) { |
+ int client_id, |
+ SurfaceHandle surface_handle) { |
DCHECK_EQ(handle.type, gfx::OZONE_NATIVE_PIXMAP); |
scoped_refptr<ui::NativePixmap> pixmap = |
ui::OzonePlatform::GetInstance() |
->GetSurfaceFactoryOzone() |
- ->CreateNativePixmapFromHandle(size, format, |
+ ->CreateNativePixmapFromHandle(surface_handle, size, format, |
handle.native_pixmap_handle); |
if (!pixmap.get()) { |
DLOG(ERROR) << "Failed to create pixmap from handle"; |