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

Unified Diff: media/base/video_capture_types.cc

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.cc
diff --git a/media/base/video_capture_types.cc b/media/base/video_capture_types.cc
index 1528017456a35c43dde6abe8ee752c2e8a4156d6..b9e3aa78a7eed73e987711c3507a5c72d7d6b883 100644
--- a/media/base/video_capture_types.cc
+++ b/media/base/video_capture_types.cc
@@ -49,6 +49,7 @@ size_t VideoCaptureFormat::ImageAllocationSize() const {
break;
case PIXEL_FORMAT_RGB32:
case PIXEL_FORMAT_ARGB:
+ case PIXEL_FORMAT_GPUMEMORYBUFFER:
result_frame_size *= 4;
break;
case PIXEL_FORMAT_MJPEG:
@@ -95,6 +96,8 @@ std::string VideoCaptureFormat::PixelFormatToString(VideoPixelFormat format) {
return "YV12";
case PIXEL_FORMAT_TEXTURE:
return "TEXTURE";
+ case PIXEL_FORMAT_GPUMEMORYBUFFER:
miu 2015/04/15 19:12:40 This isn't a pixel format (and neither is TEXTURE)
mcasas 2015/04/16 03:11:22 Done.
+ return "GPUMEMORYBUFFER";
case PIXEL_FORMAT_MAX:
break;
}

Powered by Google App Engine
This is Rietveld 408576698