Index: ui/gl/gl_surface_ozone.cc |
diff --git a/ui/gl/gl_surface_ozone.cc b/ui/gl/gl_surface_ozone.cc |
index 9f874d4e87bf25f6fc8201b92e620d4f393508f8..fb452b60bc11a491258130b5002ef8298c6f361a 100644 |
--- a/ui/gl/gl_surface_ozone.cc |
+++ b/ui/gl/gl_surface_ozone.cc |
@@ -12,6 +12,7 @@ |
#include "base/memory/scoped_vector.h" |
#include "base/memory/weak_ptr.h" |
#include "base/threading/worker_pool.h" |
+#include "content/common/generic_shared_memory_id_generator.h" |
#include "ui/gfx/native_widget_types.h" |
#include "ui/gl/gl_context.h" |
#include "ui/gl/gl_image.h" |
@@ -553,7 +554,9 @@ bool GLSurfaceOzoneSurfacelessSurfaceImpl::CreatePixmaps() { |
return false; |
scoped_refptr<GLImageOzoneNativePixmap> image = |
new GLImageOzoneNativePixmap(GetSize(), GL_BGRA_EXT); |
- if (!image->Initialize(pixmap.get(), gfx::BufferFormat::BGRA_8888)) |
+ if (GetNextGenericSharedMemoryId(), |
+ !image->Initialize(pixmap.get(), |
+ gfx::GpuMemoryBuffer::Format::BGRA_8888)) |
return false; |
images_[i] = image; |
// Bind image to texture. |