Bug 105809

Summary: [Texmap] Use a transform uniform instead of u_flip/u_textureSize
Product: WebKit Reporter: Noam Rosenthal <noam>
Component: New BugsAssignee: Noam Rosenthal <noam>
Status: RESOLVED FIXED    
Severity: Normal CC: jturcotte, kenneth, mrobinson, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 105377    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Noam Rosenthal 2012-12-27 15:20:38 PST
[Texmap] Use a transform uniform instead of u_flip/u_textureSize
Comment 1 Noam Rosenthal 2012-12-27 15:24:18 PST
Created attachment 180826 [details]
Patch
Comment 2 Martin Robinson 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...
Comment 3 Noam Rosenthal 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...
Comment 4 Noam Rosenthal 2012-12-27 16:01:06 PST
Created attachment 180828 [details]
Patch
Comment 5 Noam Rosenthal 2012-12-28 20:34:26 PST
Created attachment 180912 [details]
Patch
Comment 6 WebKit Review Bot 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>
Comment 7 WebKit Review Bot 2012-12-28 21:11:41 PST
All reviewed patches have been landed.  Closing bug.