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

Issue 1713043002: Late initialize MediaController, for less resource i.e. ProcessThread, usage by PeerConnection. (Closed)

Created:
4 years, 10 months ago by the sun
Modified:
4 years, 9 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Late initialize MediaController, for less resource i.e. ProcessThread, usage by PeerConnection. BUG=chromium:582441 Committed: https://crrev.com/03d6d57f41cd36e9cf6c9d02c2a04c2775a8611c Cr-Commit-Position: refs/heads/master@{#11834}

Patch Set 1 #

Patch Set 2 : Ugly but implemented #

Total comments: 10

Patch Set 3 : comments+rebase+memleak #

Patch Set 4 : Missed one comment #

Total comments: 13

Patch Set 5 : Now lazy-initializing WebRtcSession as well. #

Patch Set 6 : some comments #

Total comments: 4

Patch Set 7 : webrtc::Call now created on demand in MediaController #

Patch Set 8 : Comment #

Total comments: 2

Patch Set 9 : comment #

Patch Set 10 : comment #

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -14 lines) Patch
M webrtc/api/fakemediacontroller.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/api/mediacontroller.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/api/mediacontroller.cc View 1 2 3 4 5 6 7 8 9 1 chunk +19 lines, -14 lines 0 comments Download
M webrtc/api/statscollector.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/api/webrtcsession.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 38 (9 generated)
the sun
While there are issues with bots failing and the fact that I'm not particularly happy ...
4 years, 10 months ago (2016-02-22 15:02:12 UTC) #2
tommi
I see some of the concerns you might have, but I think that your goal ...
4 years, 10 months ago (2016-02-22 15:22:06 UTC) #3
the sun
https://codereview.webrtc.org/1713043002/diff/20001/webrtc/api/peerconnection.cc File webrtc/api/peerconnection.cc (right): https://codereview.webrtc.org/1713043002/diff/20001/webrtc/api/peerconnection.cc#newcode858 webrtc/api/peerconnection.cc:858: stats_->GetStats(track, &reports); On 2016/02/22 15:22:05, tommi-webrtc wrote: > Is ...
4 years, 10 months ago (2016-02-23 14:14:03 UTC) #4
the sun
https://codereview.webrtc.org/1713043002/diff/20001/webrtc/api/peerconnectioninterface_unittest.cc File webrtc/api/peerconnectioninterface_unittest.cc (right): https://codereview.webrtc.org/1713043002/diff/20001/webrtc/api/peerconnectioninterface_unittest.cc#newcode2369 webrtc/api/peerconnectioninterface_unittest.cc:2369: pc->CreateSender(MediaStreamTrackInterface::kAudioKind, "foo_id")); On 2016/02/22 15:22:05, tommi-webrtc wrote: > add ...
4 years, 10 months ago (2016-02-23 14:32:43 UTC) #5
the sun
4 years, 10 months ago (2016-02-23 14:32:44 UTC) #6
the sun
Adding kwiberg@ as another pair of eyes on this rather subtle change.
4 years, 10 months ago (2016-02-24 13:15:21 UTC) #8
kwiberg-webrtc
On 2016/02/24 13:15:21, the sun wrote: > Adding kwiberg@ as another pair of eyes on ...
4 years, 10 months ago (2016-02-24 13:47:01 UTC) #9
kwiberg-webrtc
On 2016/02/24 13:47:01, kwiberg-webrtc wrote: > 2. You have a bunch of explicit calls to ...
4 years, 10 months ago (2016-02-24 14:03:22 UTC) #10
the sun
On 2016/02/24 13:47:01, kwiberg-webrtc wrote: > On 2016/02/24 13:15:21, the sun wrote: > > Adding ...
4 years, 10 months ago (2016-02-24 14:30:02 UTC) #11
the sun
On 2016/02/24 14:03:22, kwiberg-webrtc wrote: > On 2016/02/24 13:47:01, kwiberg-webrtc wrote: > > 2. You ...
4 years, 10 months ago (2016-02-24 14:56:52 UTC) #12
the sun
On 2016/02/24 14:56:52, the sun wrote: > On 2016/02/24 14:03:22, kwiberg-webrtc wrote: > > On ...
4 years, 10 months ago (2016-02-24 16:29:15 UTC) #13
pthatcher1
I think there are several changes that we can make that would make this a ...
4 years, 10 months ago (2016-02-24 23:10:09 UTC) #14
the sun
See new approach in latest patch set. Still incomplete as there are tests failing, but ...
4 years, 10 months ago (2016-02-25 13:15:39 UTC) #15
pthatcher1
https://codereview.webrtc.org/1713043002/diff/60001/webrtc/api/peerconnection.cc File webrtc/api/peerconnection.cc (right): https://codereview.webrtc.org/1713043002/diff/60001/webrtc/api/peerconnection.cc#newcode1511 webrtc/api/peerconnection.cc:1511: session_->LateInitialize(media_controller_.get()); On 2016/02/25 13:15:39, the sun wrote: > On ...
4 years, 10 months ago (2016-02-26 21:51:20 UTC) #16
the sun
https://codereview.webrtc.org/1713043002/diff/60001/webrtc/api/peerconnection.cc File webrtc/api/peerconnection.cc (right): https://codereview.webrtc.org/1713043002/diff/60001/webrtc/api/peerconnection.cc#newcode1511 webrtc/api/peerconnection.cc:1511: session_->LateInitialize(media_controller_.get()); On 2016/02/26 21:51:20, pthatcher1 wrote: > On 2016/02/25 ...
4 years, 9 months ago (2016-02-29 15:58:23 UTC) #17
the sun
On 2016/02/29 15:58:23, the sun wrote: > https://codereview.webrtc.org/1713043002/diff/60001/webrtc/api/peerconnection.cc > File webrtc/api/peerconnection.cc (right): > > https://codereview.webrtc.org/1713043002/diff/60001/webrtc/api/peerconnection.cc#newcode1511 ...
4 years, 9 months ago (2016-02-29 16:18:16 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1713043002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1713043002/140001
4 years, 9 months ago (2016-02-29 16:18:56 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) ...
4 years, 9 months ago (2016-02-29 18:19:45 UTC) #22
tommi
wow, that looks impressively simple :-| lgtm! https://codereview.webrtc.org/1713043002/diff/140001/webrtc/api/mediacontroller.cc File webrtc/api/mediacontroller.cc (right): https://codereview.webrtc.org/1713043002/diff/140001/webrtc/api/mediacontroller.cc#newcode42 webrtc/api/mediacontroller.cc:42: void Close() ...
4 years, 9 months ago (2016-03-01 09:57:41 UTC) #23
the sun
https://codereview.webrtc.org/1713043002/diff/140001/webrtc/api/mediacontroller.cc File webrtc/api/mediacontroller.cc (right): https://codereview.webrtc.org/1713043002/diff/140001/webrtc/api/mediacontroller.cc#newcode42 webrtc/api/mediacontroller.cc:42: void Close() override { On 2016/03/01 09:57:41, tommi-webrtc wrote: ...
4 years, 9 months ago (2016-03-01 10:52:30 UTC) #24
the sun
On 2016/03/01 10:52:30, the sun wrote: > https://codereview.webrtc.org/1713043002/diff/140001/webrtc/api/mediacontroller.cc > File webrtc/api/mediacontroller.cc (right): > > https://codereview.webrtc.org/1713043002/diff/140001/webrtc/api/mediacontroller.cc#newcode42 ...
4 years, 9 months ago (2016-03-01 10:57:47 UTC) #25
tommi
lgtm. thanks!
4 years, 9 months ago (2016-03-01 13:21:56 UTC) #26
kwiberg-webrtc
lgtm!
4 years, 9 months ago (2016-03-01 13:35:31 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1713043002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1713043002/200001
4 years, 9 months ago (2016-03-01 16:31:58 UTC) #29
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) ...
4 years, 9 months ago (2016-03-01 18:33:20 UTC) #31
pthatcher1
lgtm WOW, that's a lot better.
4 years, 9 months ago (2016-03-01 20:08:45 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1713043002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1713043002/200001
4 years, 9 months ago (2016-03-01 20:39:54 UTC) #35
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 9 months ago (2016-03-01 20:42:07 UTC) #36
commit-bot: I haz the power
4 years, 9 months ago (2016-03-01 20:42:16 UTC) #38
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/03d6d57f41cd36e9cf6c9d02c2a04c2775a8611c
Cr-Commit-Position: refs/heads/master@{#11834}

Powered by Google App Engine
This is Rietveld 408576698