Kaydet (Commit) 0c7d0f71 authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz: solveCrossovers performance is abysmal on large polygons

just give up on it for fuzzing purposes

Change-Id: I8d91fa547d83bc2f28454812280b0a7054e05b62
Reviewed-on: https://gerrit.libreoffice.org/48835Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst b2d73530
...@@ -924,7 +924,7 @@ namespace emfio ...@@ -924,7 +924,7 @@ namespace emfio
void MtfTools::UpdateClipRegion() void MtfTools::UpdateClipRegion()
{ {
if ( mbClipNeedsUpdate ) if (mbClipNeedsUpdate && !utl::ConfigManager::IsFuzzing())
{ {
mbClipNeedsUpdate = false; mbClipNeedsUpdate = false;
mbComplexClip = false; mbComplexClip = false;
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
#include <tools/diagnose_ex.h> #include <tools/diagnose_ex.h>
#include <tools/helpers.hxx> #include <tools/helpers.hxx>
#include <tools/line.hxx> #include <tools/line.hxx>
#include <unotools/configmgr.hxx>
#include <vcl/graphictools.hxx> #include <vcl/graphictools.hxx>
#include <vcl/metaact.hxx> #include <vcl/metaact.hxx>
#include <vcl/virdev.hxx> #include <vcl/virdev.hxx>
...@@ -2369,7 +2370,7 @@ SdrObject* SdrObject::ImpConvertToContourObj(SdrObject* pRet, bool bForceLineDas ...@@ -2369,7 +2370,7 @@ SdrObject* SdrObject::ImpConvertToContourObj(SdrObject* pRet, bool bForceLineDas
} }
// check for fill rsults // check for fill rsults
if(!aExtractedLineFills.empty()) if (!aExtractedLineFills.empty() && !utl::ConfigManager::IsFuzzing())
{ {
// merge to a single tools::PolyPolygon (OR) // merge to a single tools::PolyPolygon (OR)
aMergedLineFillPolyPolygon = basegfx::utils::mergeToSinglePolyPolygon(aExtractedLineFills); aMergedLineFillPolyPolygon = basegfx::utils::mergeToSinglePolyPolygon(aExtractedLineFills);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment