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

Unified Diff: media/gpu/video_decode_accelerator_unittest.cc

Issue 2039813002: Add format modifier IDs for EGL_EXT_image_dma_buf_import extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add format modifier IDs for EGL_EXT_image_dma_buf_import extension Created 4 years, 6 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/video_decode_accelerator_unittest.cc
diff --git a/media/gpu/video_decode_accelerator_unittest.cc b/media/gpu/video_decode_accelerator_unittest.cc
index f0c75c99054fb700b0043efca9c9366ae836af78..92eae8eb7b1310cc55cd953aa82d8c623cc6dd81 100644
--- a/media/gpu/video_decode_accelerator_unittest.cc
+++ b/media/gpu/video_decode_accelerator_unittest.cc
@@ -371,8 +371,9 @@ gfx::GpuMemoryBufferHandle TextureRef::ExportGpuMemoryBufferHandle() const {
handle.type = gfx::OZONE_NATIVE_PIXMAP;
handle.native_pixmap_handle.fds.emplace_back(
base::FileDescriptor(duped_fd, true));
- handle.native_pixmap_handle.strides_and_offsets.emplace_back(
- pixmap_->GetDmaBufPitch(0), pixmap_->GetDmaBufOffset(0));
+ handle.native_pixmap_handle.planes.emplace_back(
+ pixmap_->GetDmaBufPitch(0), pixmap_->GetDmaBufOffset(0),
+ pixmap_->GetDmaBufModifier(0));
#endif
return handle;
}

Powered by Google App Engine
This is Rietveld 408576698