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

Issue 1519863002: Expose WorkerPool to blink (Closed)

Created:
5 years ago by Justin Novosad
Modified:
5 years ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, jam, xlai (Olivia)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose WorkerPool to blink Adding an API to blink's platform to allow blink to submit background tasks to chromium's worker thread pool. The plan is to use this for HTMLCanvasElement::toBlob BUG=567887 Committed: https://crrev.com/5a3b91b21b97dcd68af85b06d1dd143571e596e3 Cr-Commit-Position: refs/heads/master@{#366251}

Patch Set 1 #

Patch Set 2 : fix accidental edit #

Total comments: 4

Patch Set 3 : onion soupification #

Total comments: 1

Patch Set 4 : simplify DEPS #

Total comments: 1

Patch Set 5 : make non copyable #

Patch Set 6 : build fix #

Patch Set 7 : fix build for realz #

Total comments: 2

Patch Set 8 : remove unnecessary include #

Total comments: 2

Patch Set 9 : use closures + make safe #

Total comments: 8

Patch Set 10 : threading subdir + namespace #

Total comments: 1

Patch Set 11 : DEPS tweak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -0 lines) Patch
M third_party/WebKit/Source/platform/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.h View 1 2 3 4 5 6 7 8 9 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +24 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/threading/BackgroundTaskRunnerTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +41 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/threading/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 65 (27 generated)
Justin Novosad
@jochen: lucky you, you are the only person to be an OWNER in all these ...
5 years ago (2015-12-11 19:29:48 UTC) #2
Justin Novosad
+cc xlai: FYI
5 years ago (2015-12-11 19:36:42 UTC) #3
jochen (gone - plz use gerrit)
should we use that API directly? should this be something the scheduler knows about? if ...
5 years ago (2015-12-14 12:12:15 UTC) #5
Justin Novosad
On 2015/12/14 12:12:15, jochen wrote: > should we use that API directly? > > should ...
5 years ago (2015-12-14 16:27:27 UTC) #9
gab
On 2015/12/14 16:27:27, Justin Novosad wrote: > On 2015/12/14 12:12:15, jochen wrote: > > should ...
5 years ago (2015-12-14 18:56:23 UTC) #10
esprehn
We can use base in platform now, just add a WorkerPool class to platform with ...
5 years ago (2015-12-16 00:04:19 UTC) #11
Justin Novosad
On 2015/12/16 00:04:19, esprehn wrote: > We can use base in platform now, just add ...
5 years ago (2015-12-16 04:22:12 UTC) #12
Justin Novosad
https://codereview.chromium.org/1519863002/diff/20001/content/child/blink_platform_impl.cc File content/child/blink_platform_impl.cc (right): https://codereview.chromium.org/1519863002/diff/20001/content/child/blink_platform_impl.cc#newcode582 content/child/blink_platform_impl.cc:582: base::WorkerPool::PostTask( On 2015/12/16 00:04:18, esprehn wrote: > this method ...
5 years ago (2015-12-16 19:01:27 UTC) #13
esprehn
That's not true, we have base/ usage in a growing number of places in blink. ...
5 years ago (2015-12-16 19:04:33 UTC) #14
Justin Novosad
On 2015/12/16 19:04:33, esprehn wrote: > That's not true, we have base/ usage in a ...
5 years ago (2015-12-16 19:07:45 UTC) #15
esprehn
That's not true, we have base/ usage in a growing number of places in blink. ...
5 years ago (2015-12-16 19:10:55 UTC) #16
Justin Novosad
New patch
5 years ago (2015-12-16 19:37:50 UTC) #17
Justin Novosad
+danakj for base/OWNERS apparently adding DEPS requires an owner of the dependency to approve.
5 years ago (2015-12-16 19:41:00 UTC) #19
danakj
base DEPS LGTM https://codereview.chromium.org/1519863002/diff/40001/third_party/WebKit/Source/platform/DEPS File third_party/WebKit/Source/platform/DEPS (right): https://codereview.chromium.org/1519863002/diff/40001/third_party/WebKit/Source/platform/DEPS#newcode2 third_party/WebKit/Source/platform/DEPS:2: "+base", if you're adding base/ you ...
5 years ago (2015-12-16 19:41:59 UTC) #20
Justin Novosad
On 2015/12/16 19:41:59, danakj (behind on reviews) wrote: > if you're adding base/ you can ...
5 years ago (2015-12-16 19:43:58 UTC) #21
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/1519863002/diff/60001/third_party/WebKit/Source/platform/BackgroundTaskTest.cpp File third_party/WebKit/Source/platform/BackgroundTaskTest.cpp (right): https://codereview.chromium.org/1519863002/diff/60001/third_party/WebKit/Source/platform/BackgroundTaskTest.cpp#newcode16 third_party/WebKit/Source/platform/BackgroundTaskTest.cpp:16: class PingTask : public BackgroundTask { wtf_make_noncopyable
5 years ago (2015-12-17 14:23:41 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1519863002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1519863002/80001
5 years ago (2015-12-17 15:41:17 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/44800)
5 years ago (2015-12-17 15:50:22 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1519863002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1519863002/100001
5 years ago (2015-12-17 15:56:04 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/121867)
5 years ago (2015-12-17 16:07:32 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1519863002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1519863002/120001
5 years ago (2015-12-17 19:11:29 UTC) #35
esprehn
https://codereview.chromium.org/1519863002/diff/120001/third_party/WebKit/Source/platform/BackgroundTask.cpp File third_party/WebKit/Source/platform/BackgroundTask.cpp (right): https://codereview.chromium.org/1519863002/diff/120001/third_party/WebKit/Source/platform/BackgroundTask.cpp#newcode11 third_party/WebKit/Source/platform/BackgroundTask.cpp:11: #include "public/platform/Platform.h" Why do you need Platform? https://codereview.chromium.org/1519863002/diff/120001/third_party/WebKit/Source/platform/BackgroundTask.h File ...
5 years ago (2015-12-17 19:17:27 UTC) #40
Justin Novosad
On 2015/12/17 19:17:27, esprehn wrote: > https://codereview.chromium.org/1519863002/diff/120001/third_party/WebKit/Source/platform/BackgroundTask.cpp > File third_party/WebKit/Source/platform/BackgroundTask.cpp (right): > > https://codereview.chromium.org/1519863002/diff/120001/third_party/WebKit/Source/platform/BackgroundTask.cpp#newcode11 > ...
5 years ago (2015-12-17 22:12:41 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1519863002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1519863002/140001
5 years ago (2015-12-17 22:17:01 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/94305)
5 years ago (2015-12-18 00:27:31 UTC) #46
Noel Gordon
LGTM /me curious: can we kill a task after it has been posted to background ...
5 years ago (2015-12-18 01:37:46 UTC) #47
Justin Novosad
On 2015/12/18 01:37:46, noel gordon wrote: > LGTM > > /me curious: can we kill ...
5 years ago (2015-12-18 02:10:09 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1519863002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1519863002/140001
5 years ago (2015-12-18 02:13:35 UTC) #50
kinuko
https://codereview.chromium.org/1519863002/diff/140001/third_party/WebKit/Source/platform/BackgroundTask.cpp File third_party/WebKit/Source/platform/BackgroundTask.cpp (right): https://codereview.chromium.org/1519863002/diff/140001/third_party/WebKit/Source/platform/BackgroundTask.cpp#newcode19 third_party/WebKit/Source/platform/BackgroundTask.cpp:19: base::WorkerPool::PostTask(FROM_HERE, base::Bind(&BackgroundTask::run, base::Owned(task)), taskSize == TaskSizeLongRunningTask); Given that the ...
5 years ago (2015-12-18 04:56:23 UTC) #53
Justin Novosad
I applied the corrections. @kinuko: I think I get it, but I am not 100% ...
5 years ago (2015-12-18 06:11:07 UTC) #54
kinuko
Thanks! The code looks good now, I have a few more comments. https://codereview.chromium.org/1519863002/diff/160001/third_party/WebKit/Source/platform/BackgroundTaskRunner.cpp File third_party/WebKit/Source/platform/BackgroundTaskRunner.cpp ...
5 years ago (2015-12-18 15:21:30 UTC) #55
haraken
https://codereview.chromium.org/1519863002/diff/160001/third_party/WebKit/Source/platform/DEPS File third_party/WebKit/Source/platform/DEPS (right): https://codereview.chromium.org/1519863002/diff/160001/third_party/WebKit/Source/platform/DEPS#newcode2 third_party/WebKit/Source/platform/DEPS:2: "+base", On 2015/12/18 15:21:30, kinuko wrote: > This worries ...
5 years ago (2015-12-18 15:30:44 UTC) #56
Justin Novosad
https://codereview.chromium.org/1519863002/diff/160001/third_party/WebKit/Source/platform/BackgroundTaskRunner.h File third_party/WebKit/Source/platform/BackgroundTaskRunner.h (right): https://codereview.chromium.org/1519863002/diff/160001/third_party/WebKit/Source/platform/BackgroundTaskRunner.h#newcode14 third_party/WebKit/Source/platform/BackgroundTaskRunner.h:14: class PLATFORM_EXPORT BackgroundTaskRunner { On 2015/12/18 15:21:30, kinuko wrote: ...
5 years ago (2015-12-18 15:53:44 UTC) #57
Justin Novosad
New patch.
5 years ago (2015-12-18 16:23:08 UTC) #58
kinuko
Thanks, lgtm https://codereview.chromium.org/1519863002/diff/180001/third_party/WebKit/Source/platform/threading/DEPS File third_party/WebKit/Source/platform/threading/DEPS (right): https://codereview.chromium.org/1519863002/diff/180001/third_party/WebKit/Source/platform/threading/DEPS#newcode4 third_party/WebKit/Source/platform/threading/DEPS:4: "+base/threading", nit: base/location.h can probably be in ...
5 years ago (2015-12-18 17:02:45 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1519863002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1519863002/200001
5 years ago (2015-12-18 20:22:54 UTC) #62
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years ago (2015-12-19 02:37:06 UTC) #63
commit-bot: I haz the power
5 years ago (2015-12-19 02:37:59 UTC) #65
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/5a3b91b21b97dcd68af85b06d1dd143571e596e3
Cr-Commit-Position: refs/heads/master@{#366251}

Powered by Google App Engine
This is Rietveld 408576698