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

Issue 2268403006: Use background thread for AsyncAudioDecoder (Closed)

Created:
4 years, 4 months ago by hongchan
Modified:
4 years, 3 months ago
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use background thread for AsyncAudioDecoder With the creation of BaseAudioContext, an additional thread dedicated to AsyncAudioDecoder is also instantiated. This design is sub-optimal and we can use the background thread (i.e. WorkerPool) for this purpose. BUG=640793 TEST=NONE (all the decoder-related layout test passes) Committed: https://crrev.com/54ff0fdf2b744504617959819fc00d38538da647 Cr-Commit-Position: refs/heads/master@{#416100}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Adding task speed threadhold #

Patch Set 3 : Sanity check for context #

Total comments: 2

Patch Set 4 : Fixing nits after l-g-t-m #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -22 lines) Patch
M third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.h View 3 chunks +7 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp View 1 2 3 3 chunks +24 lines, -14 lines 0 comments Download

Messages

Total messages: 46 (16 generated)
Raymond Toy
https://codereview.chromium.org/2268403006/diff/1/third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp File third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp (right): https://codereview.chromium.org/2268403006/diff/1/third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp#newcode47 third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp:47: BackgroundTaskRunner::TaskSize taskSize = BackgroundTaskRunner::TaskSizeShortRunningTask; Why short? Decoding long files ...
4 years, 4 months ago (2016-08-24 23:08:46 UTC) #2
hongchan
https://codereview.chromium.org/2268403006/diff/1/third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp File third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp (right): https://codereview.chromium.org/2268403006/diff/1/third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp#newcode47 third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp:47: BackgroundTaskRunner::TaskSize taskSize = BackgroundTaskRunner::TaskSizeShortRunningTask; TODO: The threshold for long/short ...
4 years, 4 months ago (2016-08-24 23:10:19 UTC) #3
Raymond Toy
On 2016/08/24 at 23:10:19, hongchan wrote: > https://codereview.chromium.org/2268403006/diff/1/third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp > File third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp (right): > > https://codereview.chromium.org/2268403006/diff/1/third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp#newcode47 ...
4 years, 3 months ago (2016-08-25 17:12:27 UTC) #4
hongchan
On 2016/08/25 17:12:27, Raymond Toy wrote: > On 2016/08/24 at 23:10:19, hongchan wrote: > > ...
4 years, 3 months ago (2016-08-25 20:39:52 UTC) #5
hongchan
I used 512K for the threshold, but we can tweak it if this is problematic.
4 years, 3 months ago (2016-08-25 21:10:53 UTC) #6
hongchan
On 2016/08/25 21:10:53, hoch wrote: > I used 512K for the threshold, but we can ...
4 years, 3 months ago (2016-08-25 21:12:54 UTC) #7
hongchan
haraken@ Could you take a look at the usage of BackgroundTaskRunner? The comment in base::WorkerPool ...
4 years, 3 months ago (2016-08-25 21:20:29 UTC) #10
hongchan
+junov@ Could you take a look at the usage of BackgroundThread here? If this is ...
4 years, 3 months ago (2016-08-25 22:20:41 UTC) #12
hongchan
On 2016/08/25 22:20:41, hoch wrote: > +junov@ > > Could you take a look at ...
4 years, 3 months ago (2016-08-25 22:45:09 UTC) #13
Raymond Toy
For completeness can we have ToT release results? On Aug 25, 2016 3:45 PM, <hongchan@chromium.org> ...
4 years, 3 months ago (2016-08-25 23:28:28 UTC) #14
Raymond Toy
For completeness can we have ToT release results? On Aug 25, 2016 3:45 PM, <hongchan@chromium.org> ...
4 years, 3 months ago (2016-08-25 23:28:42 UTC) #15
haraken
On 2016/08/25 21:20:29, hoch wrote: > haraken@ > > Could you take a look at ...
4 years, 3 months ago (2016-08-26 02:39:29 UTC) #17
hongchan
On 2016/08/26 02:39:29, haraken wrote: > On 2016/08/25 21:20:29, hoch wrote: > > haraken@ > ...
4 years, 3 months ago (2016-08-26 15:32:37 UTC) #18
hongchan
On 2016/08/26 15:32:37, hoch wrote: > On 2016/08/26 02:39:29, haraken wrote: > > On 2016/08/25 ...
4 years, 3 months ago (2016-08-26 15:41:22 UTC) #19
Raymond Toy
On 2016/08/26 at 15:41:22, hongchan wrote: > On 2016/08/26 15:32:37, hoch wrote: > > On ...
4 years, 3 months ago (2016-08-26 16:21:01 UTC) #20
hongchan
On 2016/08/26 16:21:01, Raymond Toy wrote: > On 2016/08/26 at 15:41:22, hongchan wrote: > > ...
4 years, 3 months ago (2016-08-26 17:08:46 UTC) #22
yzshen1
On 2016/08/26 02:39:29, haraken wrote: > On 2016/08/25 21:20:29, hoch wrote: > > haraken@ > ...
4 years, 3 months ago (2016-08-26 21:30:14 UTC) #23
haraken
On 2016/08/26 15:32:37, hoch wrote: > On 2016/08/26 02:39:29, haraken wrote: > > On 2016/08/25 ...
4 years, 3 months ago (2016-08-27 02:13:08 UTC) #24
haraken
On 2016/08/26 16:21:01, Raymond Toy wrote: > On 2016/08/26 at 15:41:22, hongchan wrote: > > ...
4 years, 3 months ago (2016-08-27 02:14:45 UTC) #25
haraken
On 2016/08/26 21:30:14, yzshen1 wrote: > On 2016/08/26 02:39:29, haraken wrote: > > On 2016/08/25 ...
4 years, 3 months ago (2016-08-27 02:21:00 UTC) #26
esprehn
Yeah I'd say lets go forward with this CL.
4 years, 3 months ago (2016-08-27 02:31:09 UTC) #27
hongchan
That sounds good. Then what else needs to be done here? We can check if ...
4 years, 3 months ago (2016-08-29 17:33:44 UTC) #29
haraken
LGTM on my side
4 years, 3 months ago (2016-08-29 17:36:39 UTC) #30
Justin Novosad
lgtm 2
4 years, 3 months ago (2016-08-29 21:09:14 UTC) #33
esprehn
lgtm https://codereview.chromium.org/2268403006/diff/40001/third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp File third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp (right): https://codereview.chromium.org/2268403006/diff/40001/third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp#newcode44 third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp:44: unsigned TaskSizeThresholdInByte = 512000; static and prefix with ...
4 years, 3 months ago (2016-08-30 21:40:16 UTC) #37
hongchan
On 2016/08/30 21:40:16, esprehn wrote: > lgtm > > https://codereview.chromium.org/2268403006/diff/40001/third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp > File third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp (right): > ...
4 years, 3 months ago (2016-08-31 02:12:05 UTC) #38
Raymond Toy
lgtm https://codereview.chromium.org/2268403006/diff/40001/third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp File third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp (right): https://codereview.chromium.org/2268403006/diff/40001/third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp#newcode44 third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp:44: unsigned TaskSizeThresholdInByte = 512000; On 2016/08/30 at 21:40:16, ...
4 years, 3 months ago (2016-09-01 16:51:10 UTC) #39
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/2268403006/60001
4 years, 3 months ago (2016-09-01 21:16:19 UTC) #42
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-01 22:54:30 UTC) #44
commit-bot: I haz the power
4 years, 3 months ago (2016-09-01 22:56:24 UTC) #46
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/54ff0fdf2b744504617959819fc00d38538da647
Cr-Commit-Position: refs/heads/master@{#416100}

Powered by Google App Engine
This is Rietveld 408576698