Canvas2D: Properly handle brush pointers


Brushes need to be copied at the time user assigns them, or it might be
that the brush has been deleted by the time renderer uses them. This
isn't particularly nice, but needed as QCanvasBrush isn't properly
implicitly shared (see QTBUG-144163).

Change-Id: I10506019680843a09045244f594bfcf09af672f1
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
commitd9ba061bd89331afe3ad3d519d205021623909ba
parent09d24af739a44ae1b73ca71777d8bc3ca8326d3b
authorKaj Grönholm <kaj.gronholm@qt.io>
committerKaj Grönholm <kaj.gronholm@qt.io>
commit timeTue, 5 May 2026 12:31:23 +0000