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

Issue 2853743002: Worklet: Introduce PaintWorkletGlobalScopeProxy (Closed)

Created:
3 years, 7 months ago by nhiroki
Modified:
3 years, 7 months ago
CC:
chromium-reviews, haraken, blink-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Worklet: Introduce PaintWorkletGlobalScopeProxy This is split from https://codereview.chromium.org/2840523002/ Before this CL, PaintWorklet is tightly coupled with PaintWorkletGlobalScope, and that is an obstacle to unifying MainThreadWorklet and ThreadedWorklet. This CL introduces PaintWorkletGlobalScopeProxy to separate PaintWorkletGlobalScope from PaintWorklet and makes it easier to abstract communication between Worklet and WorkletGlobalScope in future CLs. BUG=627945 Review-Url: https://codereview.chromium.org/2853743002 Cr-Commit-Position: refs/heads/master@{#468572} Committed: https://chromium.googlesource.com/chromium/src/+/70506ba46cddc70df56252e365866361e7712466

Patch Set 1 #

Total comments: 4

Patch Set 2 : address review comments #

Total comments: 9

Patch Set 3 : address review comments #

Messages

Total messages: 41 (26 generated)
nhiroki
PTAL, thanks!
3 years, 7 months ago (2017-05-01 04:17:52 UTC) #11
kouhei (in TOK)
lgtm As discussed offline, please put TODO(nhiroki) comments about oilpan gc graph caveats.
3 years, 7 months ago (2017-05-01 04:48:37 UTC) #12
falken
I'm having trouble understanding the point of these Proxy classes. Why don't the callers just ...
3 years, 7 months ago (2017-05-01 04:52:09 UTC) #13
nhiroki
Thank you. I haven't updated the patch yet. On 2017/05/01 04:52:09, falken (away May 3-5) ...
3 years, 7 months ago (2017-05-01 05:39:31 UTC) #14
falken
OK, I think I see. Should WorkletGlobalScopeProxy have a comment like: "abstracts communication from (Main/Threaded)Worklet ...
3 years, 7 months ago (2017-05-01 06:02:39 UTC) #15
nhiroki
Thank you! https://codereview.chromium.org/2853743002/diff/40001/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h File third_party/WebKit/Source/modules/csspaint/PaintWorklet.h (right): https://codereview.chromium.org/2853743002/diff/40001/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h#newcode17 third_party/WebKit/Source/modules/csspaint/PaintWorklet.h:17: On 2017/05/01 06:02:38, falken (away May 3-5) ...
3 years, 7 months ago (2017-05-01 07:30:33 UTC) #20
nhiroki
On 2017/05/01 04:48:37, kouhei wrote: > lgtm > As discussed offline, please put TODO(nhiroki) comments ...
3 years, 7 months ago (2017-05-01 07:31:19 UTC) #21
nhiroki
+haraken@, can you review changes in modules/csspaint/? Thanks.
3 years, 7 months ago (2017-05-01 07:33:18 UTC) #25
haraken
https://codereview.chromium.org/2853743002/diff/60001/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScopeProxy.cpp File third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScopeProxy.cpp (right): https://codereview.chromium.org/2853743002/diff/60001/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScopeProxy.cpp#newcode18 third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScopeProxy.cpp:18: return WTF::WrapUnique(new PaintWorkletGlobalScopeProxy(frame)); MakeUnique https://codereview.chromium.org/2853743002/diff/60001/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScopeProxy.cpp#newcode29 third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScopeProxy.cpp:29: DCHECK(WTF::IsMainThread()); WTF:: wouldn't ...
3 years, 7 months ago (2017-05-01 08:43:47 UTC) #26
kouhei (in TOK)
On 2017/05/01 04:52:09, falken (away May 3-5) wrote: > I'm having trouble understanding the point ...
3 years, 7 months ago (2017-05-01 09:09:01 UTC) #27
nhiroki
Thank you for your comments. Updated. https://codereview.chromium.org/2853743002/diff/60001/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScopeProxy.cpp File third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScopeProxy.cpp (right): https://codereview.chromium.org/2853743002/diff/60001/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScopeProxy.cpp#newcode18 third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScopeProxy.cpp:18: return WTF::WrapUnique(new PaintWorkletGlobalScopeProxy(frame)); ...
3 years, 7 months ago (2017-05-02 04:45:24 UTC) #32
nhiroki
On 2017/05/01 09:09:01, kouhei (on vacation) wrote: > On 2017/05/01 04:52:09, falken (away May 3-5) ...
3 years, 7 months ago (2017-05-02 04:47:15 UTC) #33
haraken
LGTM https://codereview.chromium.org/2853743002/diff/60001/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScopeProxy.h File third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScopeProxy.h (right): https://codereview.chromium.org/2853743002/diff/60001/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScopeProxy.h#newcode41 third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScopeProxy.h:41: Persistent<PaintWorkletGlobalScope> global_scope_; On 2017/05/02 04:45:24, nhiroki (ooo May ...
3 years, 7 months ago (2017-05-02 04:49:44 UTC) #34
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/2853743002/80001
3 years, 7 months ago (2017-05-02 04:57:13 UTC) #38
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 06:18:26 UTC) #41
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/70506ba46cddc70df56252e36586...

Powered by Google App Engine
This is Rietveld 408576698