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

--- Comment #10 from Patrick (volunteer) <[email protected]> ---
(In reply to Telesto from comment #9)
> Indirectly related. Increasing the cache solves the performance issue I
> encountered at bug 167005 (on Windows) with a hi-resolution image.

Hmm. For me, increasing the Skia image cache didn't stop tdf#167005 on my
machine. Only increase GraphicMemoryLimit to 1024 MB worked.

So I think tdf#167005 and tdf#167007 are due to the GraphicMemoryLimit cache
revoking a graphic and its underlying SkiaSalBitmps. But with this bug, the
SkiaSalBitmaps don't appear to get deleted so this bug is due to having to
reblend the bitmap and its alpha repeatedly for each of the animation frames.

I don't know if this is a feasible or if it will solve any of these bugs, but I
wonder if we take up the reference count on the blended Skia image and cache it
and its key in the SkiaSalBitmap, we can use the cached image if it exists and
draw that instead of reblending.

That will cause a temporary increase in the Skia image cache size but by
caching the blended Skia images in the bitmap, the Skia image cache should go
back down when the document is closed or the image is revoked from the
GraphicMemoryLimit cache.

When I get some time, I can see if I can get this to work.

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

Reply via email to