client: Avoid additional translations copying backing store contents
The current code uses QPainter to copy damaged contents into the new
back buffer.
QPainter operates in logical pixels taking into account the
devicePixelRatio transparently. The current code tries to undo this with
another translation on top to work in device pixels.
With floating point numbers there's a tiny amount of inprecision, each
translation adds a tiny amount of error. The end result is pixels can
get missed.
Making QPainter calls in logical pixels gives us the exact path as the
main rendering.
Pick-to: 6.8
Change-Id: I2f6bd8a69a7273f21055248973e14e14066b1c67
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>