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

Issue 1900423004: [compositorworker] Register compositor proxies with proxy client (Closed)

Created:
4 years, 8 months ago by majidvp
Modified:
4 years, 6 months ago
Reviewers:
haraken, sof, jbroman
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, blink-worker-reviews_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, falken, flackr, gavinp+loader_chromium.org, haraken, horo+watch_chromium.org, Nate Chapin, kinuko+worker_chromium.org, loading-reviews_chromium.org, rwlbuis, tyoshino+watch_chromium.org, Ian Vollick
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[compositorworker] Register compositor proxies with proxy client Each compositor proxy registers itself with its proxy client when created. This populated set is later used to update the backing mutable state for each compositor proxy. TEST=These machinery is tested in the follow-up CL https://codereview.chromium.org/2041193005/ BUG=430155 Committed: https://crrev.com/eb14272233cd88227efc37a31fabb9688ed831ba Cr-Commit-Position: refs/heads/master@{#399502}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Rebase and use WTF containers #

Patch Set 4 : rebase #

Patch Set 5 : minor update #

Total comments: 9

Patch Set 6 : Address feedback #

Total comments: 5

Patch Set 7 : Fix layout test #

Total comments: 10

Patch Set 8 : Address feedback #

Patch Set 9 : Address feedback #

Total comments: 5

Patch Set 10 : Add clarifying comments #

Patch Set 11 : replace map of set with a set #

Total comments: 2

