https://bugs.documentfoundation.org/show_bug.cgi?id=160036

--- Comment #10 from Patrick Luby (volunteer) <[email protected]> ---
I looked at the code and it is definitely doing XOR drawing of the selection
polygon. The last case of XOR failing with Skia/Raster I fixed by drawing
normally with polygonal clipping:

https://git.libreoffice.org/core/+/c43d11cbbabc871a3c71062239b0d9b6db99961e%5E%21

Below is the relevant portion of the stack when doing the XOR drawing. Maybe
there is a way we could replace XOR drawing and, instead, draw normally with
polygonal clipping without copying the buffer?:

    frame #4: 0x0000000117d597e8
libmergedlo.dylib`drawinglayer::processor2d::VclPixelProcessor2D::processInvertPrimitive2D(this=0x0000600002b1ca10,
rCandidate=0x000060000a34a4e0) at vclpixelprocessor2d.cxx:911:21
    frame #5: 0x0000000117d576c8
libmergedlo.dylib`drawinglayer::processor2d::VclPixelProcessor2D::processBasePrimitive2D(this=0x0000600002b1ca10,
rCandidate=0x000060000a34a4e0) at vclpixelprocessor2d.cxx:343:13
    frame #6: 0x0000000117d2f7e4
libmergedlo.dylib`drawinglayer::processor2d::BaseProcessor2D::process(this=0x0000600002b1ca10,
rSource=0x000000016fdfba28) at baseprocessor2d.cxx:69:21
    frame #7: 0x000000011a68e0e4
libmergedlo.dylib`sdr::overlay::OverlayManager::ImpDrawMembers(this=0x00000003824f5310,
rRange=0x000000016fdfbde0, rDestinationDevice=0x00000003824f6250) const at
overlaymanager.cxx:88:41
    frame #8: 0x000000011a6856fc
libmergedlo.dylib`sdr::overlay::OverlayManagerBuffered::ImpBufferTimerHandler(this=0x00000003824f5310,
(null)=0x00000003824f5420) at overlaymanagerbuffered.cxx:289:33

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to