Bug 40443

Summary: Delete custom JSC bindings for bufferData, texImage2D and texSubImage2D
Product: WebKit Reporter: Kenneth Russell <kbr>
Component: WebGLAssignee: Kenneth Russell <kbr>
Status: RESOLVED FIXED    
Severity: Normal CC: cmarrin, dglazkov, oliver, yaar, zmo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 38920, 40450    
Bug Blocks: 40318    
Attachments:
Description Flags
Patch
dglazkov: review+, kbr: commit-queue-
Revised patch dglazkov: review+, kbr: commit-queue-

Description Kenneth Russell 2010-06-10 14:04:07 PDT
CodeGeneratorJS.pm has been updated to support overloaded methods in bug 38920. The custom JSC bindings for WebGLRenderingContext's bufferData, texImage2D and texSubImage2D should now be deleted. This will simplify needed work to update the signatures for texImage2D and texSubImage2D for recent spec changes.
Comment 1 Kenneth Russell 2010-06-10 14:06:42 PDT
*** Bug 38024 has been marked as a duplicate of this bug. ***
Comment 2 Kenneth Russell 2010-06-10 14:22:42 PDT
Created attachment 58412 [details]
Patch

From the ChangeLog:

Deleted custom JSC bindings for bufferData, texImage2D and texSubImage2D and fixed minor associated issues in code generator and IDL. Updated fast/canvas/webgl/texImageTest-expected.txt, which now runs as intended. Ran all layout tests, including WebGL tests, in Safari.

Note: full layout tests run still ongoing; will not commit until successfully completed.
Comment 3 Kenneth Russell 2010-06-10 14:32:16 PDT
(In reply to comment #2)
> Note: full layout tests run still ongoing; will not commit until successfully completed.

Layout tests all pass with the changes to the code generator.
Comment 4 Dimitri Glazkov (Google) 2010-06-10 14:51:10 PDT
Comment on attachment 58412 [details]
Patch

Awesome! Thanks kbr.
Comment 5 Kenneth Russell 2010-06-10 15:46:47 PDT
Committed r60979: <http://trac.webkit.org/changeset/60979>
Comment 6 Kenneth Russell 2010-06-10 17:05:27 PDT
The first patch broke the Leopard build due to bugs in the JSC code generation for overloaded methods, and I rolled it out in https://bugs.webkit.org/show_bug.cgi?id=40450 . Reopening this and determining a revised fix.
Comment 7 Kenneth Russell 2010-06-10 17:52:41 PDT
Created attachment 58427 [details]
Revised patch

Added JSValue::encode to exception return path, needed on Leopard in particular.

Built on Leopard and Snow Leopard; reran WebGL layout tests.
Comment 8 Dimitri Glazkov (Google) 2010-06-10 21:29:50 PDT
Comment on attachment 58427 [details]
Revised patch

Energize.
Comment 9 Kenneth Russell 2010-06-11 11:22:38 PDT
Committed r61027: <http://trac.webkit.org/changeset/61027>
Comment 10 Kenneth Russell 2010-08-05 12:30:26 PDT
*** Bug 32002 has been marked as a duplicate of this bug. ***