diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-11-04 08:34:41 +0100 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-11-07 10:45:18 +0100 |
commit | 8710b09b0ee272b7600611127d76ed4699863075 (patch) | |
tree | a4f9bc870033bea1c8cc29c98cf86dcb4b39b6db /include/svtools | |
parent | Make SdrGrafObj swapping methods private. (diff) | |
download | core-8710b09b0ee272b7600611127d76ed4699863075.tar.gz core-8710b09b0ee272b7600611127d76ed4699863075.zip |
Optimize ImplCheckSizeOfSwappedInGraphics() a bit
Store used size as a member so we don't need to recalculate it
all the time and no need to use a size map.
Change-Id: I1f929c5d3a56f545cef123bda087ecaf8ca0be4a
Diffstat (limited to 'include/svtools')
-rw-r--r-- | include/svtools/grfmgr.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/svtools/grfmgr.hxx b/include/svtools/grfmgr.hxx index d51577345347..2bdbc9a1c24d 100644 --- a/include/svtools/grfmgr.hxx +++ b/include/svtools/grfmgr.hxx @@ -520,6 +520,7 @@ class SVT_DLLPUBLIC GraphicManager private: GraphicObjectList_impl maObjList; + sal_uLong mnUsedSize; // currently used memory footprint of all swapped in graphics GraphicCache* mpCache; GraphicManager( const GraphicManager& ) {} |