Patch Set 12 : Update comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -31 lines) Patch
M third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-postmessage.html View 1 2 3 4 5 6 3 chunks +4 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/proxy-echo.js View 1 2 3 4 5 6 1 chunk +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/CompositorProxy.h View 1 2 3 4 5 6 7 4 chunks +9 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/CompositorProxy.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +47 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/dom/CompositorProxyClient.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/CompositorProxyClientImpl.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/CompositorProxyClientImpl.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 42 (13 generated)
majidvp
4 years, 6 months ago (2016-06-07 22:53:27 UTC) #5
haraken
https://codereview.chromium.org/1900423004/diff/80001/third_party/WebKit/Source/core/dom/CompositorProxy.cpp File third_party/WebKit/Source/core/dom/CompositorProxy.cpp (right): https://codereview.chromium.org/1900423004/diff/80001/third_party/WebKit/Source/core/dom/CompositorProxy.cpp#newcode156 third_party/WebKit/Source/core/dom/CompositorProxy.cpp:156: disconnect(); You don't need to call disconnect() because disconnect() ...
4 years, 6 months ago (2016-06-08 00:10:36 UTC) #7
jbroman
https://codereview.chromium.org/1900423004/diff/80001/third_party/WebKit/Source/core/dom/CompositorProxy.cpp File third_party/WebKit/Source/core/dom/CompositorProxy.cpp (right): https://codereview.chromium.org/1900423004/diff/80001/third_party/WebKit/Source/core/dom/CompositorProxy.cpp#newcode119 third_party/WebKit/Source/core/dom/CompositorProxy.cpp:119: WorkerClients* clients = toWorkerGlobalScope(context)->clients(); Won't this crash if you ...
4 years, 6 months ago (2016-06-08 14:45:34 UTC) #8
majidvp
https://codereview.chromium.org/1900423004/diff/80001/third_party/WebKit/Source/core/dom/CompositorProxy.cpp File third_party/WebKit/Source/core/dom/CompositorProxy.cpp (right): https://codereview.chromium.org/1900423004/diff/80001/third_party/WebKit/Source/core/dom/CompositorProxy.cpp#newcode119 third_party/WebKit/Source/core/dom/CompositorProxy.cpp:119: WorkerClients* clients = toWorkerGlobalScope(context)->clients(); On 2016/06/08 14:45:34, jbroman wrote: ...
4 years, 6 months ago (2016-06-09 20:34:22 UTC) #9
jbroman
https://codereview.chromium.org/1900423004/diff/100001/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-postmessage.html File third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-postmessage.html (right): https://codereview.chromium.org/1900423004/diff/100001/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-postmessage.html#newcode7 third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-postmessage.html:7: var test = async_test("This test checks that an element's ...
4 years, 6 months ago (2016-06-09 21:13:47 UTC) #10
jbroman
Whoops, a couple typos in my previous message. On 2016/06/09 at 21:13:47, jbroman wrote: > ...
4 years, 6 months ago (2016-06-09 21:14:52 UTC) #11
majidvp
On 2016/06/09 21:13:47, jbroman wrote: > https://codereview.chromium.org/1900423004/diff/100001/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-postmessage.html > File > third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-postmessage.html > (right): > > ...
4 years, 6 months ago (2016-06-10 15:11:23 UTC) #12
majidvp
https://codereview.chromium.org/1900423004/diff/100001/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-postmessage.html File third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-postmessage.html (right): https://codereview.chromium.org/1900423004/diff/100001/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-postmessage.html#newcode7 third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-postmessage.html:7: var test = async_test("This test checks that an element's ...
4 years, 6 months ago (2016-06-10 15:33:47 UTC) #13
jbroman
https://codereview.chromium.org/1900423004/diff/120001/third_party/WebKit/Source/core/dom/CompositorProxy.h File third_party/WebKit/Source/core/dom/CompositorProxy.h (right): https://codereview.chromium.org/1900423004/diff/120001/third_party/WebKit/Source/core/dom/CompositorProxy.h#newcode56 third_party/WebKit/Source/core/dom/CompositorProxy.h:56: void dispose(); This method seems neither implemented nor called; ...
4 years, 6 months ago (2016-06-10 17:45:42 UTC) #14
jbroman
On 2016/06/10 at 15:11:23, majidvp wrote: > On 2016/06/09 21:13:47, jbroman wrote: > > https://codereview.chromium.org/1900423004/diff/100001/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-postmessage.html ...
4 years, 6 months ago (2016-06-10 17:49:34 UTC) #15
majidvp
https://codereview.chromium.org/1900423004/diff/120001/third_party/WebKit/Source/core/dom/CompositorProxy.h File third_party/WebKit/Source/core/dom/CompositorProxy.h (right): https://codereview.chromium.org/1900423004/diff/120001/third_party/WebKit/Source/core/dom/CompositorProxy.h#newcode56 third_party/WebKit/Source/core/dom/CompositorProxy.h:56: void dispose(); On 2016/06/10 17:45:42, jbroman wrote: > This ...
4 years, 6 months ago (2016-06-10 19:17:51 UTC) #16
jbroman
lgtm, but please make sure to get approval from an Oilpan expert, as there are ...
4 years, 6 months ago (2016-06-10 19:29:34 UTC) #17
majidvp
> https://codereview.chromium.org/1900423004/diff/160001/third_party/WebKit/Source/web/CompositorProxyClientImpl.h#newcode49 > third_party/WebKit/Source/web/CompositorProxyClientImpl.h:49: typedef > HeapHashMap<uint64_t, Member<ProxySet>> ProxyMap; > One thing to watch out ...
4 years, 6 months ago (2016-06-10 20:56:17 UTC) #18
majidvp
https://codereview.chromium.org/1900423004/diff/160001/third_party/WebKit/Source/core/dom/CompositorProxy.cpp File third_party/WebKit/Source/core/dom/CompositorProxy.cpp (right): https://codereview.chromium.org/1900423004/diff/160001/third_party/WebKit/Source/core/dom/CompositorProxy.cpp#newcode164 third_party/WebKit/Source/core/dom/CompositorProxy.cpp:164: DCHECK(!m_connected); On 2016/06/10 19:29:33, jbroman wrote: > Mind a ...
4 years, 6 months ago (2016-06-10 20:56:30 UTC) #19
haraken
Oilpan part LGTM. The weak hash map will work as expected.
4 years, 6 months ago (2016-06-13 01:19:53 UTC) #20
haraken
> Would you mind pointing me at where this behaviour is documented? I'm aware that ...
4 years, 6 months ago (2016-06-13 14:50:30 UTC) #22
sof
On 2016/06/13 14:50:30, haraken wrote: > > Would you mind pointing me at where this ...
4 years, 6 months ago (2016-06-13 15:08:05 UTC) #23
majidvp
The example in the HeapTest.EphemeronsInEphemerons uses weak keys, what we have here are weak values. ...
4 years, 6 months ago (2016-06-13 15:21:59 UTC) #24
sof
On 2016/06/13 15:08:05, sof wrote: > On 2016/06/13 14:50:30, haraken wrote: > > > Would ...
4 years, 6 months ago (2016-06-13 15:25:30 UTC) #25
majidvp
The example in the HeapTest.EphemeronsInEphemerons uses weak keys, what we have here are weak values. ...
4 years, 6 months ago (2016-06-13 15:28:36 UTC) #26
sof
On 2016/06/13 15:25:30, sof wrote: > On 2016/06/13 15:08:05, sof wrote: > > On 2016/06/13 ...
4 years, 6 months ago (2016-06-13 15:30:26 UTC) #27
majidvp
It turned out we don't actually need the map[id->weak set] and I can replace it ...
4 years, 6 months ago (2016-06-13 17:11:48 UTC) #28
majidvp
It turned out we don't actually need the map[id->weak set] and I can replace it ...
4 years, 6 months ago (2016-06-13 17:11:48 UTC) #29
jbroman
Great! (I'd assumed a subsequent patch required multi-map behaviour, but if not this is a ...
4 years, 6 months ago (2016-06-13 17:15:05 UTC) #30
majidvp
https://codereview.chromium.org/1900423004/diff/200001/third_party/WebKit/Source/core/dom/CompositorProxyClient.h File third_party/WebKit/Source/core/dom/CompositorProxyClient.h (right): https://codereview.chromium.org/1900423004/diff/200001/third_party/WebKit/Source/core/dom/CompositorProxyClient.h#newcode37 third_party/WebKit/Source/core/dom/CompositorProxyClient.h:37: // proxy from our weak map. On 2016/06/13 17:15:05, ...
4 years, 6 months ago (2016-06-13 17:21:42 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1900423004/220001
4 years, 6 months ago (2016-06-13 17:23:14 UTC) #37
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 6 months ago (2016-06-13 19:06:16 UTC) #39
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-13 19:06:26 UTC) #40
commit-bot: I haz the power
4 years, 6 months ago (2016-06-13 19:09:11 UTC) #42
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/eb14272233cd88227efc37a31fabb9688ed831ba
Cr-Commit-Position: refs/heads/master@{#399502}

Powered by Google App Engine
This is Rietveld 408576698