Summary: | 3D transformed surfaces with z>0 gets cropped | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Lars Knudsen <larsgk> | ||||||||
Component: | WebCore Misc. | Assignee: | Lars Knudsen <larsgk> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | kenneth, noam, webkit.review.bot | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Attachments: |
|
Created attachment 131662 [details]
Patch
Comment on attachment 131662 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=131662&action=review LGTM - see nitpicks > Source/WebCore/ChangeLog:11 > + The scissor clipping in TextureMapperGL didn't > + take 3D transforms into account when calculating > + the clipping region. Now, it will bail out early > + if the transform is not affine. Weird line wrapping :) > Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp:607 > + if (!modelViewMatrix.isAffine()) Add a comment Created attachment 131665 [details]
Patch
Comment on attachment 131665 [details] Patch Clearing flags on attachment: 131665 Committed r110691: <http://trac.webkit.org/changeset/110691> All reviewed patches have been landed. Closing bug. |
Created attachment 131652 [details] Test page exposing what happens when clipping is done with no respect for 3D transforms. When rendering surfaces with a transform z>0 and in perspective, making the surface larger on screen than the corresponding surface with only 2D transforms, the surface gets cropped to a maximum size/shape of the same surface with no perspective applied. Test page exposing problem attached.