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 941bc113af68f50c2a7d5b08b84618927f232ae4..fb0378d852810a2b8ea1354b2f08ea86371356ad 100644 |
--- a/content/common/gpu/media/vaapi_drm_picture.cc |
+++ b/content/common/gpu/media/vaapi_drm_picture.cc |
@@ -48,9 +48,9 @@ bool VaapiDrmPicture::Initialize() { |
ui::SurfaceFactoryOzone* factory = platform->GetSurfaceFactoryOzone(); |
// Create a buffer from Ozone. |
- pixmap_ = factory->CreateNativePixmap(gfx::kNullAcceleratedWidget, size(), |
- ui::SurfaceFactoryOzone::RGBA_8888, |
- ui::SurfaceFactoryOzone::SCANOUT); |
+ pixmap_ = factory->CreateNativePixmap( |
+ gfx::kNullAcceleratedWidget, size(), ui::SurfaceFactoryOzone::BGRA_8888, |
+ ui::SurfaceFactoryOzone::SCANOUT, nullptr); |
if (!pixmap_) { |
LOG(ERROR) << "Failed creating an Ozone NativePixmap"; |
return false; |
@@ -105,7 +105,7 @@ bool VaapiDrmPicture::Initialize() { |
gfx::ScopedTextureBinder texture_binder(GL_TEXTURE_EXTERNAL_OES, |
texture_id()); |
gl_image_ = ui::GpuMemoryBufferFactoryOzoneNativeBuffer::CreateImageForPixmap( |
- pixmap_, size(), gfx::GpuMemoryBuffer::BGRA_8888, GL_RGBA); |
+ pixmap_, size(), gfx::GpuMemoryBuffer::BGRA_8888, GL_BGRA_EXT); |
if (!gl_image_) { |
LOG(ERROR) << "Failed to create GLImage"; |
return false; |