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

Unified Diff: media/base/video_capture_types.h

Issue 1064963002: VideoCapture: add support for GpuMemoryBuffer allocation and lifetime mgmt in VideoCaptureBufferPool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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_

Powered by Google App Engine
This is Rietveld 408576698