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

Issue 1839913002: Implement PaintWorkletGlobalScope#registerPaint() for the CSS Paint API (Closed)

Created:
4 years, 8 months ago by ikilpatrick
Modified:
4 years, 8 months ago
Reviewers:
haraken
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement PaintWorkletGlobalScope#registerPaint() for the CSS Paint API The spec needs to be updated on this to more closely match how WebComponents works, which I'll do later this week. https://drafts.css-houdini.org/css-paint-api/#dom-paintworkletglobalscope-registerpaint (different ordering in spec + doesn't store the paint method in a "definition"). registerPaint stores the result in a CSSPaintDefinition class. This class will be used to invoke the paint() function to produce the image, which will be in a (large) subsequent patch. BUG=578252 Committed: https://crrev.com/ada96b395009c5594c398c6d1d0174fc96a8d78f Cr-Commit-Position: refs/heads/master@{#384672}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : No leeks! #

Patch Set 4 : . #

Total comments: 2

Patch Set 5 : fix build? #

Patch Set 6 : fix non-oilpan build? #

Patch Set 7 : . #

Total comments: 4

Patch Set 8 : Remove V8PerIsolateData changes. #

Patch Set 9 : . #

Patch Set 10 : fix win build. #

Total comments: 8

Patch Set 11 : addressed comments. #

Patch Set 12 : rebase #

Patch Set 13 : rebase + remove WillBe types. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+361 lines, -7 lines) Patch
A third_party/WebKit/LayoutTests/csspaint/registerPaint.html View 1 1 chunk +65 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/csspaint/registerPaint-expected.txt View 1 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +40 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +14 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +91 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.idl View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/modules/csspaint/PaintWorkletTest.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +80 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/worklet/Worklet.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (15 generated)
ikilpatrick
haraken: If there is somebody who has worked on registerElement for custom element who'd be ...
4 years, 8 months ago (2016-03-29 03:38:02 UTC) #4
haraken
https://codereview.chromium.org/1839913002/diff/20001/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h File third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h (right): https://codereview.chromium.org/1839913002/diff/20001/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h#newcode30 third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h:30: ScopedPersistent<v8::Function> m_paint; Would you elaborate on why these ScopedPersistents ...
4 years, 8 months ago (2016-03-29 04:26:15 UTC) #5
ikilpatrick
https://codereview.chromium.org/1839913002/diff/20001/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h File third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h (right): https://codereview.chromium.org/1839913002/diff/20001/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h#newcode30 third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h:30: ScopedPersistent<v8::Function> m_paint; On 2016/03/29 04:26:15, haraken wrote: > > ...
4 years, 8 months ago (2016-03-30 19:12:51 UTC) #6
haraken
https://codereview.chromium.org/1839913002/diff/140001/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h File third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h (right): https://codereview.chromium.org/1839913002/diff/140001/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h#newcode32 third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h:32: ScopedPersistent<v8::Function> m_paint; What's the point of making CSSPaintDefinition hold ...
4 years, 8 months ago (2016-03-31 02:01:59 UTC) #8
ikilpatrick
https://codereview.chromium.org/1839913002/diff/140001/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h File third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h (right): https://codereview.chromium.org/1839913002/diff/140001/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h#newcode32 third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h:32: ScopedPersistent<v8::Function> m_paint; On 2016/03/31 02:01:59, haraken wrote: > > ...
4 years, 8 months ago (2016-03-31 21:59:05 UTC) #10
haraken
LGTM https://codereview.chromium.org/1839913002/diff/220001/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp File third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp (right): https://codereview.chromium.org/1839913002/diff/220001/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp#newcode56 third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp:56: v8::TryCatch block(isolate); I don't think you need this ...
4 years, 8 months ago (2016-04-01 00:16:06 UTC) #11
ikilpatrick
https://codereview.chromium.org/1839913002/diff/220001/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp File third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp (right): https://codereview.chromium.org/1839913002/diff/220001/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp#newcode56 third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp:56: v8::TryCatch block(isolate); On 2016/04/01 00:16:06, haraken wrote: > > ...
4 years, 8 months ago (2016-04-01 03:08:43 UTC) #12
haraken
LGTM
4 years, 8 months ago (2016-04-01 03:31:36 UTC) #13
ikilpatrick
On 2016/04/01 03:31:36, haraken wrote: > LGTM Thanks haraken!
4 years, 8 months ago (2016-04-01 15:26:33 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839913002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839913002/260001
4 years, 8 months ago (2016-04-01 15:26:55 UTC) #17
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.h: While running git apply --index -3 -p1; error: patch ...
4 years, 8 months ago (2016-04-01 18:08:04 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839913002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839913002/280001
4 years, 8 months ago (2016-04-01 18:28:43 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/168012)
4 years, 8 months ago (2016-04-01 18:41:48 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839913002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839913002/280001
4 years, 8 months ago (2016-04-01 19:06:13 UTC) #27
commit-bot: I haz the power
Committed patchset #13 (id:280001)
4 years, 8 months ago (2016-04-01 20:09:04 UTC) #29
commit-bot: I haz the power
4 years, 8 months ago (2016-04-01 20:10:29 UTC) #31
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/ada96b395009c5594c398c6d1d0174fc96a8d78f
Cr-Commit-Position: refs/heads/master@{#384672}

Powered by Google App Engine
This is Rietveld 408576698