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

Issue 976233002: MediaStreamVideo*/VideoTrackAdapter and RTCVideoRenderer (small) cleanup (Closed)

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

Description

MediaStreamVideo*/VideoTrackAdapter and RTCVideoRenderer (small) cleanup Some more cleanup. In this CL: - VideoCapturerDelegate::OnStateUpdateOnRenderThread does not need OnRenderThread suffix since it lives on Render Thread exclusively. Removed the suffix. - cosmetic changes (removed unnecessary {}, updated comments). - media_stream_video_source.cc struct SourceVideoResolution does not need to be named, defined anonymously together with the array it's used for, |kVideoResolutions|. - Some for loops are substituted with range-based versions. - Some member vars are made const. - Some methods are reordered to follow class declarations. - MediaStreamVideoTrack::thread_checker_ is unnecessary and |main_render_thread_checker_| from parent class can be used instead. Similar story for WebRtcLocalAudioTrack. - MediaStreamVideoTrack::FrameDeliverer uses void* to identify a MediaStreamSink, changed to typedef MediaStreamSink* VideoSinkId and used in this class (IMHO this is more readable). All these happened to be noticeable as I was re-reading the code, some kind of state-of-the-pipeline review :) [1] https://code.google.com/p/chromium/codesearch#chromium/src/remoting/host/audio_pump.cc&l=135 BUG=440843 TBR=avi@chromium.org (Avi, I'm TBRing you since it's just removing an unused 2-class forward declaration @ content/public/renderer/media_stream_video_sink.h) Committed: https://crrev.com/fc662d105b0365b58f8880034b0b277506866d59 Cr-Commit-Position: refs/heads/master@{#320640}

Patch Set 1 : #

Total comments: 14

Patch Set 2 : wolenetz@ and emircan@ comments #

Total comments: 6

Patch Set 3 : tommi@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -182 lines) Patch
M content/public/renderer/media_stream_video_sink.h View 1 chunk +0 lines, -5 lines 0 comments Download
M content/renderer/media/media_stream_track.h View 1 3 chunks +3 lines, -4 lines 0 comments Download
M content/renderer/media/media_stream_video_capture_source_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_video_capturer_source.h View 3 chunks +4 lines, -5 lines 0 comments Download
M content/renderer/media/media_stream_video_capturer_source.cc View 1 2 9 chunks +30 lines, -30 lines 0 comments Download
M content/renderer/media/media_stream_video_source.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/media_stream_video_track.h View 1 2 chunks +2 lines, -6 lines 0 comments Download
M content/renderer/media/media_stream_video_track.cc View 1 12 chunks +31 lines, -29 lines 0 comments Download
M content/renderer/media/rtc_video_renderer.h View 1 2 chunks +13 lines, -12 lines 0 comments Download
M content/renderer/media/rtc_video_renderer.cc View 2 chunks +3 lines, -6 lines 0 comments Download
M content/renderer/media/video_track_adapter.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/video_track_adapter.cc View 10 chunks +73 lines, -76 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_track.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_track.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (20 generated)
mcasas
emircan@ PTAL
5 years, 9 months ago (2015-03-06 02:55:18 UTC) #7
mcasas
emircan@ ping wolenetz@ RS OWNERS/PTAL/Fwd please.
5 years, 9 months ago (2015-03-09 16:55:30 UTC) #17
emircan
lgtm % the points below. https://codereview.chromium.org/976233002/diff/260001/content/renderer/media/media_stream_video_capturer_source.cc File content/renderer/media/media_stream_video_capturer_source.cc (right): https://codereview.chromium.org/976233002/diff/260001/content/renderer/media/media_stream_video_capturer_source.cc#newcode27 content/renderer/media/media_stream_video_capturer_source.cc:27: {320, 180}}; I would ...
5 years, 9 months ago (2015-03-10 01:40:06 UTC) #18
mcasas
wolenetz@ PTAL Notwithstanding ermican@ comments, which I'll take in before landing, of course.
5 years, 9 months ago (2015-03-10 21:42:30 UTC) #19
wolenetz
rslgtm % nits I really think you need an RTC OWNER to CR at least ...
5 years, 9 months ago (2015-03-11 23:37:37 UTC) #20
wolenetz
On 2015/03/11 23:37:37, wolenetz wrote: > rslgtm % nits I really think you need an ...
5 years, 9 months ago (2015-03-11 23:38:59 UTC) #21
mcasas
tommi@, PTAL at WebRTC related parts (forwarded by wolenetz@) https://codereview.chromium.org/976233002/diff/260001/content/public/renderer/media_stream_video_sink.h File content/public/renderer/media_stream_video_sink.h (right): https://codereview.chromium.org/976233002/diff/260001/content/public/renderer/media_stream_video_sink.h#newcode1 content/public/renderer/media_stream_video_sink.h:1: ...
5 years, 9 months ago (2015-03-13 01:09:34 UTC) #23
mcasas
tommi@: PTAL at WebRTC related parts (forwarded by wolenetz@). avi@: content/public/renderer/media_stream_video_sink.h
5 years, 9 months ago (2015-03-13 01:10:39 UTC) #25
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/976233002/diff/300001/content/renderer/media/media_stream_video_capturer_source.cc File content/renderer/media/media_stream_video_capturer_source.cc (right): https://codereview.chromium.org/976233002/diff/300001/content/renderer/media/media_stream_video_capturer_source.cc#newcode21 content/renderer/media/media_stream_video_capturer_source.cc:21: } kVideoResolutions[] = {{1920, 1080}, instead of applying ...
5 years, 9 months ago (2015-03-13 22:04:46 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/976233002/340001
5 years, 9 months ago (2015-03-14 03:37:59 UTC) #30
mcasas
https://codereview.chromium.org/976233002/diff/300001/content/renderer/media/media_stream_video_capturer_source.cc File content/renderer/media/media_stream_video_capturer_source.cc (right): https://codereview.chromium.org/976233002/diff/300001/content/renderer/media/media_stream_video_capturer_source.cc#newcode21 content/renderer/media/media_stream_video_capturer_source.cc:21: } kVideoResolutions[] = {{1920, 1080}, On 2015/03/13 22:04:46, tommi ...
5 years, 9 months ago (2015-03-14 03:38:49 UTC) #31
commit-bot: I haz the power
Committed patchset #3 (id:340001)
5 years, 9 months ago (2015-03-14 04:18:34 UTC) #32
commit-bot: I haz the power
5 years, 9 months ago (2015-03-14 04:19:18 UTC) #33
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fc662d105b0365b58f8880034b0b277506866d59
Cr-Commit-Position: refs/heads/master@{#320640}

Powered by Google App Engine
This is Rietveld 408576698