Bug 247042 - TextureMapper: Calculate the bounding box of a layer transformed by 4x4 matrix precisely by intersecting with the viewport
Summary: TextureMapper: Calculate the bounding box of a layer transformed by 4x4 matri...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-10-25 18:28 PDT by Fujii Hironori
Modified: 2022-11-01 18:29 PDT (History)
1 user (show)

See Also:


Attachments
test case (582 bytes, text/html)
2022-10-25 18:28 PDT, Fujii Hironori
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 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.
Comment 1 Radar WebKit Bug Importer 2022-11-01 18:29:17 PDT
<rdar://problem/101835693>