summaryrefslogtreecommitdiff
path: root/splash
AgeCommit message (Collapse)AuthorFilesLines
2019-12-03Add some more constAlbert Astals Cid1-1/+1
2019-12-03Enable modernize-loop-convertAlbert Astals Cid3-14/+17
2019-12-02Enable modernize-use-overrideAlbert Astals Cid3-3/+3
not claiming copyright for this since it's a mechanical change
2019-11-29Enable modernize-deprecated-headersAlbert Astals Cid16-29/+29
2019-11-29Enable readability-inconsistent-declaration-parameter-nameAlbert Astals Cid3-5/+6
2019-10-07Update (C) of previous commitAlbert Astals Cid2-0/+2
2019-10-07Move the non-trivial part of the clip test to the implementation fileStefan Brüns2-18/+18
This allows to only have a SplashXPathScanner forward declaration in the header file.
2019-10-07Include SplashMath.h only where neededStefan Brüns2-1/+1
2019-10-02Enable clang-tidy bugprone-too-small-loop-variableAlbert Astals Cid1-3/+3
And fixes for it in the code
2019-09-30Run clang-tidy on CIAlbert Astals Cid2-4/+4
Only with the performance- checks enabled for now
2019-09-27Update (C) of previous commitAlbert Astals Cid4-4/+4
2019-09-27Add some constAlbert Astals Cid5-9/+10
Suggested by clang-tidy readability-non-const-parameter check
2019-09-01SplashBitmap: Fix wrong width condition for splashModeDeviceN8Albert Astals Cid1-3/+3
2019-08-24Always enable SPLASH_CMYKAlbert Astals Cid7-141/+11
Doesn't seem to cause any speed regression and one ifdef less is code easier to maintain
2019-08-20Remove USE_FIXEDPOINT supportAdrian Bunk5-172/+7
This was already non-compiling for some time. Closes #821
2019-07-21SplashXPathScanner: Optionally use small_vector from boostStefan Brüns2-0/+16
Currently, each row in the intersections vector is allocated separately, when the first intersection is added. To avoid these allocations for common simple polygons, boost::container::small_vector<4, T> is used, which stores up to 4 intersections inline. small_vector is a header-only class. For the documents from #57 (fdo#96728) and #24 (fdo#78728), the runtime/memory is significantly reduced (according to /usr/bin/time -v): (1) $> pdftoppm -r 18 -aa no runsforever-poppler.pdf (2) $> pdftoppm surf-types.pdf Before/After runsforever-poppler | surf-types User time (seconds): 2348.08 / 1773.53 | 7.76 / 5.02 Maximum resident set size (kbytes): 46288 / 45896 | 14076 / 13748
2019-06-27Convert all files to UTF-8Daniel Schaefer3-3/+3
They were ISO-8859 before.
2019-06-21Splash: Rename local variable to fix shadow warningAlbert Astals Cid1-6/+6
2019-06-05adjustLine -> doAdjustLineAlbert Astals Cid1-3/+3
fixes shadow warning
2019-06-05Splash::makeDashedPath: Remove i declaration in forAlbert Astals Cid1-2/+2
We already have one above and this causes a shadow warning
2019-05-14Update (C) of previous commitAlbert Astals Cid1-0/+1
2019-05-13Splash: Restrict filling of overlapping boxesMarek Kasik1-15/+33
Check whether area to fill in Splash::blitTransparent() does not run out of allocated memory for source and for destination and shrink it if needed. Fixes #750
2019-04-22Add (C) for previous commitAlbert Astals Cid1-1/+1
2019-04-22Fix compile with SPLASH_CMYK enabledWilliam Bader1-9/+9
2019-04-03Update (C) of previous commitAlbert Astals Cid1-1/+1
2019-04-03SplashXPathScanner::clipAALine: Fix crash on broken fileAlbert Astals Cid1-1/+4
Make sure the index of allIntersections we access is valid Fixes #748
2019-03-21Update (C) from last commitAlbert Astals Cid3-0/+3
2019-03-21Remove GooList completelyOliver Sander3-7/+5
2019-03-21Remove method GooList::getOliver Sander2-2/+2
Use operator[] instead. This is another move towards discarding GooList in favor of std::vector.
2019-03-21Remove method deleteGooListOliver Sander1-1/+4
2019-03-21Make GooList a template typeOliver Sander3-8/+8
One more step towards getting rid of it completely.
2019-03-21Remove method GooList::getLengthOliver Sander2-3/+3
Use method 'size' (from std::vector) instead.
2019-02-03SplashXPath: Handle overflow of adjusts gracefullyAlbert Astals Cid1-59/+61
oss-fuzz/12638
2019-01-19Update (C)Albert Astals Cid3-0/+3
2019-01-18all: Remove support for obsolete systemsChristian Persch3-24/+0
https://gitlab.freedesktop.org/poppler/poppler/issues/709
2019-01-05Update (C) of previous commitsAlbert Astals Cid1-0/+1
2019-01-03all: Use the openFile fopen wrapper from gfile.hChristian Persch1-3/+4
Use the openFile wrapper instead of calling fopen directly in the libraries.
2019-01-02Update (C)Albert Astals Cid1-1/+1
2019-01-02Allocate SplashXPathScanner on the stackStefan Brüns1-22/+15
SplashXPathScanner is only used inside the each fill function, but newer passed to the outside. As it is small, there is no reason to not allocate it on the stack.
2018-12-21Remove method SplashFTFontFile::getCodeToGIDOliver Sander2-7/+0
This method was added in cc43c720e857548175a9e35b0686a1a7a8957f50 for the use in the ArturOutputDev::updateFont. It is not use there anymore, and can therefore be removed again.
2018-12-20Fix minor typosYuri Chornoivan1-1/+1
2018-12-06Remove the file gtypes.h completelyOliver Sander7-10/+0
2018-12-06Replace Guint by unsigned intOliver Sander4-30/+30
2018-12-06Replace Gushort by unsigned shortOliver Sander1-6/+6
2018-12-06Replace Guchar by unsigned charOliver Sander18-310/+310
2018-11-11Rename GooString::getCString GooString::c_strOliver Sander4-7/+7
This is the name used by std::string.
2018-11-11Update (C) of last commitsAlbert Astals Cid2-2/+2
2018-11-09Pass small and trivially-copyable type by valueAlbert Astals Cid2-2/+2
2018-10-30Fix crash if document is malformed (too wide)Albert Astals Cid1-1/+6
oss-fuzz/11195
2018-10-23Replace GBool, gTrue, and gFalse by bool, true, false, resp.Oliver Sander32-376/+376
These are just non-standard names for bool, true, false, respectively. Getting rid of these names saves on layer of mental redirection, and enables proper syntax highlighting in editors.