RESOLVED FIXED 40318
Add texImage2D and texSubImage2D signatures with internal format, etc.
https://bugs.webkit.org/show_bug.cgi?id=40318
Summary Add texImage2D and texSubImage2D signatures with internal format, etc.
Kenneth Russell
Reported 2010-06-08 11:59:16 PDT
Per recent updates to the WebGL spec: - New texImage2D entry points need to be added taking internalformat, format and type arguments, and removing the optional flipY and as asPremultipliedAlpha. - New texSubImage2D entry points need to be added taking format and type arguments, and removing the optional flipY and as asPremultipliedAlpha. - pixelStorei needs to be updated to take the new UNPACK_FLIP_Y_WEBGL and UNPACK_PREMULTIPLY_ALPHA_WEBGL enums. These must apply to all texImage2D and texSubImage2D variants. The actual implementation of the format conversion should be deferred to another bug. Additionally, the existing entry points should be left in place for compatibility for a brief time.
Attachments
Patch (51.63 KB, patch)
2010-06-11 14:36 PDT, Kenneth Russell
dglazkov: review+
kbr: commit-queue-
Kenneth Russell
Comment 1 2010-06-09 18:14:58 PDT
Implementing the UNPACK_FLIP_Y_WEBGL and UNPACK_PREMULTIPLY_ALPHA pixelStorei parameters for the texImage2D and texSubImage2D entry points taking ArrayBufferView will make this patch too large. This will be done in a separate fix.
Kenneth Russell
Comment 2 2010-06-11 14:36:35 PDT
Created attachment 58508 [details] Patch From the ChangeLog: Added new texImage2D and texSubImage2D entry points following WebGL specification changes. Added UNPACK_FLIP_Y_WEBGL and UNPACK_PREMULTIPLY_ALPHA_WEBGL pixelStorei parameters, honored them for the new entry points taking HTML elements, and added support to getParameter. Added warnings to the console for calls to the obsolete entry points, which will be removed in a few weeks. Updated all layout tests to use the new entry points and pixelStorei parameters, and associated expectations. No other new tests.
Dimitri Glazkov (Google)
Comment 3 2010-06-11 14:44:37 PDT
Comment on attachment 58508 [details] Patch yay!
Kenneth Russell
Comment 4 2010-06-11 15:04:11 PDT
WebKit Review Bot
Comment 5 2010-06-11 15:32:54 PDT
http://trac.webkit.org/changeset/61039 might have broken SnowLeopard Intel Release (Tests)
Note You need to log in before you can comment on or make changes to this bug.