| Index: content/common/gpu/media/vaapi_drm_picture.cc
|
| diff --git a/content/common/gpu/media/vaapi_drm_picture.cc b/content/common/gpu/media/vaapi_drm_picture.cc
|
| index 980b63e619dbf6036b26f0d57040f065ccf7680b..75c6bccdc19648f4725e40fb1c4389953a7cccaa 100644
|
| --- a/content/common/gpu/media/vaapi_drm_picture.cc
|
| +++ b/content/common/gpu/media/vaapi_drm_picture.cc
|
| @@ -3,6 +3,7 @@
|
| // found in the LICENSE file.
|
|
|
| #include "base/file_descriptor_posix.h"
|
| +#include "content/common/generic_shared_memory_id_generator.h"
|
| #include "content/common/gpu/media/va_surface.h"
|
| #include "content/common/gpu/media/vaapi_drm_picture.h"
|
| #include "content/common/gpu/media/vaapi_wrapper.h"
|
| @@ -129,7 +130,8 @@ bool VaapiDrmPicture::Initialize() {
|
| texture_id());
|
| scoped_refptr<gfx::GLImageOzoneNativePixmap> image(
|
| new gfx::GLImageOzoneNativePixmap(size(), GL_BGRA_EXT));
|
| - if (!image->Initialize(pixmap_.get(), gfx::BufferFormat::BGRA_8888)) {
|
| + if (!image->Initialize(GetNextGenericSharedMemoryId(), pixmap_.get(),
|
| + gfx::GpuMemoryBuffer::BGRA_8888)) {
|
| LOG(ERROR) << "Failed to create GLImage";
|
| return false;
|
| }
|
|
|