summaryrefslogtreecommitdiff
path: root/xmloff/source/text/txtimp.cxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-02-10 17:15:19 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2021-02-24 15:24:15 +0100
commit7a0b7ef6d490e7ed7c35874b3feca75c79effdb7 (patch)
treebfa0877105d6ac2f27b007288a93cfd6243950cc /xmloff/source/text/txtimp.cxx
parent1f5dfe691540d69665d417fd8c454d4980e9c1d6 (diff)
always optimize bitmap transform to translate+scale if possible (tdf#138068)
Commit 828504974d70111e make OutputDevice::DrawTransformedBitmapEx() always call DrawTransformBitmapExDirect() in preference to explicitly converting to DrawBitmapEx() if the transformation wanted was at most translate+scale, in the hopes that these days the backend implementations work well enough. But it turns out only the Skia backend handles that without loss of performance. So always do the conversion to DrawBitmapEx() if possible. It's so simple that it possibly makes sense to always do this, regardless of the backend. Change-Id: I6eba68e672334c38433f53980f49400499f5d8e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110716 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com> (cherry picked from commit 9d89d98d3349502b56da4bdd6ea287ac4cde9ce5) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110779 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> (cherry picked from commit b6d67d3d18d46daaabb3532d176759c234196da7) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110919 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'xmloff/source/text/txtimp.cxx')
0 files changed, 0 insertions, 0 deletions