Chromium Code Reviews| Index: gpu/ipc/service/gpu_memory_buffer_factory_native_pixmap.cc |
| diff --git a/gpu/ipc/service/gpu_memory_buffer_factory_native_pixmap.cc b/gpu/ipc/service/gpu_memory_buffer_factory_native_pixmap.cc |
| index 77b68af8f821f0bcc14af12ae00e757fe4d1df53..b89aea8485cf0dea67f88f7809fda68c520d59f9 100644 |
| --- a/gpu/ipc/service/gpu_memory_buffer_factory_native_pixmap.cc |
| +++ b/gpu/ipc/service/gpu_memory_buffer_factory_native_pixmap.cc |
| @@ -11,6 +11,8 @@ |
| #if defined(USE_OZONE) |
| #include "ui/ozone/public/ozone_platform.h" |
| #include "ui/ozone/public/surface_factory_ozone.h" |
| +#elif defined(OS_LINUX) |
| +#include "ui/gfx/linux/native_pixmap_dmabuf_stub.h" |
| #endif |
| namespace gpu { |
| @@ -101,8 +103,8 @@ GpuMemoryBufferFactoryNativePixmap::CreateImageForGpuMemoryBuffer( |
| ->CreateNativePixmapFromHandle(surface_handle, size, format, |
| handle.native_pixmap_handle); |
| #else |
| - // TODO(j.isorce): implement this to enable glCreateImageCHROMIUM on Linux. |
| - NOTIMPLEMENTED(); |
| + pixmap = new ui::NativePixmapDmaBufStub(size, format, |
|
reveman
2017/04/12 18:21:36
should we be using make_scoped_refptr here to make
Julien Isorce
2017/04/13 12:46:02
Sure, I will do it.
|
| + handle.native_pixmap_handle); |
| #endif |
| if (!pixmap.get()) { |
| DLOG(ERROR) << "Failed to create pixmap from handle"; |