summaryrefslogtreecommitdiffstats
path: root/media/base/video_frame.h
diff options
context:
space:
mode:
authorperkj@chromium.org <perkj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-09 09:14:47 +0000
committerperkj@chromium.org <perkj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-09 09:14:47 +0000
commit5cce3d0868af298aef3fccbba450cd521ec6f42a (patch)
tree302c039e84fc9a1b20a36e8507c23d134bef339f /media/base/video_frame.h
parent737191ee7839286e6531db2564482d8b4762a631 (diff)
downloadchromium_src-5cce3d0868af298aef3fccbba450cd521ec6f42a.zip
chromium_src-5cce3d0868af298aef3fccbba450cd521ec6f42a.tar.gz
chromium_src-5cce3d0868af298aef3fccbba450cd521ec6f42a.tar.bz2
Make sure natural_size is set when a frame is cropped.
If the natural size is not set, the <video> tag will set its properties videoHeight and videoWidth to the original, uncropped width and height.If that is used for deciding the <video> render size- the aspect ratio will be wrong. This cl allow setting the natural_size as well as the visible_rect when calling media::VideoFrame::WrapVideoFrame. BUG=349450 R=fischman@chromium.org, tommi@chromium.org Review URL: https://codereview.chromium.org/189513004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255839 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/video_frame.h')
-rw-r--r--media/base/video_frame.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index 5684243..0c69627 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -155,6 +155,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
static scoped_refptr<VideoFrame> WrapVideoFrame(
const scoped_refptr<VideoFrame>& frame,
const gfx::Rect& visible_rect,
+ const gfx::Size& natural_size,
const base::Closure& no_longer_needed_cb);
// Creates a frame which indicates end-of-stream.