[Webkit-unassigned] [Bug 218278] [GTK][WPE] Enable direct compositing of images with rounded corners

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 10 05:10:58 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=218278

--- Comment #2 from Miguel Gomez <magomez at igalia.com> ---
I've been thinking about this for a while and I think we should not enable this optimization. There are 2 main reasons for this:

1 - The advantage of this optimization is that we could directly send the images to the compositor to be uploaded as textures and be painted without having to render the image with cairo first. The reality is that, even enabling it, the image is painted into a buffer with cairo anyway, and that buffer is the one being passed to the compositor. So there's no gain anyway. To get some improvement we should send the image directly to the compositor as well, but that means problems with the threads and the image reference.

2 - As mentioned before, at the moment when we have to decide whether the optimization can be used, the global transformation matrix of the layer is not calculated. We would need to recursively calculate it at that point to check whether it's invertible so the clip can be done. This is doable, but the transformation matrix can change after that (animations), so there could be a situation where the matrix is not invertible anymore and the clip stops working. So we can't decide beforehand whether the clip is going to work for all the cases, which IMO makes this unusable.

So, at least for the moment, I'll close this bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201110/26412f2b/attachment.htm>


More information about the webkit-unassigned mailing list