New resolution change policies for desktop and tab capture.
commitf79202747a089a00f653e5827409c779395bda70
authormiu <miu@chromium.org>
Sat, 9 May 2015 22:17:15 +0000 (9 15:17 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 9 May 2015 22:17:45 +0000 (9 22:17 +0000)
treed2818030a1838573579d94e5727cb29786855b88
parent238eaa368547ea4a87f5ea605c927e9013d3da92
New resolution change policies for desktop and tab capture.

This change replaces the "fixed" versus "variable" resolution change
policies with a 3-tier set: fixed, variable with fixed aspect ratio, and
variable at any aspect ratio.

This allows users of the desktop and tab capture APIs to specify minimum
and maximum resolutions, and from those, a resolution change policy is
determined.  The policy is used by the desktop and tab capture
implementation to activate or disable sender-side letterboxing of
screen-capture content.

BUG=473336
NOPRESUBMIT=true
NOTRY=true

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

Cr-Commit-Position: refs/heads/master@{#329056}
18 files changed:
content/browser/media/capture/content_video_capture_device_core.cc
content/browser/media/capture/desktop_capture_device.cc
content/browser/renderer_host/media/video_capture_host.cc
content/renderer/media/media_stream_video_capture_source_unittest.cc
content/renderer/media/media_stream_video_capturer_source.cc
content/renderer/media/media_stream_video_capturer_source.h
content/renderer/media/media_stream_video_source.cc
content/renderer/media/media_stream_video_source.h
content/renderer/media/mock_media_stream_video_source.cc
content/renderer/media/mock_media_stream_video_source.h
content/renderer/media/webrtc/media_stream_remote_video_source.cc
content/renderer/media/webrtc/media_stream_remote_video_source.h
content/renderer/media/webrtc/video_destination_handler.cc
content/renderer/media/webrtc/video_destination_handler.h
content/renderer/pepper/pepper_media_stream_video_track_host.cc
content/renderer/pepper/pepper_media_stream_video_track_host.h
media/base/video_capture_types.cc
media/base/video_capture_types.h