On Tue, 29 Mar 2022 23:33:19 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

> As far as I remember the best solution(used by the javafx) is to draw layers 
> by the fillArea(shadow area->then border area then component area), I am not 
> sure it will be much slower.

Yes, within a Region, that's how we do it. We render 0 or more background rects 
(filled), then 0 or more borders (stroked). Then the children are rendered.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7449

Reply via email to