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=441836
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)
Review URL: https://codereview.chromium.org/
976233002
Cr-Commit-Position: refs/heads/master@{#320640}