|
|
DescriptionWorklet: Enable TaskRunnerHelper to handle MainThreadWorkletGlobalScope
MainThreadWorklet runs on the main thread and tasks on that should be managed by
the per-frame task runners. This CL associates them in TaskRunnerHelper::Get().
This is necessary for implementing module loading on main thread worklets.
(see https://codereview.chromium.org/2826313003/)
BUG=627945
Review-Url: https://codereview.chromium.org/2870273002
Cr-Commit-Position: refs/heads/master@{#470851}
Committed: https://chromium.googlesource.com/chromium/src/+/905a5fd6040cc73a6adaff129faa5bf0b1edfc2a
Patch Set 1 #
Total comments: 2
Messages
Total messages: 33 (16 generated)
The CQ bit was checked by nhiroki@chromium.org to run a CQ dry run
nhiroki@chromium.org changed reviewers: + kinuko@chromium.org
PTAL, thanks!
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
kinuko@google.com changed reviewers: + kinuko@google.com
https://codereview.chromium.org/2870273002/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp (right): https://codereview.chromium.org/2870273002/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp:82: return Get(type, ToDocument(execution_context)); would Get(type, ToDocument(nullptr)) work? actually what we want to call in this case is frame version of Get, is that right?
Thanks for your comments. https://codereview.chromium.org/2870273002/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp (right): https://codereview.chromium.org/2870273002/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp:82: return Get(type, ToDocument(execution_context)); On 2017/05/10 01:04:46, kinuko (google) wrote: > would Get(type, ToDocument(nullptr)) work? I tried it before but the compiler complained: https://codereview.chromium.org/2806623004/diff/300001/third_party/WebKit/Sou... > actually what we want to call in this case is frame version of Get, is that > right? Yes, that's right. Do you prefer ToLocalFrame()?
On 2017/05/10 01:15:41, nhiroki (maybe slow) wrote: > Thanks for your comments. > > https://codereview.chromium.org/2870273002/diff/1/third_party/WebKit/Source/c... > File third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp (right): > > https://codereview.chromium.org/2870273002/diff/1/third_party/WebKit/Source/c... > third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp:82: return Get(type, > ToDocument(execution_context)); > On 2017/05/10 01:04:46, kinuko (google) wrote: > > would Get(type, ToDocument(nullptr)) work? > > I tried it before but the compiler complained: Would compiler complain if we do Get(type, nullptr)? We have some Get(type, x ? x->Frame() : nullptr) code, not super sure which order they're resolved... > https://codereview.chromium.org/2806623004/diff/300001/third_party/WebKit/Sou... > > > actually what we want to call in this case is frame version of Get, is that > > right? > > Yes, that's right. Do you prefer ToLocalFrame()?
On 2017/05/10 01:27:18, kinuko (google) wrote: > On 2017/05/10 01:15:41, nhiroki (maybe slow) wrote: > > Thanks for your comments. > > > > > https://codereview.chromium.org/2870273002/diff/1/third_party/WebKit/Source/c... > > File third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp (right): > > > > > https://codereview.chromium.org/2870273002/diff/1/third_party/WebKit/Source/c... > > third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp:82: return Get(type, > > ToDocument(execution_context)); > > On 2017/05/10 01:04:46, kinuko (google) wrote: > > > would Get(type, ToDocument(nullptr)) work? > > > > I tried it before but the compiler complained: > > Would compiler complain if we do Get(type, nullptr)? We have some Get(type, x ? > x->Frame() : nullptr) code, not super sure which order they're resolved... oh ok sorry, in this case we can get the right frame one. hm. > > > https://codereview.chromium.org/2806623004/diff/300001/third_party/WebKit/Sou... > > > > > actually what we want to call in this case is frame version of Get, is that > > > right? > > > > Yes, that's right. Do you prefer ToLocalFrame()?
lgtm as we already have had the code. I feel this overload resolution is getting weird though, we could probably have the canonical frame version with a differen name like GetInternal... but that's unrelated to this particular change.
On 2017/05/10 01:39:08, kinuko wrote: > lgtm as we already have had the code. > > I feel this overload resolution is getting weird though, we could probably have > the canonical frame version with a differen name like GetInternal... but that's > unrelated to this particular change. Sounds reasonable. I'll make a separate patch.
The CQ bit was unchecked by nhiroki@chromium.org
The CQ bit was checked by nhiroki@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, build has not started yet; builder either lacks capacity or does not exist (misspelled?))
The CQ bit was checked by nhiroki@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by nhiroki@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by nhiroki@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by nhiroki@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 1, "attempt_start_ts": 1494480656855390, "parent_rev": "afaa2a65a0d50a88e08fd595507668538cb6689e", "commit_rev": "905a5fd6040cc73a6adaff129faa5bf0b1edfc2a"}
Message was sent while issue was closed.
Description was changed from ========== Worklet: Enable TaskRunnerHelper to handle MainThreadWorkletGlobalScope MainThreadWorklet runs on the main thread and tasks on that should be managed by the per-frame task runners. This CL associates them in TaskRunnerHelper::Get(). This is necessary for implementing module loading on main thread worklets. (see https://codereview.chromium.org/2826313003/) BUG=627945 ========== to ========== Worklet: Enable TaskRunnerHelper to handle MainThreadWorkletGlobalScope MainThreadWorklet runs on the main thread and tasks on that should be managed by the per-frame task runners. This CL associates them in TaskRunnerHelper::Get(). This is necessary for implementing module loading on main thread worklets. (see https://codereview.chromium.org/2826313003/) BUG=627945 Review-Url: https://codereview.chromium.org/2870273002 Cr-Commit-Position: refs/heads/master@{#470851} Committed: https://chromium.googlesource.com/chromium/src/+/905a5fd6040cc73a6adaff129faa... ==========
Message was sent while issue was closed.
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/905a5fd6040cc73a6adaff129faa... |