diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2015-01-17 20:46:55 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2015-01-19 12:17:52 +0100 |
commit | 0bdad2b3b6a2b4c252ff71c2b3995485fd34ed8d (patch) | |
tree | f5f8ace0b0d8d57a28b7faa766a1ece3089ed7c5 /include | |
parent | ab65925b40134ff7d8b88c61db5235549599385f (diff) |
use supersampling in Impress if fast opengl scaling is available
So far it's been always disabled, with the exception of the slide preview
extension.
Change-Id: Iaee6fe2d5267c9dfdc31cbf4fb90a9ac0e08e781
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/bitmap.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index 2dbfa8161993..0fe2afa4eda1 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -560,6 +560,15 @@ public: */ bool Scale( const double& rScaleX, const double& rScaleY, sal_uInt32 nScaleFlag = BMP_SCALE_DEFAULT ); + /** + Returns true if bitmap scaling is considered to be fast. + + Currently this returns true if OpenGL is used for scaling, otherwise false (CPU scaling is slower). + + @since 4.5 + */ + static bool HasFastScale(); + // Adapt the BitCount of rNew to BitCount of lolal, including grey or color paltette // Can be used to create alpha/mask bitmaps after their processing in 24bit void AdaptBitCount(Bitmap& rNew) const; |