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

Unified Diff: content/browser/media/capture/content_video_capture_device_core.cc

Issue 1154153003: Relanding 1143663007: VideoFrame: Separate Pixel Format from Storage Type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added NV12 support in CrOS Created 5 years, 7 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: content/browser/media/capture/content_video_capture_device_core.cc
diff --git a/content/browser/media/capture/content_video_capture_device_core.cc b/content/browser/media/capture/content_video_capture_device_core.cc
index 7c0319997f852a29264ae8c62fd91a2644e23065..051aec103485388a28bfb905e14e0c96d87848c4 100644
--- a/content/browser/media/capture/content_video_capture_device_core.cc
+++ b/content/browser/media/capture/content_video_capture_device_core.cc
@@ -118,15 +118,13 @@ bool ThreadSafeCaptureOracle::ObserveEventAndDecideCapture(
// NATIVE_TEXTURE frames wrap a texture mailbox, which we don't have at the
// moment. We do not construct those frames.
if (params_.requested_format.pixel_format != media::PIXEL_FORMAT_TEXTURE) {
- *storage = media::VideoFrame::WrapExternalPackedMemory(
+ *storage = media::VideoFrame::WrapExternalData(
media::VideoFrame::I420,
coded_size,
gfx::Rect(visible_size),
visible_size,
static_cast<uint8*>(output_buffer->data()),
output_buffer->size(),
- base::SharedMemory::NULLHandle(),
- 0,
base::TimeDelta());
DCHECK(*storage);
}
« no previous file with comments | « cc/resources/video_resource_updater.cc ('k') | content/browser/renderer_host/media/video_capture_buffer_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698