mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 09:17:45 +00:00
LibWeb: Add simple canvas path clipper
This adds CanvasPathClipper and ScopedCanvasPathClip. These allow clipping the canvas by some arbitrary path. This initial implementation is fairly naive, with a good few allocations, though this can probably be improved in future.
This commit is contained in:
parent
ef58062f71
commit
92d9b6edb8
3 changed files with 112 additions and 0 deletions
|
@ -206,6 +206,7 @@ set(SOURCES
|
|||
HTML/BrowsingContextGroup.cpp
|
||||
HTML/Canvas/CanvasDrawImage.cpp
|
||||
HTML/Canvas/CanvasPath.cpp
|
||||
HTML/Canvas/CanvasPathClipper.cpp
|
||||
HTML/Canvas/CanvasState.cpp
|
||||
HTML/CanvasGradient.cpp
|
||||
HTML/CanvasPattern.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue