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

Issue 2738823004: Replace createCrossThreadTask with crossThreadBind in webaudio (Closed)

Created:
3 years, 9 months ago by yuryu
Modified:
3 years, 9 months ago
Reviewers:
haraken, nhiroki, tzik
CC:
chromium-reviews, haraken, blink-reviews, Raymond Toy, hongchan
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace createCrossThreadTask with crossThreadBind in webaudio createCrossThreadTask and ExecutionContextTask are deprecated in favor of crossThreadBind and CrossThreadClosure respectively. This patch removes the deprecated versions. This patch also changes the code to post tasks to WebTaskRunner instead of ExecutionContext, but the behavour remains the same as Document::postTask already forwards tasks to WebTaskRunner of the LocalFrame in the Document. BUG=625927 Review-Url: https://codereview.chromium.org/2738823004 Cr-Commit-Position: refs/heads/master@{#456042} Committed: https://chromium.googlesource.com/chromium/src/+/039895d69bd49f30bf762e7ab5c8812211998f16

Patch Set 1 #

Total comments: 10

Patch Set 2 : RefPtr -> wrapPassRefPtr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -36 lines) Patch
M third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.cpp View 1 2 chunks +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.cpp View 1 2 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp View 1 3 chunks +14 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.cpp View 2 chunks +15 lines, -12 lines 0 comments Download

Messages

Total messages: 32 (26 generated)
yuryu
please take a look, thanks
3 years, 9 months ago (2017-03-09 01:37:35 UTC) #20
tzik
lgtm. I doubt the thread safety around ExecutionContext here, but at least this CL doesn't ...
3 years, 9 months ago (2017-03-10 00:15:43 UTC) #23
yuryu
I read a couple of docs saying PassRefPtr is deprecated, but it seems RefPtr is ...
3 years, 9 months ago (2017-03-10 07:49:32 UTC) #24
haraken
LGTM It looks like that accessing an ExecutionContext *happens to* be safe because the code ...
3 years, 9 months ago (2017-03-10 08:54:49 UTC) #26
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/2738823004/20001
3 years, 9 months ago (2017-03-10 10:34:53 UTC) #29
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 11:59:24 UTC) #32
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/039895d69bd49f30bf762e7ab5c8...

Powered by Google App Engine
This is Rietveld 408576698