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

Issue 2896813002: Activate 'offload debug dump recordings from audio thread to TaskQueue'. (Closed)

Created:
3 years, 7 months ago by aleloi
Modified:
3 years, 7 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, the sun, danilchap
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Activate 'offload debug dump recordings from audio thread to TaskQueue'. A low priority task queue is added to WebRTCVoiceEngine. The start/stop debug calls make file logging happen on the task queue. In a dependent CL (https://codereview.webrtc.org/2888303003), the task queue is moved to PeerConnectionFactory, so that it can be shared for low priority tasks between different subcomponents. It will require some changes to MediaEngine, CompositeMediaEngine, WebRTCVoiceEngine, and changes in internal projects. A task queue must be created and destroyed from the same thread. With this CL that will be the worker thread, which creates and destroys WebRTCVoiceEngine. With the dependent CL, it will probably change to the signaling thread. NOTRY=True # tests just passed BUG=webrtc:7404 Review-Url: https://codereview.webrtc.org/2896813002 Cr-Commit-Position: refs/heads/master@{#18252} Committed: https://chromium.googlesource.com/external/webrtc/+/c61bf947b4ac31f3500858ffcae6fee39d799930

Patch Set 1 : Adding strict mock expectations. #

Total comments: 5

Patch Set 2 : Rebase on top of latest. #

Total comments: 1

Patch Set 3 : StartRecording should return 'true' when starting is successfull. #

Total comments: 4

Patch Set 4 : Give queue shorter name. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -29 lines) Patch
M webrtc/media/BUILD.gn View 2 chunks +6 lines, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.h View 2 chunks +4 lines, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.cc View 1 2 3 3 chunks +13 lines, -29 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine_unittest.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 53 (42 generated)
aleloi
Hi, can you PTAL? There still is 'compile-time polymorphism', but I can't see how to ...
3 years, 7 months ago (2017-05-22 10:58:23 UTC) #9
the sun
https://codereview.webrtc.org/2896813002/diff/20001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2896813002/diff/20001/webrtc/media/engine/webrtcvoiceengine.cc#newcode668 webrtc/media/engine/webrtcvoiceengine.cc:668: return !!aec_dump; since you have moved from aec_dump at ...
3 years, 7 months ago (2017-05-22 22:38:01 UTC) #12
aleloi
New patch (minimal changes) & responses to comments. PTAL! https://codereview.webrtc.org/2896813002/diff/20001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2896813002/diff/20001/webrtc/media/engine/webrtcvoiceengine.cc#newcode668 webrtc/media/engine/webrtcvoiceengine.cc:668: ...
3 years, 7 months ago (2017-05-23 11:05:49 UTC) #15
the sun
lgtm % comments But check if Danil/Tommi have any concerns about adding another TQ instance. ...
3 years, 7 months ago (2017-05-23 20:47:29 UTC) #31
danilchap
I do not feel like TaskQueue specialist, Per likely has better opinion than me.
3 years, 7 months ago (2017-05-24 08:26:58 UTC) #39
tommi (sloooow) - chröme
lgtm with a couple of requests. Thanks for the offline context, good to know that ...
3 years, 7 months ago (2017-05-24 08:37:26 UTC) #41
aleloi
https://codereview.webrtc.org/2896813002/diff/140001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2896813002/diff/140001/webrtc/media/engine/webrtcvoiceengine.cc#newcode232 webrtc/media/engine/webrtcvoiceengine.cc:232: : low_priority_worker_queue_("low-prio-worker-queue", On 2017/05/24 08:37:26, tommi (sloooow) - chröme ...
3 years, 7 months ago (2017-05-24 08:43:48 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2896813002/140001
3 years, 7 months ago (2017-05-24 08:44:38 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2896813002/160001
3 years, 7 months ago (2017-05-24 08:45:27 UTC) #49
commit-bot: I haz the power
Committed patchset #4 (id:160001) as https://chromium.googlesource.com/external/webrtc/+/c61bf947b4ac31f3500858ffcae6fee39d799930
3 years, 7 months ago (2017-05-24 08:47:26 UTC) #52
aleloi
3 years, 7 months ago (2017-05-24 11:19:45 UTC) #53
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:160001) has been created in
https://codereview.webrtc.org/2904893002/ by aleloi@webrtc.org.

The reason for reverting is: Breaks internal project..

Powered by Google App Engine
This is Rietveld 408576698