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

Unified Diff: media/base/video_frame.cc

Issue 183113004: Make sure MediaStreamVideoSource support cropping. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Crop with origin 0,0 and temporary disable failing test. Created 6 years, 9 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_frame.cc
diff --git a/media/base/video_frame.cc b/media/base/video_frame.cc
index b3458a5954992b542094c217e46011d77576f7b5..bccbf0b96e3f36875f33749aed0c02b7aab845e8 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -180,9 +180,10 @@ scoped_refptr<VideoFrame> VideoFrame::WrapExternalYuvData(
// static
scoped_refptr<VideoFrame> VideoFrame::WrapVideoFrame(
const scoped_refptr<VideoFrame>& frame,
+ const gfx::Rect& visible_rect,
const base::Closure& no_longer_needed_cb) {
scoped_refptr<VideoFrame> wrapped_frame(new VideoFrame(
- frame->format(), frame->coded_size(), frame->visible_rect(),
+ frame->format(), frame->coded_size(), visible_rect,
frame->natural_size(), frame->GetTimestamp(), frame->end_of_stream()));
for (size_t i = 0; i < NumPlanes(frame->format()); ++i) {

Powered by Google App Engine
This is Rietveld 408576698