-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a layer and filter interface in the 2D canvas #9537
base: main
Are you sure you want to change the base?
Commits on Nov 7, 2023
-
Add a layer and filter interface in the 2D canvas
This adds new beginLayer and endLayer functions to open and close layers in the canvas. While layers are active, draw calls operate on a separate texture that gets composited to the parent output bitmap when the layer is closed. An optional filter can be specified in beginLayer, allowing effects to be applied to the layer's texture when it's composited its parent. Tests: https://github.com/web-platform-tests/wpt/tree/master/html/canvas/element/layers https://github.com/web-platform-tests/wpt/tree/master/html/canvas/offscreen/layers Fixes whatwg#8476
Configuration menu - View commit details
-
Copy full SHA for f8a46e0 - Browse repository at this point
Copy the full SHA f8a46e0View commit details -
Added CCS filter, fixed unclosed layers and replied to review comments
This update addresses 3 main things: - Support for CSS filter strings was added to the beginLayer API - Unclosed layers are now never rasterized when the canvas is presented to the user. Instead, the content of the layer is preserved and will be rasterized in a later frame, if/when the layer is closed. - Replied to the first round of review comments.
Configuration menu - View commit details
-
Copy full SHA for 0868d09 - Browse repository at this point
Copy the full SHA 0868d09View commit details
Commits on Nov 9, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6f28c4d - Browse repository at this point
Copy the full SHA 6f28c4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for fd385d3 - Browse repository at this point
Copy the full SHA fd385d3View commit details
Commits on May 31, 2024
-
Remove XML CanvasFilter from initial layer spec
This will be moved to a separate pull request.
Configuration menu - View commit details
-
Copy full SHA for 6d00e9e - Browse repository at this point
Copy the full SHA 6d00e9eView commit details
Commits on Aug 16, 2024
-
Add ctx.filter to the layer rendering states
With this change, the context filters now applies to the layer's output bitmap and is resetted to "none" when entering layers.
Configuration menu - View commit details
-
Copy full SHA for 6687ecc - Browse repository at this point
Copy the full SHA 6687eccView commit details -
This removes the filter argument of the beginLayer API. BeginLayerOptions can possibliy be added to the specification as a follow-up.
Configuration menu - View commit details
-
Copy full SHA for 1d3e5ce - Browse repository at this point
Copy the full SHA 1d3e5ceView commit details
Commits on Sep 10, 2024
-
Clarify what type of bitmaps are used across the canvas spec
The HTMLCanvasElement's bitmap was linkified to clarify to which bitmap each uses of the word "bitmap" refers to (either the element's bitmap, the context's top level output bitmap or the context's current output bitmap).
Configuration menu - View commit details
-
Copy full SHA for 7d60c4e - Browse repository at this point
Copy the full SHA 7d60c4eView commit details
Commits on Sep 23, 2024
-
Add the current transform to the layer rendering states
This means that when entering a layer, the current transform now is reset to the identity matrix. setTransform and getTransform are now local to the current layer, meaning that calling setTransform sets a matrix relative to the parent layer.
Configuration menu - View commit details
-
Copy full SHA for 1fc4c42 - Browse repository at this point
Copy the full SHA 1fc4c42View commit details