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

Unified Diff: media/capture/content/thread_safe_capture_oracle.cc

Issue 1267883002: Pass GpuMemoryBuffer backed VideoFrame from browser to renderer processes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gmbtracker-multiple
Patch Set: Rebase Created 5 years, 4 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/capture/content/thread_safe_capture_oracle.cc
diff --git a/media/capture/content/thread_safe_capture_oracle.cc b/media/capture/content/thread_safe_capture_oracle.cc
index cbc49486943259042b4342d1406f38ee2ab73589..5bedc4a37bfdd76c5065cf88fffca25de1a86d32 100644
--- a/media/capture/content/thread_safe_capture_oracle.cc
+++ b/media/capture/content/thread_safe_capture_oracle.cc
@@ -119,7 +119,7 @@ bool ThreadSafeCaptureOracle::ObserveEventAndDecideCapture(
*storage = VideoFrame::WrapExternalData(
media::PIXEL_FORMAT_I420, coded_size, gfx::Rect(visible_size),
visible_size, static_cast<uint8*>(output_buffer->data()),
- output_buffer->size(), base::TimeDelta());
+ output_buffer->mapped_size(), base::TimeDelta());
DCHECK(*storage);
}
*callback =
« no previous file with comments | « content/renderer/media/video_capture_message_filter_unittest.cc ('k') | media/capture/video/fake_video_capture_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698