RESOLVED FIXED105809
[Texmap] Use a transform uniform instead of u_flip/u_textureSize
https://bugs.webkit.org/show_bug.cgi?id=105809
Summary [Texmap] Use a transform uniform instead of u_flip/u_textureSize
Noam Rosenthal
Reported 2012-12-27 15:20:38 PST
[Texmap] Use a transform uniform instead of u_flip/u_textureSize
Attachments
Patch (4.68 KB, patch)
2012-12-27 15:24 PST, Noam Rosenthal
no flags
Patch (4.72 KB, patch)
2012-12-27 16:01 PST, Noam Rosenthal
no flags
Patch (4.72 KB, patch)
2012-12-28 20:34 PST, Noam Rosenthal
no flags
Noam Rosenthal
Comment 1 2012-12-27 15:24:18 PST
Martin Robinson
Comment 2 2012-12-27 15:45:57 PST
Comment on attachment 180826 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=180826&action=review Looks good to me, but I have a couple questions. > Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp:505 > + patternTransform.setM22(-1); Why not patternTransform.flipY() ? > Source/WebCore/platform/graphics/texmap/TextureMapperShaderManager.cpp:176 > + // Clamp in the shader, we can't rely on the texture wrap mode to clamp. > + vec4 clampedPosition = clamp(vec4(position, 0., 1.), 0., 1.); Hrm. I don't really understand this bit of code...
Noam Rosenthal
Comment 3 2012-12-27 15:54:54 PST
(In reply to comment #2) > (From update of attachment 180826 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=180826&action=review > > Looks good to me, but I have a couple questions. > > > Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp:505 > > + patternTransform.setM22(-1); > > Why not patternTransform.flipY() ? > > > Source/WebCore/platform/graphics/texmap/TextureMapperShaderManager.cpp:176 > > + // Clamp in the shader, we can't rely on the texture wrap mode to clamp. > > + vec4 clampedPosition = clamp(vec4(position, 0., 1.), 0., 1.); > > Hrm. I don't really understand this bit of code...
Noam Rosenthal
Comment 4 2012-12-27 16:01:06 PST
Noam Rosenthal
Comment 5 2012-12-28 20:34:26 PST
WebKit Review Bot
Comment 6 2012-12-28 21:11:37 PST
Comment on attachment 180912 [details] Patch Clearing flags on attachment: 180912 Committed r138556: <http://trac.webkit.org/changeset/138556>
WebKit Review Bot
Comment 7 2012-12-28 21:11:41 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.