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

Unified Diff: content/renderer/media/local_video_capture.cc

Issue 11269017: Plumb through cropped output size for VideoFrame (Closed) Base URL: https://git.chromium.org/git/chromium/src@git-svn
Patch Set: Found the windows failure, and fixed it. Thanks akalin@ Created 8 years, 1 month 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
« no previous file with comments | « cc/yuv_video_draw_quad.cc ('k') | content/renderer/media/rtc_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/local_video_capture.cc
diff --git a/content/renderer/media/local_video_capture.cc b/content/renderer/media/local_video_capture.cc
index b08f2216fe1d335a458f361e684f4a540d37b3eb..f4bc3769d2fc5401139b245eab1a2db938bce136 100644
--- a/content/renderer/media/local_video_capture.cc
+++ b/content/renderer/media/local_video_capture.cc
@@ -128,8 +128,8 @@ void LocalVideoCapture::OnBufferReady(
gfx::Size natural_size(buf->width, buf->height);
scoped_refptr<media::VideoFrame> current_frame =
- media::VideoFrame::CreateFrame(media::VideoFrame::YV12,
- natural_size, natural_size,
+ media::VideoFrame::CreateFrame(media::VideoFrame::YV12, natural_size,
+ gfx::Rect(natural_size), natural_size,
buf->timestamp - base::Time());
uint8* buffer = buf->memory_pointer;
« no previous file with comments | « cc/yuv_video_draw_quad.cc ('k') | content/renderer/media/rtc_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698