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

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: Update. Created 8 years, 2 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/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 f9dd21606634c292e0f9948618c62990c384343a..978da853145ea3aead857df75cd95c3f6bb5c3fc 100644
--- a/content/renderer/media/local_video_capture.cc
+++ b/content/renderer/media/local_video_capture.cc
@@ -126,8 +126,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;

Powered by Google App Engine
This is Rietveld 408576698