NEW247042
TextureMapper: Calculate the bounding box of a layer transformed by 4x4 matrix precisely by intersecting with the viewport
https://bugs.webkit.org/show_bug.cgi?id=247042
Summary TextureMapper: Calculate the bounding box of a layer transformed by 4x4 matri...
Fujii Hironori
Reported 2022-10-25 18:28:29 PDT
Created attachment 463245 [details] test case bug#244824 added transformedBoundingBox to calculate the bounding box of a layer transformed by 4x4 matrix. However, it isn't precise. For example, in the test case, the right side of the blue element is at infinity. transformedBoundingBox is assuming the positions of the right side are (inf, inf) and (-inf, -inf). We can calculate more precise bounding box by intersecting element edges with the viewport.
Attachments
test case (582 bytes, text/html)
2022-10-25 18:28 PDT, Fujii Hironori
no flags
Radar WebKit Bug Importer
Comment 1 2022-11-01 18:29:17 PDT
Note You need to log in before you can comment on or make changes to this bug.