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

Issue 2742893003: Let getSettings() return the constrained track resolution, not source. (Closed)

Created:
3 years, 9 months ago by hta - Chromium
Modified:
3 years, 9 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, imcheng+watch_chromium.org, feature-media-reviews_chromium.org, posciak+watch_chromium.org, chfremer+watch_chromium.org, jam, avayvod+watch_chromium.org, tommyw+watchlist_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, jasonroberts+watch_google.com, blink-reviews, xjz+watch_chromium.org, isheriff+watch_chromium.org, mcasas+watch+mediastream_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Let getSettings() return the constrained track resolution, not source. This lets MediaStreamTrack.getSettings() on a track that has been limited in size due to constraints return the constrained size rather than the original size. Test note: Due to limits of the mock devices, tests don't work with content_shell. They have been verified to work in a browser, and upstreamed to web-platform-tests. https://github.com/w3c/web-platform-tests/pull/5114 BUG=626595 Review-Url: https://codereview.chromium.org/2742893003 Cr-Commit-Position: refs/heads/master@{#457064} Committed: https://chromium.googlesource.com/chromium/src/+/977056bc7c6be8e98eb98f9702b3f4ed3eb992dd

Patch Set 1 #

Patch Set 2 : Use common target size calculation #

Total comments: 5

Patch Set 3 : Added bug # for non-working test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -42 lines) Patch
M content/renderer/media/media_stream_video_source.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_video_track.h View 2 chunks +11 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_video_track.cc View 1 chunk +4 lines, -7 lines 0 comments Download
M content/renderer/media/video_track_adapter.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M content/renderer/media/video_track_adapter.cc View 1 2 chunks +46 lines, -35 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-getSettings.html View 1 2 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (13 generated)
hta - Chromium
I think this is ready for review.
3 years, 9 months ago (2017-03-13 11:43:55 UTC) #7
Guido Urdaneta
https://codereview.chromium.org/2742893003/diff/20001/content/renderer/media/media_stream_video_track.h File content/renderer/media/media_stream_video_track.h (right): https://codereview.chromium.org/2742893003/diff/20001/content/renderer/media/media_stream_video_track.h#newcode66 content/renderer/media/media_stream_video_track.h:66: void SetTargetSize(int width, int height) { Is there a ...
3 years, 9 months ago (2017-03-13 14:12:37 UTC) #8
hta - Chromium
Dialogue... https://codereview.chromium.org/2742893003/diff/20001/content/renderer/media/media_stream_video_track.h File content/renderer/media/media_stream_video_track.h (right): https://codereview.chromium.org/2742893003/diff/20001/content/renderer/media/media_stream_video_track.h#newcode66 content/renderer/media/media_stream_video_track.h:66: void SetTargetSize(int width, int height) { On 2017/03/13 ...
3 years, 9 months ago (2017-03-13 15:04:35 UTC) #9
Guido Urdaneta
lgtm https://codereview.chromium.org/2742893003/diff/20001/third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-getSettings.html File third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-getSettings.html (right): https://codereview.chromium.org/2742893003/diff/20001/third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-getSettings.html#newcode73 third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-getSettings.html:73: // assert_equals(settings.width, settings1.width / 2, On 2017/03/13 15:04:35, ...
3 years, 9 months ago (2017-03-13 15:08:24 UTC) #10
hta - Chromium
Due to timing issues (away from the computer for a few days), I'll commit this ...
3 years, 9 months ago (2017-03-14 08:59:27 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2742893003/40001
3 years, 9 months ago (2017-03-14 08:59:53 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/384747)
3 years, 9 months ago (2017-03-14 09:05:55 UTC) #16
hta - Chromium
Adding tommi for owner approval
3 years, 9 months ago (2017-03-14 09:13:18 UTC) #18
hta - Chromium
Submitting since Guido is now in owners.
3 years, 9 months ago (2017-03-15 11:43:40 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2742893003/40001
3 years, 9 months ago (2017-03-15 11:44:16 UTC) #21
commit-bot: I haz the power
3 years, 9 months ago (2017-03-15 13:06:24 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/977056bc7c6be8e98eb98f9702b3...

Powered by Google App Engine
This is Rietveld 408576698