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

Issue 1617243005: Apply new-style constraints to video_source. (Closed)

Created:
4 years, 11 months ago by hta - Chromium
Modified:
4 years, 10 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, jam, mcasas+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-blink_chromium.org, philipj_slow, posciak+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Apply new-style constraints to video_source. This CL reimplements the algorithms presently used for selection in terms of the new form constraints. A new mock constraints factory is also added. BUG=543997 Committed: https://crrev.com/b9487f883540ecb571ca4c6163753770db6b8639 Cr-Commit-Position: refs/heads/master@{#372082}

Patch Set 1 : Passing all unit tests. #

Patch Set 2 : Add <vector> include #

Total comments: 41

Patch Set 3 : Review comments addressed #

Total comments: 14

Patch Set 4 : Addressing review comments #

Patch Set 5 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+436 lines, -308 lines) Patch
M content/content_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/media_stream_video_source.cc View 1 2 3 15 chunks +142 lines, -169 lines 0 comments Download
M content/renderer/media/media_stream_video_source_unittest.cc View 1 2 3 23 chunks +115 lines, -120 lines 0 comments Download
A content/renderer/media/mock_constraint_factory.h View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
A content/renderer/media/mock_constraint_factory.cc View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
M content/test/data/media/getusermedia.html View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaConstraintsTest.cpp View 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebMediaConstraints.cpp View 1 2 3 4 5 chunks +71 lines, -16 lines 0 comments Download
M third_party/WebKit/public/platform/WebMediaConstraints.h View 1 2 3 4 7 chunks +21 lines, -1 line 0 comments Download

Messages

Total messages: 39 (19 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1617243005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1617243005/1
4 years, 11 months ago (2016-01-22 15:23:13 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/56195)
4 years, 11 months ago (2016-01-22 15:35:19 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1617243005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1617243005/20001
4 years, 11 months ago (2016-01-22 15:37:35 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/114860)
4 years, 11 months ago (2016-01-22 15:58:01 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1617243005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1617243005/40001
4 years, 11 months ago (2016-01-26 11:57:54 UTC) #12
hta - Chromium
I think it's time to review. Worthy of discussion: - I scattered a number of ...
4 years, 11 months ago (2016-01-26 11:59:30 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/12845) linux_android_rel_ng on ...
4 years, 11 months ago (2016-01-26 12:15:38 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1617243005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1617243005/60001
4 years, 11 months ago (2016-01-26 13:48:04 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-26 15:36:22 UTC) #19
mcasas
Did a drive-by and had a few comments, mostly Chromium-isms. Don't we have WebKit LayoutTests ...
4 years, 11 months ago (2016-01-26 16:08:02 UTC) #21
jochen (gone - plz use gerrit)
seems like mcases has this covered https://codereview.chromium.org/1617243005/diff/60001/content/renderer/media/media_stream_video_source.cc File content/renderer/media/media_stream_video_source.cc (right): https://codereview.chromium.org/1617243005/diff/60001/content/renderer/media/media_stream_video_source.cc#newcode147 content/renderer/media/media_stream_video_source.cc:147: (constraints.width.hasMax() && constraints.width.max() ...
4 years, 11 months ago (2016-01-26 17:10:14 UTC) #24
hta - Chromium
PTAL - addressed comments. https://codereview.chromium.org/1617243005/diff/60001/content/renderer/media/media_stream_video_source.cc File content/renderer/media/media_stream_video_source.cc (right): https://codereview.chromium.org/1617243005/diff/60001/content/renderer/media/media_stream_video_source.cc#newcode52 content/renderer/media/media_stream_video_source.cc:52: // const char kGooglePrefix[] = ...
4 years, 11 months ago (2016-01-26 19:35:25 UTC) #25
mcasas
LGTM with some comments. https://codereview.chromium.org/1617243005/diff/80001/content/renderer/media/media_stream_video_source.cc File content/renderer/media/media_stream_video_source.cc (right): https://codereview.chromium.org/1617243005/diff/80001/content/renderer/media/media_stream_video_source.cc#newcode139 content/renderer/media/media_stream_video_source.cc:139: failing_constraint_name = constraints.width.name(); {} here ...
4 years, 11 months ago (2016-01-28 01:57:57 UTC) #26
hta - Chromium
I think all comments are addressed now. https://codereview.chromium.org/1617243005/diff/80001/content/renderer/media/media_stream_video_source.cc File content/renderer/media/media_stream_video_source.cc (right): https://codereview.chromium.org/1617243005/diff/80001/content/renderer/media/media_stream_video_source.cc#newcode139 content/renderer/media/media_stream_video_source.cc:139: failing_constraint_name = ...
4 years, 11 months ago (2016-01-28 08:51:40 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1617243005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1617243005/100001
4 years, 11 months ago (2016-01-28 08:51:41 UTC) #29
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/14095) cast_shell_linux on ...
4 years, 11 months ago (2016-01-28 08:55:21 UTC) #31
jochen (gone - plz use gerrit)
lgtm
4 years, 11 months ago (2016-01-28 08:55:40 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1617243005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1617243005/120001
4 years, 11 months ago (2016-01-28 10:39:27 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 10 months ago (2016-01-28 13:54:26 UTC) #37
commit-bot: I haz the power
4 years, 10 months ago (2016-01-28 13:55:34 UTC) #39
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b9487f883540ecb571ca4c6163753770db6b8639
Cr-Commit-Position: refs/heads/master@{#372082}

Powered by Google App Engine
This is Rietveld 408576698