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

Issue 2902733003: RemoteMediaStreamImpl using WebRtcMediaStreamTrackMap. (Closed)

Created:
3 years, 7 months ago by hbos_chromium
Modified:
3 years, 6 months ago
Reviewers:
Guido Urdaneta
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, chfremer+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

RemoteMediaStreamImpl using WebRtcMediaStreamTrackMap. Make the RemoteMediaStreamImpl, which represent remote streams, use the WebRtcMediaStreamTrackMap and AdapterRef classes for the handling of initializing, getting and uninitializing remote tracks. This is one step closer to decoupling streams and tracks. PeerConnectionDependencyFactory's GetWebRtcSignalingThread is only callable from the main thread, and during initialization of the map this thread does not exist yet. Since the webrtc signaling thread was only used for DCHECKs and getting ahold of the webrtc signaling thread would require significant refactoring, the DCHECKs are updated to check that we are not on the main thread instead of checking that we are on the webrtc signaling thread. This is good enough for our purposes. BUG=705901, 700916 Review-Url: https://codereview.chromium.org/2902733003 Cr-Commit-Position: refs/heads/master@{#478943} Committed: https://chromium.googlesource.com/chromium/src/+/7ff812ea2691302e2307ff0e5c645cce989d420b

Patch Set 1 #

Total comments: 20

Patch Set 2 : Addressed comments #

Patch Set 3 : "Must be invoked on the main thread." #

Messages

Total messages: 39 (32 generated)
hbos_chromium
Please take a look, guidou
3 years, 6 months ago (2017-06-12 11:07:42 UTC) #27
Guido Urdaneta
https://codereview.chromium.org/2902733003/diff/140001/content/renderer/media/remote_media_stream_impl.cc File content/renderer/media/remote_media_stream_impl.cc (right): https://codereview.chromium.org/2902733003/diff/140001/content/renderer/media/remote_media_stream_impl.cc#newcode90 content/renderer/media/remote_media_stream_impl.cc:90: AdapterRefMap new_adapter_refs = GetAdapterRefMapFromWebRtcStream( Is there a race if ...
3 years, 6 months ago (2017-06-12 14:25:29 UTC) #30
hbos_chromium
PTAL guidou https://codereview.chromium.org/2902733003/diff/140001/content/renderer/media/remote_media_stream_impl.cc File content/renderer/media/remote_media_stream_impl.cc (right): https://codereview.chromium.org/2902733003/diff/140001/content/renderer/media/remote_media_stream_impl.cc#newcode90 content/renderer/media/remote_media_stream_impl.cc:90: AdapterRefMap new_adapter_refs = GetAdapterRefMapFromWebRtcStream( On 2017/06/12 14:25:28, ...
3 years, 6 months ago (2017-06-12 15:05:21 UTC) #31
hbos_chromium
https://codereview.chromium.org/2902733003/diff/140001/content/renderer/media/webrtc/webrtc_media_stream_track_adapter_map.cc File content/renderer/media/webrtc/webrtc_media_stream_track_adapter_map.cc (right): https://codereview.chromium.org/2902733003/diff/140001/content/renderer/media/webrtc/webrtc_media_stream_track_adapter_map.cc#newcode93 content/renderer/media/webrtc/webrtc_media_stream_track_adapter_map.cc:93: return GetOrCreateTrackAdapter( On 2017/06/12 15:05:21, hbos_chromium wrote: > On ...
3 years, 6 months ago (2017-06-12 15:07:52 UTC) #32
Guido Urdaneta
lgtm % adding a comment about construction on the main thread. https://codereview.chromium.org/2902733003/diff/140001/content/renderer/media/remote_media_stream_impl.cc File content/renderer/media/remote_media_stream_impl.cc (right): ...
3 years, 6 months ago (2017-06-12 15:18:35 UTC) #33
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/2902733003/180001
3 years, 6 months ago (2017-06-13 08:00:50 UTC) #36
commit-bot: I haz the power
3 years, 6 months ago (2017-06-13 09:07:10 UTC) #39
Message was sent while issue was closed.
Committed patchset #3 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/7ff812ea2691302e2307ff0e5c64...

Powered by Google App Engine
This is Rietveld 408576698