Bug 107532

Summary: Avoid unnecessary format conversion for tex{Sub}Image2D() for ImageData of WebGL
Product: WebKit Reporter: Jun Jiang <jun.a.jiang>
Component: WebGLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, kbr, ojan.autocc, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch none

Description Jun Jiang 2013-01-22 02:26:24 PST
There is mandatory format conversion existed for tex{Sub}Image2D() for ImageData of WebGL, which could be avoided when the destination format is RGBA and the type is UNSIGNED_BYTE and both the preMultiply and flip flags are false.
Comment 1 Jun Jiang 2013-01-22 02:32:55 PST
Created attachment 183941 [details]
Patch
Comment 2 Jun Jiang 2013-01-22 05:38:59 PST
Created attachment 183971 [details]
Patch
Comment 3 Jun Jiang 2013-01-22 05:42:44 PST
Add two comments in the code to make it easy to maintain.
Comment 4 Kenneth Russell 2013-01-23 13:51:20 PST
Comment on attachment 183971 [details]
Patch

Looks good. r=me
Comment 5 WebKit Review Bot 2013-01-23 14:28:08 PST
Comment on attachment 183971 [details]
Patch

Clearing flags on attachment: 183971

Committed r140595: <http://trac.webkit.org/changeset/140595>
Comment 6 WebKit Review Bot 2013-01-23 14:28:11 PST
All reviewed patches have been landed.  Closing bug.