| Index: content/common/gpu/media/v4l2_video_device.h
|
| diff --git a/content/common/gpu/media/v4l2_video_device.h b/content/common/gpu/media/v4l2_video_device.h
|
| index 92bc02fac25175b13582ea64d366c2c3b2406df4..4e89e559de92d9d346dfd0f9d873ec3787692fa1 100644
|
| --- a/content/common/gpu/media/v4l2_video_device.h
|
| +++ b/content/common/gpu/media/v4l2_video_device.h
|
| @@ -9,6 +9,8 @@
|
| #ifndef CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DEVICE_H_
|
| #define CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DEVICE_H_
|
|
|
| +#include "ui/gl/gl_bindings.h"
|
| +
|
| namespace content {
|
|
|
| class V4L2Device {
|
| @@ -19,7 +21,7 @@ class V4L2Device {
|
| // Tries to create and initialize an appropriate V4L2Device object for the
|
| // current platform and returns a scoped_ptr<V4L2Device> on success else
|
| // returns NULL.
|
| - static scoped_ptr<V4L2Device> Create();
|
| + static scoped_ptr<V4L2Device> Create(EGLContext egl_context);
|
|
|
| // Parameters and return value are the same as for the standard ioctl() system
|
| // call.
|
| @@ -50,7 +52,23 @@ class V4L2Device {
|
| int flags,
|
| unsigned int offset) = 0;
|
| virtual void Munmap(void* addr, unsigned int len) = 0;
|
| +
|
| + // Does all the initialization of V4L2Device, returns true on success.
|
| + virtual bool Initialize() = 0;
|
| +
|
| + // This method is used to create the EglImage since each V4L2Device
|
| + // may have its own format. The texture_id is used to bind the
|
| + // texture to the created eglImage. buffer_index can be used to associate
|
| + // the created EglImage by the underlying V4L2Device implementation.
|
| + virtual EGLImageKHR CreateEGLImage(EGLDisplay egl_display,
|
| + EGLint attrib[],
|
| + unsigned int texture_id,
|
| + unsigned int buffer_index) = 0;
|
| +
|
| + // This method returns the supported texture target for the V4L2Device.
|
| + virtual unsigned int GetTextureTarget() = 0;
|
| };
|
| +
|
| } // namespace content
|
|
|
| #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DEVICE_H_
|
|
|