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..96719a1b11377ebd200211740cadbaee12e9226d 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,6 +52,13 @@ class V4L2Device { |
int flags, |
unsigned int offset) = 0; |
virtual void Munmap(void* addr, unsigned int len) = 0; |
+ |
+ virtual EGLImageKHR CreateEGLImage(EGLDisplay egl_display, |
Ami GONE FROM CHROMIUM
2014/02/07 09:09:30
Need to document these methods & parameters.
I'm e
shivdasp
2014/02/10 13:31:17
This method exists because of the difference in ho
|
+ EGLint attrib[], |
+ unsigned int texture_id, |
+ unsigned int buffer_index) = 0; |
+ |
+ virtual unsigned int GetTextureTarget() = 0; |
}; |
} // namespace content |