Implement missing methods in PictureBoundingBoxPlayer

* Remove const from gradient in StrokeLineGradient.
  BoundingBoxPlayer needs to apply transform to it.
* Extend LayersTest.
* Use BStackOrHeapArray for polygons.
* Fixes #12937.

Change-Id: If0a4abec0168dbe9afe7ea92bb29017ea8c89c79
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10211
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Kacper Kasper
2026-01-06 21:22:30 +00:00
committed by waddlesplash
parent a65ba286ee
commit d620b23279
5 changed files with 236 additions and 52 deletions
+1 -2
View File
@@ -208,8 +208,7 @@ public:
BGradient& gradient, bool fill) {}
virtual void DrawShapeGradient(const BShape& shape, BGradient& gradient, bool fill) {}
virtual void SetFillRule(int32 fillRule) {}
virtual void StrokeLineGradient(const BPoint& start, const BPoint& end,
const BGradient& gradient) {}
virtual void StrokeLineGradient(const BPoint& start, const BPoint& end, BGradient& gradient) {}
};