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
Review URL: https://codereview.chromium.org/1839913002
Cr-Commit-Position: refs/heads/master@{#384672}
14 files changed