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

Issue 2839123003: Worklet: Introduce "pending tasks struct" concept defined in the Worklet spec (Closed)

Created:
3 years, 8 months ago by nhiroki
Modified:
3 years, 7 months ago
CC:
chromium-reviews, shimazu+worker_chromium.org, kinuko+worker_chromium.org, blink-reviews, horo+watch_chromium.org, falken+watch_chromium.org, blink-worker-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Worklet: Introduce "pending tasks struct" concept defined in the Worklet spec This is split from https://codereview.chromium.org/2840523002/ This CL introduces "pending tasks struct" concept defined in the Worklet spec: https://drafts.css-houdini.org/worklets/#pending-tasks-struct The pending tasks struct is used as a kind of barrier closure: when Worklet::addModule() is called, multiple WorkletGlobalScopes associated with the Worklet may start module loading. The struct waits until they all are completed and then resolves a promise. If one of them is failed, the struct immediately rejects a promise and ignores following completions. This CL also removes WorkletObjectProxy and the request id mechanism in MainThreadWorklet using the pending tasks struct. BUG=627945 Review-Url: https://codereview.chromium.org/2839123003 Cr-Commit-Position: refs/heads/master@{#467908} Committed: https://chromium.googlesource.com/chromium/src/+/322942d036996ccb422964135650d4416081474c

Patch Set 1 #

Total comments: 1

Patch Set 2 : rebase #

Patch Set 3 : style fix #

Total comments: 8

Patch Set 4 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -142 lines) Patch
M third_party/WebKit/Source/core/loader/WorkletScriptLoader.h View 2 chunks +0 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/workers/BUILD.gn View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/MainThreadWorklet.h View 3 chunks +2 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp View 1 2 3 2 chunks +28 lines, -38 lines 0 comments Download
M third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h View 4 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp View 1 2 3 4 chunks +47 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/workers/MainThreadWorkletTest.cpp View 2 chunks +1 line, -15 lines 0 comments Download
M third_party/WebKit/Source/core/workers/ThreadedWorklet.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/Worklet.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkletGlobalScopeProxy.h View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkletObjectProxy.h View 1 chunk +0 lines, -26 lines 0 comments Download
A third_party/WebKit/Source/core/workers/WorkletPendingTasks.h View 1 chunk +43 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/workers/WorkletPendingTasks.cpp View 1 chunk +47 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/csspaint/PaintWorklet.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.h View 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp View 2 chunks +4 lines, -8 lines 0 comments Download

Messages

Total messages: 41 (33 generated)
nhiroki
Hi, can you review this? Thanks :) https://codereview.chromium.org/2839123003/diff/80001/third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp File third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp (right): https://codereview.chromium.org/2839123003/diff/80001/third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp#newcode44 third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp:44: // Step ...
3 years, 8 months ago (2017-04-26 10:58:53 UTC) #18
kouhei (in TOK)
https://codereview.chromium.org/2839123003/diff/120001/third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp File third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp (right): https://codereview.chromium.org/2839123003/diff/120001/third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp#newcode41 third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp:41: // Step 11: "Let pendingTaskStruct be a new pending ...
3 years, 7 months ago (2017-04-27 10:05:33 UTC) #27
nhiroki
Thank you! https://codereview.chromium.org/2839123003/diff/120001/third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp File third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp (right): https://codereview.chromium.org/2839123003/diff/120001/third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp#newcode41 third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp:41: // Step 11: "Let pendingTaskStruct be a ...
3 years, 7 months ago (2017-04-28 04:41:14 UTC) #30
kouhei (in TOK)
lgtm
3 years, 7 months ago (2017-04-28 05:11:59 UTC) #33
nhiroki
+haraken@, can you review modules/? This just removes an unused argument. Thanks!
3 years, 7 months ago (2017-04-28 05:14:43 UTC) #35
haraken
modules/ LGTM
3 years, 7 months ago (2017-04-28 05:39:21 UTC) #36
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/2839123003/140001
3 years, 7 months ago (2017-04-28 05:40:34 UTC) #38
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 05:46:54 UTC) #41
Message was sent while issue was closed.
Committed patchset #4 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/322942d036996ccb422964135650...

Powered by Google App Engine
This is Rietveld 408576698