Summary: | Fix handling of attributes prior to compiling shader | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Brent Fulgham <bfulgham> | ||||||||
Component: | WebGL | Assignee: | Brent Fulgham <bfulgham> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | benjamin, cmarcelo, commit-queue, dino, fpizlo, kondapallykalyan, mmaxfield, noam, oliver, roger_fong | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Bug Depends on: | 121849 | ||||||||||
Bug Blocks: | |||||||||||
Attachments: |
|
Description
Brent Fulgham
2014-05-01 10:08:02 PDT
It might be more correct to partition the hash by program, but since the hash is deterministic (the same input name will always hash to the same output, as long as the hash table is not cleared), it's probably not worth the extra complexity. This will also reduce the number of hashes we have to compute, since each symbol is only hashed once, instead of once for each program. Created attachment 230588 [details]
Patch
Created attachment 230590 [details]
Patch
Comment on attachment 230590 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=230590&action=review > Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:807 > - Platform3DObject shaders[2]; > + Platform3DObject shaders[2] = { 0 }; I guess this could be just { } right? Created attachment 230600 [details]
Patch
Comment on attachment 230600 [details]
Patch
Nit. You're using two space indent in the JS, but I expect you simply copied an existing test.
Committed r168112: <http://trac.webkit.org/changeset/168112> |