Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Unified Diff: content/common/gpu/media/vaapi_drm_picture.cc

Issue 886353005: [VAAPI-DRM] Fix GpuMemoryBuffer format when creating a pixmap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 628b4c8d4146eecaa214ff5bbdee105bd9249c49..941bc113af68f50c2a7d5b08b84618927f232ae4 100644
--- a/content/common/gpu/media/vaapi_drm_picture.cc
+++ b/content/common/gpu/media/vaapi_drm_picture.cc
@@ -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::RGBA_8888, GL_RGBA);
+ pixmap_, size(), gfx::GpuMemoryBuffer::BGRA_8888, GL_RGBA);
if (!gl_image_) {
LOG(ERROR) << "Failed to create GLImage";
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698