diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-02-06 13:46:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-02-07 11:31:16 +0100 |
commit | 9f3926df5c2828ad3e8cfce2b4444b1c84352cf4 (patch) | |
tree | 35507a2844046b794076c4ae00c4f4b012b87e42 /vcl/inc/salbmp.hxx | |
parent | 467324f1071c65f6189e7ea567088918b51d2228 (diff) |
tdf#123165 cache recently scaled bitmaps for reuse
dropping the cached scaled bitmap when the bitmap
is accesed via BitmapAccessMode::Write for writing
Change-Id: Ib6539522944838238bd699ec3531039d21dc0f8b
Reviewed-on: https://gerrit.libreoffice.org/67459
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/inc/salbmp.hxx')
-rw-r--r-- | vcl/inc/salbmp.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/inc/salbmp.hxx b/vcl/inc/salbmp.hxx index 9e58c3bd38e0..5b020f617c4d 100644 --- a/vcl/inc/salbmp.hxx +++ b/vcl/inc/salbmp.hxx @@ -73,6 +73,8 @@ public: virtual bool ScalingSupported() const = 0; virtual bool Scale( const double& rScaleX, const double& rScaleY, BmpScaleFlag nScaleFlag ) = 0; + void DropScaledCache(); + virtual bool Replace( const Color& rSearchColor, const Color& rReplaceColor, sal_uInt8 nTol ) = 0; virtual bool ConvertToGreyscale() |