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

Issue 2389193003: Refactor BackingThreadHolder to WorkletBackingThreadHolder (Closed)

Created:
4 years, 2 months ago by hongchan
Modified:
4 years, 2 months ago
Reviewers:
haraken, nhiroki
CC:
chromium-reviews, shans, rjwright, blink-reviews-animation_chromium.org, shimazu+worker_chromium.org, falken, kinuko+worker_chromium.org, darktears, blink-reviews, horo+watch_chromium.org, blink-worker-reviews_chromium.org, Eric Willigers
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor BackingThreadHolder to WorkletThreadHolder This CL refactors BackingThreadHolder, which was a part of AbstractAnimationWorkletThread, to core/workers/WorkletThreadHolder. Because AudioWorkletThread and AnimationWorkletThread share this backing thread holder, it is reasonable to factor this part out and make it a part of core/worker. BUG=652750 TEST=(The build passes AnimationWorkletThreadTest.) Committed: https://crrev.com/32dd9efba59837681df3260708f25024ede1fe98 Cr-Commit-Position: refs/heads/master@{#424551}

Patch Set 1 #

Total comments: 7

Patch Set 2 : The second attempt #

Patch Set 3 : Rebase, comments, formatting after l-g-t-m #

Patch Set 4 : Fixing compilation error for try bots #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -47 lines) Patch
M third_party/WebKit/Source/core/workers/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/workers/WorkletBackingThreadHolder.h View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/workers/WorkletBackingThreadHolder.cpp View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.cpp View 1 2 3 6 chunks +29 lines, -47 lines 0 comments Download

Messages

Total messages: 31 (21 generated)
hongchan
PTAL. We need this change to move this forward: https://codereview.chromium.org/2372303002/
4 years, 2 months ago (2016-10-04 17:06:01 UTC) #2
nhiroki
https://codereview.chromium.org/2389193003/diff/1/third_party/WebKit/Source/core/workers/WorkletThreadHolder.cpp File third_party/WebKit/Source/core/workers/WorkletThreadHolder.cpp (right): https://codereview.chromium.org/2389193003/diff/1/third_party/WebKit/Source/core/workers/WorkletThreadHolder.cpp#newcode11 third_party/WebKit/Source/core/workers/WorkletThreadHolder.cpp:11: #include "public/platform/Platform.h" This inclusion may not be necessary. https://codereview.chromium.org/2389193003/diff/1/third_party/WebKit/Source/core/workers/WorkletThreadHolder.cpp#newcode23 ...
4 years, 2 months ago (2016-10-05 04:33:55 UTC) #3
hongchan
nhiroki@ Thanks for your review. > It looks like that this instance will be shared ...
4 years, 2 months ago (2016-10-06 23:04:42 UTC) #5
haraken
On 2016/10/06 23:04:42, hoch wrote: > nhiroki@ Thanks for your review. > > > It ...
4 years, 2 months ago (2016-10-07 00:52:53 UTC) #6
hongchan
PTAL. Since the majority of BackingThreadHolder being static, there isn't much to refactor. Let me ...
4 years, 2 months ago (2016-10-10 18:56:45 UTC) #7
haraken
LGTM. This looks better than sharing nothing, at least. Maybe can we use a C++ ...
4 years, 2 months ago (2016-10-11 03:58:05 UTC) #8
nhiroki
lgtm
4 years, 2 months ago (2016-10-11 05:03:33 UTC) #13
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/2389193003/60001
4 years, 2 months ago (2016-10-11 21:29:29 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-11 21:35:47 UTC) #29
commit-bot: I haz the power
4 years, 2 months ago (2016-10-11 21:39:36 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/32dd9efba59837681df3260708f25024ede1fe98
Cr-Commit-Position: refs/heads/master@{#424551}

Powered by Google App Engine
This is Rietveld 408576698