Summary: | Keep track of filtered active attribute/uniform indices per shader program | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Roger Fong <roger_fong> | ||||||
Component: | WebGL | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | bfulgham, commit-queue, dino, esprehn+autocc, gyuyoung.kim, kondapallykalyan, noam, roger_fong, tonikitoo | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Roger Fong
2014-04-04 11:31:46 PDT
Created attachment 228613 [details]
patch
Comment on attachment 228613 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=228613&action=review Looks good. I think it could be more efficient if we could avoid the double 'find' operation in cases where it is found the first time. > Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:726 > + const auto& result = m_shaderProgramSymbolCountMap.find(program); Aren't we performing the 'find' twice every time? Maybe this could precede the test for end, and only do the lookup once. > Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:772 > + const auto& result = m_shaderProgramSymbolCountMap.find(program); Ditto regarding double-lookup. *** Bug 130477 has been marked as a duplicate of this bug. *** Created attachment 228617 [details]
patch
|