Index: media/base/video_capture_types.h |
diff --git a/media/base/video_capture_types.h b/media/base/video_capture_types.h |
index 817e94298cb9d4fbb31ea3cbf874550dc4577b84..081ba74530ee2f3e1624d9df2a07b66d405f6727 100644 |
--- a/media/base/video_capture_types.h |
+++ b/media/base/video_capture_types.h |
@@ -29,6 +29,7 @@ enum VideoPixelFormat { |
PIXEL_FORMAT_ARGB, |
PIXEL_FORMAT_MJPEG, |
PIXEL_FORMAT_TEXTURE, // Capture format as a GL texture. |
+ PIXEL_FORMAT_GPUMEMORYBUFFER, |
PIXEL_FORMAT_UNKNOWN, // Color format not set. |
PIXEL_FORMAT_MAX, |
}; |
@@ -98,6 +99,14 @@ class MEDIA_EXPORT VideoCaptureParams { |
ResolutionChangePolicy resolution_change_policy; |
}; |
+// A class to wrap access to an udnerlying data pointer. Derived classes can |
miu
2015/04/15 19:12:40
s/udnerlying/underlying/
mcasas
2015/04/16 03:11:22
Done.
|
+// support Map()/Unmap() semantics. |
+class MEDIA_EXPORT DataHandle { |
+ public: |
+ virtual ~DataHandle() {} |
+ virtual void* data() = 0; |
+}; |
+ |
} // namespace media |
#endif // MEDIA_BASE_VIDEO_CAPTURE_TYPES_H_ |