summaryrefslogtreecommitdiff
path: root/external/cairo/pixman
AgeCommit message (Collapse)Author
2017-12-23pixman: drop cached glyphs above size watermarkAshod Nakashian
The glyphs cache only tracked the number of glyphs in the cache, which isn't very useful when the glyphs vary in size from a few bytes to dozens of megabytes. In terms of memory footprint, we are interested not just in the number of cached glyphs, but also in the total memory usage. We now track the pixel-size of each glyph and drop as many as necessary to fall below the set threshold which is currently 4 MBs. There was no performance loss observed after this patch on a diverse set of documents of all types (if anything, a very modest performance win was hinted in some cases), with significant memory reduction in some cases where dozens of megabytes were previously left stale in the cache. Change-Id: I377a4c1e59611fca6bf253dd9fa90f75b5295d4b Reviewed-on: https://gerrit.libreoffice.org/45378 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com> (cherry picked from commit 407660a08c8df27d7cd44435eefa31bd92364a3c) (cherry picked from commit ded39dc17a34127a872b11abddc32bbbb5aae047) Reviewed-on: https://gerrit.libreoffice.org/46987 Tested-by: Jenkins <ci@libreoffice.org>
2017-11-24ubsan: runtime error: left shift of 249 by 24 placesCaolán McNamara
pixman-bits-image.c:309:20: runtime error: left shift of 249 by 24 places cannot be represented in type 'int' Change-Id: I4f67752f7826225cd2175198084a29ac248b873f Reviewed-on: https://gerrit.libreoffice.org/45226 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-24ubsan: runtime error: left shift of 255 by 24 placesCaolán McNamara
pixman-fast-path.c:2839:21: runtime error: left shift of 255 by 24 places cannot be represented in type 'int' Change-Id: I9afeee371aeef24bfc0c809b142b424c653fea2e Reviewed-on: https://gerrit.libreoffice.org/45223 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-24ubsan: pixman.c:347:10: runtime error: left shift of negative value -1Caolán McNamara
with fdo64256-1.docx Change-Id: I27dc510b1f178d535bc6b2dace34cdae1d9cd62a Reviewed-on: https://gerrit.libreoffice.org/45222 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-22ofz#4372 Undefined-shiftCaolán McNamara
upstreamed as https://bugs.freedesktop.org/show_bug.cgi?id=103845 Change-Id: I48430b2ab62991345863bceeaf3a6918f9dd1fda Reviewed-on: https://gerrit.libreoffice.org/45078 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-08-24cairo: upgrade pixman to release 0.34.0, cairo to release 1.14.6Michael Stahl
* from pixman-0.24.4.patch drop: - Android support config.sub: obsoleted by new upstream autoconf - configure Mac OS X 10.4 (unsupported) linker warning - configure getisax Solaris check: it's unclear why this would give a wrong result on Linux, it certainly does't on Fedora 24... - __inline__ workaround looks fixed upstream * drop pixman-0.24.4.android.patch: obsoleted by new upstream autoconf * from cairo-1.10.2.patch drop: - Makefile.win32.common: drop this for now, we don't build cairo on windows and paths in this patch are still dmake INPATH... - Android support config.sub: obsoleted by new upstream autoconf - configure "libpng15" should be obsolete since it's overridden by png_CFLAGS/png_LIBS anyway - configure Mac OS X 10.4 (unsupported) linker warning - cairo-output-stream.c: fixed upstream - cairo-ft-font.c: presumed obsolete, FcResultOutOfMemory added in 2004 * drop cairo.dlsym.lcdfilter.patch: FT_Library_SetLcdFilter since 2.3.0 so exists in RHEL 6 baseline (2.3.11) * drop cairo-1.10.2-oldfontconfig.patch: RHEL 6 baseline has fontconfig 2.8.0 so 2.2.95 isn't "too new" * drop cairo-1.10.2.wntmsc.patch: we don't build cairo on windows currently, and this doesn't apply * drop no-flto-clang.patch: fixed upstream * remove definition of COMPRESS var that appears to be completely unused Change-Id: I5d782b9267c348c266ef369db2f8ac2c3c70b90d Reviewed-on: https://gerrit.libreoffice.org/28365 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2013-10-17fdo#70393: move cairo to a subdir of externalKhaled Hosny
Change-Id: I5a5d43521d3d7227dadd05525e2c69c63a3f1c1b Reviewed-on: https://gerrit.libreoffice.org/6284 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>