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

Issue 1124263004: New resolution change policies for desktop and tab capture. (Closed)

Created:
5 years, 7 months ago by miu
Modified:
5 years, 7 months ago
Reviewers:
bbudge, mcasas, DaleCurtis
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/f79202747a089a00f653e5827409c779395bda70 Cr-Commit-Position: refs/heads/master@{#329056}

Patch Set 1 : #

Total comments: 3

Patch Set 2 : Inlined operator==(). #

Total comments: 19

Patch Set 3 : Addressed comments from mcasas. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -36 lines) Patch
M content/browser/media/capture/content_video_capture_device_core.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/media/capture/desktop_capture_device.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/video_capture_host.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_video_capture_source_unittest.cc View 3 chunks +96 lines, -7 lines 0 comments Download
M content/renderer/media/media_stream_video_capturer_source.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/media_stream_video_capturer_source.cc View 1 2 3 chunks +136 lines, -4 lines 0 comments Download
M content/renderer/media/media_stream_video_source.h View 1 2 3 chunks +14 lines, -9 lines 0 comments Download
M content/renderer/media/media_stream_video_source.cc View 4 chunks +8 lines, -2 lines 0 comments Download
M content/renderer/media/mock_media_stream_video_source.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/mock_media_stream_video_source.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/webrtc/media_stream_remote_video_source.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/webrtc/media_stream_remote_video_source.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/webrtc/video_destination_handler.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/webrtc/video_destination_handler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper/pepper_media_stream_video_track_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper/pepper_media_stream_video_track_host.cc View 1 chunk +1 line, -0 lines 2 comments Download
M media/base/video_capture_types.h View 1 2 3 chunks +25 lines, -9 lines 0 comments Download
M media/base/video_capture_types.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 32 (11 generated)
miu
dalecurtis: OWNERS approval please. mcasas: Please review. Thanks in advance for your time! :) https://codereview.chromium.org/1124263004/diff/20001/media/base/video_capture_types.h ...
5 years, 7 months ago (2015-05-07 00:54:22 UTC) #3
DaleCurtis
https://codereview.chromium.org/1124263004/diff/20001/media/base/video_capture_types.h File media/base/video_capture_types.h (right): https://codereview.chromium.org/1124263004/diff/20001/media/base/video_capture_types.h#newcode76 media/base/video_capture_types.h:76: bool operator==(const VideoCaptureFormat& other) const; On 2015/05/07 00:54:22, miu ...
5 years, 7 months ago (2015-05-07 01:13:39 UTC) #4
miu
https://codereview.chromium.org/1124263004/diff/20001/media/base/video_capture_types.h File media/base/video_capture_types.h (right): https://codereview.chromium.org/1124263004/diff/20001/media/base/video_capture_types.h#newcode76 media/base/video_capture_types.h:76: bool operator==(const VideoCaptureFormat& other) const; On 2015/05/07 01:13:38, DaleCurtis ...
5 years, 7 months ago (2015-05-07 02:49:19 UTC) #5
mcasas
Few comments and a question about usage of RESOLUTION_POLICY_FIXED_ASPECT_RATIO. https://codereview.chromium.org/1124263004/diff/40001/content/browser/renderer_host/media/video_capture_host.cc File content/browser/renderer_host/media/video_capture_host.cc (right): https://codereview.chromium.org/1124263004/diff/40001/content/browser/renderer_host/media/video_capture_host.cc#newcode182 content/browser/renderer_host/media/video_capture_host.cc:182: ...
5 years, 7 months ago (2015-05-07 22:10:00 UTC) #6
miu
Thanks. Addressed your comments: https://codereview.chromium.org/1124263004/diff/40001/content/browser/renderer_host/media/video_capture_host.cc File content/browser/renderer_host/media/video_capture_host.cc (right): https://codereview.chromium.org/1124263004/diff/40001/content/browser/renderer_host/media/video_capture_host.cc#newcode182 content/browser/renderer_host/media/video_capture_host.cc:182: << " (" << (params.resolution_change_policy ...
5 years, 7 months ago (2015-05-08 06:43:34 UTC) #7
miu
teravest: Need OWNERS stamp for content/renderer/pepper/*
5 years, 7 months ago (2015-05-08 06:44:19 UTC) #9
miu
-teravest +bbudge: Need OWNERS stamp for content/renderer/pepper/*
5 years, 7 months ago (2015-05-08 06:45:26 UTC) #11
bbudge
https://codereview.chromium.org/1124263004/diff/60001/content/renderer/pepper/pepper_media_stream_video_track_host.cc File content/renderer/pepper/pepper_media_stream_video_track_host.cc (right): https://codereview.chromium.org/1124263004/diff/60001/content/renderer/pepper/pepper_media_stream_video_track_host.cc#newcode436 content/renderer/pepper/pepper_media_stream_video_track_host.cc:436: const blink::WebMediaConstraints& constraints, Should we be doing something with ...
5 years, 7 months ago (2015-05-08 17:12:48 UTC) #12
miu
https://codereview.chromium.org/1124263004/diff/60001/content/renderer/pepper/pepper_media_stream_video_track_host.cc File content/renderer/pepper/pepper_media_stream_video_track_host.cc (right): https://codereview.chromium.org/1124263004/diff/60001/content/renderer/pepper/pepper_media_stream_video_track_host.cc#newcode436 content/renderer/pepper/pepper_media_stream_video_track_host.cc:436: const blink::WebMediaConstraints& constraints, On 2015/05/08 17:12:48, bbudge wrote: > ...
5 years, 7 months ago (2015-05-08 18:07:18 UTC) #13
mcasas
Capture classes LGTM provided we use RESOLUTION_POLICY_FIXED_ASPECT_RATIO in imminent CLs. https://codereview.chromium.org/1124263004/diff/40001/content/browser/renderer_host/media/video_capture_host.cc File content/browser/renderer_host/media/video_capture_host.cc (right): https://codereview.chromium.org/1124263004/diff/40001/content/browser/renderer_host/media/video_capture_host.cc#newcode182 ...
5 years, 7 months ago (2015-05-08 18:38:42 UTC) #14
bbudge
content/renderer/pepper LGTM
5 years, 7 months ago (2015-05-08 19:28:24 UTC) #15
DaleCurtis
lgtm
5 years, 7 months ago (2015-05-08 20:57:22 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1124263004/60001
5 years, 7 months ago (2015-05-08 21:11:42 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/55513)
5 years, 7 months ago (2015-05-09 01:23:09 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1124263004/60001
5 years, 7 months ago (2015-05-09 01:48:38 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
5 years, 7 months ago (2015-05-09 06:04:00 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1124263004/60001
5 years, 7 months ago (2015-05-09 18:59:17 UTC) #26
miu
FYI--Landing with NOPRESUBMIT=true and NOTRY=true since the CQ has been experiencing problems (since Friday) that ...
5 years, 7 months ago (2015-05-09 22:13:39 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1124263004/60001
5 years, 7 months ago (2015-05-09 22:14:54 UTC) #30
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 7 months ago (2015-05-09 22:17:27 UTC) #31
commit-bot: I haz the power
5 years, 7 months ago (2015-05-09 22:18:29 UTC) #32
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f79202747a089a00f653e5827409c779395bda70
Cr-Commit-Position: refs/heads/master@{#329056}

Powered by Google App Engine
This is Rietveld 408576698