office-gobmx/include
Michael Stahl f9028f1945 vcl: improve accounting of SVG images in graphics cache
The problem is that the graphics cache only counts the size of the SVG
text, which is stored in SvgData::maSvgDataArray.  However the
SvgData::maSequence may use a lot more memory, as it may contain
de-compressed bitmaps that are stored as base64-encoded PNGs in the SVG
text.

For example icon-themes/galaxy/brand/flat_logo.svg is 812 Ko but contains
60 Mo of bitmaps.

This may cause excessive memory usage and failure to export documents
due to OOM; according to valgrind massif, the bitmap buffers use 90% of
the heap.

Add a new interface com::sun::util::XAccounting, and implement
it in drawinglayer BasePrimitive2D.  VCL SvgData can't access
drawinglayer via C++ directly so this looks like the best approach.

Change-Id: I5a7c3147733e23473c1decabed24c1f79d951c7d
Reviewed-on: https://gerrit.libreoffice.org/30669
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-11-07 18:52:22 +00:00
..
animations
apple_remote
avmedia
basegfx
basic
canvas
codemaker
com/sun/star/uno
comphelper We have exactly the same file as include/unotools/ZipPackageHelper.hxx. 2016-11-05 00:11:57 +01:00
connectivity coverity#1371275 Missing move assignment operator 2016-10-28 10:09:32 +01:00
cppcanvas loplugin:unusedmethods unused return types 2016-11-03 11:37:31 +00:00
cppu
cppuhelper
cppunittester
dbaccess update unnecessaryoverride plugin to find pure forwarding methods 2016-10-28 12:56:17 +00:00
desktop
drawinglayer vcl: improve accounting of SVG images in graphics cache 2016-11-07 18:52:22 +00:00
editeng make a useful function - SvxBoxItem::CalcLineWidth 2016-11-05 20:03:57 +00:00
filter
formula
framework SafeMode: Add indicator to window title when in Safe Mode 2016-11-03 12:20:11 +00:00
helpcompiler
i18nlangtag
i18nutil
jvmaccess
jvmfwk
LibreOfficeKit
linguistic
o3tl
onlineupdate
oox loplugin:unusedfields 2016-11-02 07:54:20 +00:00
opencl
osl
package
registry
rsc
rtl Revert "Revert "Prevent nonsensical comparations between OUString and nullptr_t"" 2016-10-31 15:29:17 +00:00
sal safemode: Add option to disable H/W acceleration 2016-11-01 14:54:04 +00:00
salhelper
sax tdf#103544: DOCX exp.: Image loss when have a frame anchored to the same para. 2016-10-28 14:10:41 +00:00
sfx2 sfx2: introduce a new .uno:SignPDF 2016-11-07 13:46:57 +01:00
shell
sot
store
svl loplugin:unnecessaryvirtual in sfx2..svtools 2016-11-07 09:39:55 +00:00
svtools loplugin:unnecessaryvirtual in sfx2..svtools 2016-11-07 09:39:55 +00:00
svx loplugin:unnecessaryvirtual in svx..sw 2016-11-07 12:06:35 +00:00
systools/win32
test loplugin:unnecessaryvirtual in test..vbahelper 2016-11-07 10:11:33 +00:00
toolkit loplugin:unnecessaryvirtual in test..vbahelper 2016-11-07 10:11:33 +00:00
tools loplugin:unnecessaryvirtual in test..vbahelper 2016-11-07 10:11:33 +00:00
touch
tubes Use SAL_DLLPRIVATE instead of extra TUBES_DLLPRIVATE 2016-10-28 08:52:47 +02:00
typelib
ucbhelper
uno
unoidl loplugin:unnecessaryvirtual in test..vbahelper 2016-11-07 10:11:33 +00:00
unotest
unotools Add helper for creating zip files 2016-11-03 11:25:16 +00:00
vbahelper loplugin:unnecessaryvirtual in test..vbahelper 2016-11-07 10:11:33 +00:00
vcl vcl: improve accounting of SVG images in graphics cache 2016-11-07 18:52:22 +00:00
wntgcci
wntgccx
xmloff update loplugin:unnnecessaryvirtual to handler destructors 2016-11-04 07:15:03 +00:00
xmlreader
xmlscript
default.rc
postmac.h
postwin.h
premac.h
prewin.h
version.hrc