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

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

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, 9 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: content/common/gpu/media/tegra_v4l2_device.h
diff --git a/content/common/gpu/media/tegra_v4l2_device.h b/content/common/gpu/media/tegra_v4l2_device.h
index 8b2320bd0371a16de785a66116efd6988878be52..30376dbc3f30fe233d4a227a07911934251b694d 100644
--- a/content/common/gpu/media/tegra_v4l2_device.h
+++ b/content/common/gpu/media/tegra_v4l2_device.h
@@ -35,14 +35,19 @@ class TegraV4L2Device : public V4L2Device {
unsigned int offset) override;
void Munmap(void* addr, unsigned int len) override;
bool Initialize() override;
+ std::vector<base::ScopedFD> GetDmabufsForV4L2Buffer(
+ int index,
+ size_t num_planes,
+ enum v4l2_buf_type type) override;
bool CanCreateEGLImageFrom(uint32_t v4l2_pixfmt) override;
- EGLImageKHR 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 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) override;
EGLBoolean DestroyEGLImage(EGLDisplay egl_display,
EGLImageKHR egl_image) override;
GLenum GetTextureTarget() override;

Powered by Google App Engine
This is Rietveld 408576698