diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-04-23 17:21:47 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-04-23 19:22:09 +0200 |
commit | 5a729407e858ee5ed5b621a6fcc0a4f104c9a017 (patch) | |
tree | 3124a04d7d2666190d0e75d7d93aec2d0aa66a11 /vcl/inc/impgraph.hxx | |
parent | 195e12bdc516c9272b7ae353ad6279e457215911 (diff) |
vcl: avoid swap in when Graphic::GetSizePixel() is called
It's easier to fix this centrally in vcl, rather than not calling
GetSizePixel() in each and every import filter.
Change-Id: Ie0a788b8a5b886ebc2fedf0dc052deb4149b9364
Reviewed-on: https://gerrit.libreoffice.org/53333
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'vcl/inc/impgraph.hxx')
-rw-r--r-- | vcl/inc/impgraph.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/inc/impgraph.hxx b/vcl/inc/impgraph.hxx index 660fdfce81cd..cff173b9a3fb 100644 --- a/vcl/inc/impgraph.hxx +++ b/vcl/inc/impgraph.hxx @@ -27,6 +27,7 @@ struct ImpSwapInfo { MapMode maPrefMapMode; Size maPrefSize; + Size maSizePixel; bool mbIsAnimated; bool mbIsEPS; @@ -155,6 +156,8 @@ private: Animation ImplGetAnimation() const; const GDIMetaFile& ImplGetGDIMetaFile() const; + Size ImplGetSizePixel() const; + Size ImplGetPrefSize() const; void ImplSetPrefSize( const Size& rPrefSize ); |