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

Unified Diff: media/gpu/vaapi_drm_picture.cc

Issue 2148983002: gpu: Take surface handle into account when importing buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: avoid crash in DrmDeviceManager::GetDrmDevice when passed invalid widget Created 4 years, 5 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
Index: media/gpu/vaapi_drm_picture.cc
diff --git a/media/gpu/vaapi_drm_picture.cc b/media/gpu/vaapi_drm_picture.cc
index 3de36d3ca362b0ede8872484ba9a08d31425afdd..1aaa8800ff877fdeb7c55d6c2b980fb0ec639a5c 100644
--- a/media/gpu/vaapi_drm_picture.cc
+++ b/media/gpu/vaapi_drm_picture.cc
@@ -123,7 +123,8 @@ bool VaapiDrmPicture::ImportGpuMemoryBufferHandle(
ui::SurfaceFactoryOzone* factory = platform->GetSurfaceFactoryOzone();
// CreateNativePixmapFromHandle() will take ownership of the handle.
pixmap_ = factory->CreateNativePixmapFromHandle(
- size_, format, gpu_memory_buffer_handle.native_pixmap_handle);
+ gfx::kNullAcceleratedWidget, size_, format,
+ gpu_memory_buffer_handle.native_pixmap_handle);
if (!pixmap_) {
DVLOG(1) << "Failed creating a pixmap from a native handle";
return false;
« no previous file with comments | « gpu/ipc/service/gpu_memory_buffer_factory_surface_texture.cc ('k') | ui/gl/gl_image_ozone_native_pixmap_drm_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698