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

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

Issue 1822983002: Support external buffer import in VDA interface and add a V4L2SVDA impl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « content/common/gpu/media/tegra_v4l2_device.h ('k') | content/common/gpu/media/v4l2_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/tegra_v4l2_device.cc
diff --git a/content/common/gpu/media/tegra_v4l2_device.cc b/content/common/gpu/media/tegra_v4l2_device.cc
index a28644964d5972b85503093b1975daf979f000dc..6efe16f18892d08b0f24625c0eb8e84f801efc21 100644
--- a/content/common/gpu/media/tegra_v4l2_device.cc
+++ b/content/common/gpu/media/tegra_v4l2_device.cc
@@ -189,13 +189,14 @@ bool TegraV4L2Device::CanCreateEGLImageFrom(uint32_t v4l2_pixfmt) {
return v4l2_pixfmt == V4L2_PIX_FMT_NV12M;
}
-EGLImageKHR TegraV4L2Device::CreateEGLImage(EGLDisplay egl_display,
- EGLContext egl_context,
- GLuint texture_id,
- gfx::Size /* frame_buffer_size */,
- unsigned int buffer_index,
- uint32_t v4l2_pixfmt,
- size_t /* num_v4l2_planes */) {
+EGLImageKHR TegraV4L2Device::CreateEGLImage(
+ EGLDisplay egl_display,
+ EGLContext egl_context,
+ GLuint texture_id,
+ const gfx::Size& /* size */,
+ unsigned int buffer_index,
+ uint32_t v4l2_pixfmt,
+ const std::vector<base::ScopedFD>& /* dmabuf_fds */) {
DVLOG(3) << "CreateEGLImage()";
if (!CanCreateEGLImageFrom(v4l2_pixfmt)) {
LOG(ERROR) << "Unsupported V4L2 pixel format";
« no previous file with comments | « content/common/gpu/media/tegra_v4l2_device.h ('k') | content/common/gpu/media/v4l2_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698