1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:37:35 +00:00

LibAccelGfx+LibWeb: Support non-translation transforms in GPU painter

This change introduces GPU painter support for rotate(), skew(),
scale(), and other transformations that could be applied to stacking
context.
This commit is contained in:
Aliaksandr Kalenik 2023-11-30 20:54:20 +01:00 committed by Andreas Kling
parent 45d81dceed
commit c28f6828c9
4 changed files with 52 additions and 25 deletions

View file

@ -67,6 +67,7 @@ private:
MaybeOwned<AccelGfx::Painter> painter;
float opacity;
Gfx::IntRect destination;
Gfx::AffineTransform transform;
int stacking_context_depth { 0 };
};