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

--- Comment #9 from Mike Kaganski <mikekagan...@hotmail.com> ---
Note that SkiaSalGraphicsImpl::postDraw (vcl/skia/gdiimpl.cxx) has two calls to
abort. The second one for 'abandoned' [1] case, which is likely not something
we can do much about, aside from debugging on the relevant HW/SW combination
(unlikely) or blacklist; but the first one is a recoverable 'oomed' [2] case,
which maybe could be treated like this: there is a precaution above, checking
pendingOperationsToFlush value. We could try to ignore the error then (pretend
that we have drawn it OK), and decrease the value it compares to - e.g., halve
it? So that the next time it would flush on 500 instead of 1000 pending
operations. And so on.

The oomed is documented to be implemented for Vulkan; and to be reset
automatically until a next OOM error from HW. Julien: do you think it would be
reasonable?

[1]
https://api.skia.org/classGrDirectContext.html#a5c1c5c644a82f21ce2af991b4f451348
[2]
https://api.skia.org/classGrDirectContext.html#a46cacd2825836fd0305ee183e6fd276e

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

Reply via email to