Fully disable antialiasing when painting individual images


When painting an image with drawImage(), disable antialiasing instead
of just setting it to 0. This can increase performance notably when
painting a lot of images. For example with QCPainterBench icons test,
render count at 256, I'm seeing 42 -> 86 fps improvement on D3D11.
With D3D12 and OpenGL the increase is not as big.

Also move the implementation of drawImage with a sourceRect into
engine side and remove unused drawImageId() method.

Pick-to: 6.11
Change-Id: I5ee9f7348b22987778379fba822b32200ad48514
Reviewed-by: Owais Akhtar <owais.akhtar@qt.io>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
commitaab0d52883091ee94af2806757f0f6162231c094
parent72fb0a5c3ae5a06284478d409dd8a4762f8a37d6
authorKaj Grönholm <kaj.gronholm@qt.io>
committerKaj Grönholm <kaj.gronholm@qt.io>
commit timeMon, 9 Mar 2026 13:31:30 +0200