Diffusion Krita 7ec98b3858b1

Implement KisRegion constructor for overlapping rects

Authored by dkazakov on May 14 2020, 11:41 PM.

Description

Implement KisRegion constructor for overlapping rects

Now we have KisRegion::fromOverlappingRects() which creates a region,
covering all the provided rects. The resulting region may be a bit
larger than the source rects by the providied tolerance. Such relaxed
requirements allow KisRegion be really much (2142 times!) faster than
QRegion.

We can/should use it for ouptimizing our updates sequences. We do not
care if updated area will be a bit larger, but we do care if overlapping
will be too high.

Details

Committed
dkazakovMay 21 2020, 4:38 PM
Parents
R37:6eef8c4e2acc: Fix Move Tool to work correctly with Instant Preview
Branches
Unknown
Tags
Unknown