MediaStreamVideoSource: don't crop NATIVE_TEXTURE-backed frames.
commitd869cf2c8da8b6ffbdcc78b16659a641a6581cba
authorperkj@chromium.org <perkj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 14 Apr 2014 12:25:48 +0000 (14 12:25 +0000)
committerperkj@chromium.org <perkj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 14 Apr 2014 12:25:48 +0000 (14 12:25 +0000)
tree4dfd646784b734c8d4d6dd3ccda15f5edead118d
parentf1c8312aad8aebd7382d9e00a46343bed43e41ea
MediaStreamVideoSource: don't crop NATIVE_TEXTURE-backed frames.

The use of VideoFrame::WrapVideoFrame() is not supported for NATIVE_TEXTURES, The problem is tracked in crbug/362521

Also:
- use Rect::ClampToCenteredSize() instead of reinventing the wheel.

BUG=362007,362521

Review URL: https://codereview.chromium.org/233733006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263614 0039d316-1c4b-4281-b951-d872f2087c98
content/renderer/media/media_stream_video_source.cc
media/base/video_frame.cc