diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-05 07:48:24 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-05 07:48:24 +0000 |
commit | 240a73b7e957625027a09cd2f3b38f0684c32a3d (patch) | |
tree | 0afd21e931ee613cd811c03bfdcbae39d5f6cd68 /content/renderer | |
parent | 518b552d178ab8a8e0b776faf97a41361fe9d765 (diff) | |
download | chromium_src-240a73b7e957625027a09cd2f3b38f0684c32a3d.zip chromium_src-240a73b7e957625027a09cd2f3b38f0684c32a3d.tar.gz chromium_src-240a73b7e957625027a09cd2f3b38f0684c32a3d.tar.bz2 |
Enable is_screencast flag for WebRTC screen capture
Setting the is_screencast flag to RtcVideoCapturer for screen
capturer to support native screen resolution.
TEST=Enable screen capture API in about:flags and try it on
https://simpl.info/screencapture/
BUG=180047
Review URL: https://chromiumcodereview.appspot.com/12393063
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186131 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer')
-rw-r--r-- | content/renderer/media/media_stream_dependency_factory.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/content/renderer/media/media_stream_dependency_factory.cc b/content/renderer/media/media_stream_dependency_factory.cc index a421369..c93e2f5 100644 --- a/content/renderer/media/media_stream_dependency_factory.cc +++ b/content/renderer/media/media_stream_dependency_factory.cc @@ -253,8 +253,11 @@ void MediaStreamDependencyFactory::CreateNativeMediaSources( NOTIMPLEMENTED(); continue; } - const bool is_screencast = (source_data->device_info().device.type == - content::MEDIA_TAB_VIDEO_CAPTURE); + const bool is_screencast = + source_data->device_info().device.type == + content::MEDIA_TAB_VIDEO_CAPTURE || + source_data->device_info().device.type == + content::MEDIA_SCREEN_VIDEO_CAPTURE; source_data->SetVideoSource( CreateLocalVideoSource(source_data->device_info().session_id, is_screencast, |