diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-02-19 18:50:29 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-02-24 12:40:38 +0100 |
commit | 5d2faf94c2f0ac59223a84410979d57ba477ebf6 (patch) | |
tree | 987e946ff12ed626f091522d3956338ea061f713 /vcl/inc/salgdi.hxx | |
parent | 5ba5ac948db1092712ffeaef41983ea5f5dcb5cc (diff) |
actually prefer DrawTransformedBitmap() if it's known to be fast
This partially reverts the logic of change 9d89d98d3349502b56d,
which always made DrawTransformedBitmap() get changed to DrawBitmapEx
if only translation+scaling was involved. But since that one
may call BitmapEx::Mirror() that'll do pixel-shuffling, trust
the DrawTransformedBitmap() implementation to do the right and
efficient thing if it says so.
Change-Id: If25b3d189ddd46b235e122e5e8d6f8079ec09f7f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111248
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/inc/salgdi.hxx')
-rw-r--r-- | vcl/inc/salgdi.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/inc/salgdi.hxx b/vcl/inc/salgdi.hxx index 494f03eef5a5..175123342318 100644 --- a/vcl/inc/salgdi.hxx +++ b/vcl/inc/salgdi.hxx @@ -588,6 +588,7 @@ protected: double fAlpha) = 0; /// Used e.g. by canvas to know whether to cache the drawing. + /// See also tdf#138068. virtual bool hasFastDrawTransformedBitmap() const = 0; /** Render solid rectangle with given transparency |