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

Issue 1018863002: compositor-worker: Introduce CompositorWorker. (Closed)

Created:
5 years, 9 months ago by sadrul
Modified:
5 years, 9 months ago
Reviewers:
kinuko, tkent, haraken
CC:
blink-reviews, kinuko+worker_chromium.org, horo+watch_chromium.org, dglazkov+blink, falken, tkent, Ian Vollick
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

compositor-worker: Introduce CompositorWorker. Notable changes: . Make Worker and WorkerMessagingProxy non-final, so that CompositorWorker and CompositorWorkerMessagingProxy can override them. . Have CompositorWorkerMessagingProxy as the WorkerGlobalScopeProxy for the compositor worker-thread, so that it can create a CompositorWorkerThread instead of a DedicatedWorkerThread. . Introduce a virtual Worker::createWorkerGlobalScopeProxy() so that CompositorWorker can create a CompositorWorkerMessagingProxy as the proxy. . CompositorWorkerThread is introduced, but it doesn't do anything yet. In subsequent CLs, it will override functionalities related to managing v8::Isolate, thread etc. . CompositorWorkerGlobalScope is also introduced. BUG=436952 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192592

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 8

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Total comments: 10

Patch Set 12 : . #

Patch Set 13 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+478 lines, -36 lines) Patch
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M Source/bindings/idl.gni View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M Source/bindings/modules/generated.gyp View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -2 lines 0 comments Download
M Source/bindings/modules/generated.gypi View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M Source/bindings/modules/modules.gni View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
A Source/bindings/modules/v8/custom/V8CompositorWorkerCustom.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +19 lines, -0 lines 0 comments Download
A Source/bindings/modules/v8/custom/V8CompositorWorkerGlobalScopeCustom.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +19 lines, -0 lines 0 comments Download
M Source/bindings/modules/v8/custom/custom.gni View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/modules/v8/custom/custom.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/scripts/v8_utilities.py View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M Source/bindings/templates/interface_base.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/ExecutionContext.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/workers/Worker.h View 3 chunks +6 lines, -2 lines 0 comments Download
M Source/core/workers/Worker.cpp View 3 chunks +28 lines, -15 lines 0 comments Download
M Source/core/workers/WorkerMessagingProxy.h View 1 2 3 4 5 6 7 3 chunks +9 lines, -4 lines 0 comments Download
M Source/core/workers/WorkerMessagingProxy.cpp View 1 2 3 4 5 6 7 3 chunks +7 lines, -2 lines 0 comments Download
M Source/core/workers/WorkerThread.h View 1 2 3 4 5 6 3 chunks +8 lines, -7 lines 0 comments Download
M Source/core/workers/WorkerThread.cpp View 1 2 3 4 5 6 2 chunks +6 lines, -1 line 0 comments Download
M Source/modules/EventTargetModulesFactory.in View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A Source/modules/compositorworker/CompositorWorker.h View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
A Source/modules/compositorworker/CompositorWorker.cpp View 1 2 3 4 1 chunk +54 lines, -0 lines 0 comments Download
A Source/modules/compositorworker/CompositorWorker.idl View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -0 lines 0 comments Download
A Source/modules/compositorworker/CompositorWorkerGlobalScope.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +40 lines, -0 lines 0 comments Download
A Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +51 lines, -0 lines 0 comments Download
A Source/modules/compositorworker/CompositorWorkerGlobalScope.idl View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
A Source/modules/compositorworker/CompositorWorkerMessagingProxy.h View 1 2 3 4 5 6 7 1 chunk +24 lines, -0 lines 0 comments Download
A Source/modules/compositorworker/CompositorWorkerMessagingProxy.cpp View 1 2 3 4 5 6 7 1 chunk +27 lines, -0 lines 0 comments Download
A Source/modules/compositorworker/CompositorWorkerThread.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +33 lines, -0 lines 0 comments Download
A Source/modules/compositorworker/CompositorWorkerThread.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +38 lines, -0 lines 0 comments Download
A + Source/modules/compositorworker/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 5 6 7 2 chunks +10 lines, -0 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 32 (6 generated)
sadrul
Hi! This is mostly creating hooks in the current worker code so that compositor-worker can ...
5 years, 9 months ago (2015-03-20 00:43:09 UTC) #2
kinuko
(Will look into this tomorrow-ish or next week, sorry I didn't have time today)
5 years, 9 months ago (2015-03-20 17:00:18 UTC) #3
kinuko
Looking good. I think in general it'd be preferable to have a separate class for ...
5 years, 9 months ago (2015-03-24 02:27:19 UTC) #4
sadrul
On 2015/03/24 02:27:19, kinuko wrote: > Looking good. I think in general it'd be preferable ...
5 years, 9 months ago (2015-03-24 02:48:36 UTC) #5
kinuko
On 2015/03/24 02:48:36, sadrul wrote: > On 2015/03/24 02:27:19, kinuko wrote: > > Looking good. ...
5 years, 9 months ago (2015-03-24 03:47:56 UTC) #6
sadrul
Ah, I see. Sorry I misunderstood. On 2015/03/24 03:47:56, kinuko wrote: > On 2015/03/24 02:48:36, ...
5 years, 9 months ago (2015-03-24 04:33:54 UTC) #7
kinuko
On 2015/03/24 04:33:54, sadrul wrote: > Ah, I see. Sorry I misunderstood. > > On ...
5 years, 9 months ago (2015-03-25 04:23:57 UTC) #8
kinuko
I think my question is simple--- is CompositorWorker a type of DedicatedWorker by its definition? ...
5 years, 9 months ago (2015-03-25 04:29:59 UTC) #9
kinuko
(+tkent for API owner perspective review) On 2015/03/25 04:29:59, kinuko wrote: > I think my ...
5 years, 9 months ago (2015-03-25 05:43:58 UTC) #10
kinuko
https://codereview.chromium.org/1018863002/diff/100001/Source/modules/compositorworker/CompositorWorkerThread.h File Source/modules/compositorworker/CompositorWorkerThread.h (right): https://codereview.chromium.org/1018863002/diff/100001/Source/modules/compositorworker/CompositorWorkerThread.h#newcode12 Source/modules/compositorworker/CompositorWorkerThread.h:12: class CompositorWorkerThread final : public DedicatedWorkerThread { If we're ...
5 years, 9 months ago (2015-03-25 05:48:45 UTC) #11
tkent
https://codereview.chromium.org/1018863002/diff/100001/public/web/WebRuntimeFeatures.h File public/web/WebRuntimeFeatures.h (right): https://codereview.chromium.org/1018863002/diff/100001/public/web/WebRuntimeFeatures.h#newcode57 public/web/WebRuntimeFeatures.h:57: BLINK_EXPORT static void enableCompositorWorker(bool); Why do you need public ...
5 years, 9 months ago (2015-03-25 05:55:10 UTC) #13
sadrul
https://codereview.chromium.org/1018863002/diff/100001/Source/modules/compositorworker/CompositorWorkerThread.h File Source/modules/compositorworker/CompositorWorkerThread.h (right): https://codereview.chromium.org/1018863002/diff/100001/Source/modules/compositorworker/CompositorWorkerThread.h#newcode12 Source/modules/compositorworker/CompositorWorkerThread.h:12: class CompositorWorkerThread final : public DedicatedWorkerThread { On 2015/03/25 ...
5 years, 9 months ago (2015-03-25 06:13:07 UTC) #14
tkent
https://codereview.chromium.org/1018863002/diff/100001/public/web/WebRuntimeFeatures.h File public/web/WebRuntimeFeatures.h (right): https://codereview.chromium.org/1018863002/diff/100001/public/web/WebRuntimeFeatures.h#newcode57 public/web/WebRuntimeFeatures.h:57: BLINK_EXPORT static void enableCompositorWorker(bool); On 2015/03/25 06:13:07, sadrul wrote: ...
5 years, 9 months ago (2015-03-25 06:15:05 UTC) #15
sadrul
https://codereview.chromium.org/1018863002/diff/100001/public/web/WebRuntimeFeatures.h File public/web/WebRuntimeFeatures.h (right): https://codereview.chromium.org/1018863002/diff/100001/public/web/WebRuntimeFeatures.h#newcode57 public/web/WebRuntimeFeatures.h:57: BLINK_EXPORT static void enableCompositorWorker(bool); On 2015/03/25 06:15:05, tkent wrote: ...
5 years, 9 months ago (2015-03-25 06:26:37 UTC) #16
tkent
lgtm https://codereview.chromium.org/1018863002/diff/100001/Source/modules/compositorworker/CompositorWorkerThread.h File Source/modules/compositorworker/CompositorWorkerThread.h (right): https://codereview.chromium.org/1018863002/diff/100001/Source/modules/compositorworker/CompositorWorkerThread.h#newcode12 Source/modules/compositorworker/CompositorWorkerThread.h:12: class CompositorWorkerThread final : public DedicatedWorkerThread { On ...
5 years, 9 months ago (2015-03-25 07:37:55 UTC) #17
sadrul
I have made some changes since last review (including pulling in CompositorWorkerGlobalScope related changes in ...
5 years, 9 months ago (2015-03-26 01:27:48 UTC) #19
tkent
+haraken for new custom binding code
5 years, 9 months ago (2015-03-26 03:43:07 UTC) #21
haraken
bindings LGTM. You don't need to do this in this CL, but you'll need to ...
5 years, 9 months ago (2015-03-26 03:56:35 UTC) #22
sadrul
On 2015/03/26 03:56:35, haraken wrote: > bindings LGTM. > > You don't need to do ...
5 years, 9 months ago (2015-03-26 04:00:43 UTC) #23
haraken
On 2015/03/26 04:00:43, sadrul wrote: > On 2015/03/26 03:56:35, haraken wrote: > > bindings LGTM. ...
5 years, 9 months ago (2015-03-26 04:11:17 UTC) #24
tkent
https://codereview.chromium.org/1018863002/diff/220001/Source/bindings/modules/v8/custom/V8CompositorWorkerCustom.cpp File Source/bindings/modules/v8/custom/V8CompositorWorkerCustom.cpp (right): https://codereview.chromium.org/1018863002/diff/220001/Source/bindings/modules/v8/custom/V8CompositorWorkerCustom.cpp#newcode13 Source/bindings/modules/v8/custom/V8CompositorWorkerCustom.cpp:13: // FIXME: This stub should be replaced by generated ...
5 years, 9 months ago (2015-03-26 04:22:10 UTC) #25
sadrul
https://codereview.chromium.org/1018863002/diff/220001/Source/bindings/modules/v8/custom/V8CompositorWorkerCustom.cpp File Source/bindings/modules/v8/custom/V8CompositorWorkerCustom.cpp (right): https://codereview.chromium.org/1018863002/diff/220001/Source/bindings/modules/v8/custom/V8CompositorWorkerCustom.cpp#newcode13 Source/bindings/modules/v8/custom/V8CompositorWorkerCustom.cpp:13: // FIXME: This stub should be replaced by generated ...
5 years, 9 months ago (2015-03-26 04:36:39 UTC) #26
tkent
https://codereview.chromium.org/1018863002/diff/220001/Source/modules/compositorworker/CompositorWorkerThread.cpp File Source/modules/compositorworker/CompositorWorkerThread.cpp (right): https://codereview.chromium.org/1018863002/diff/220001/Source/modules/compositorworker/CompositorWorkerThread.cpp#newcode33 Source/modules/compositorworker/CompositorWorkerThread.cpp:33: v8::Isolate* CompositorWorkerThread::initializeIsolate() On 2015/03/26 04:36:39, sadrul wrote: > On ...
5 years, 9 months ago (2015-03-26 05:33:12 UTC) #27
kinuko
New patch lgtm, glad that now we have less dependencies between workers!
5 years, 9 months ago (2015-03-26 07:57:44 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1018863002/260001
5 years, 9 months ago (2015-03-26 08:12:05 UTC) #31
commit-bot: I haz the power
5 years, 9 months ago (2015-03-26 10:27:24 UTC) #32
Message was sent while issue was closed.
Committed patchset #13 (id:260001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192592

Powered by Google App Engine
This is Rietveld 408576698