The amount of boilerplate code in TextureMapperShaderManager could be reduced quite a bit to make the code more readable.
Created attachment 148043 [details] Patch
Created attachment 148044 [details] Patch
Comment on attachment 148044 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=148044&action=review Awesome! Though let's use >= 0 or an enum { InvalidLocation = -1 } instead of using -1 as a magic number. > Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp:397 > + if (program->opacityLocation() != -1) How about >= 0 > Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp:434 > + if (program->opacityLocation() != -1) >= 0
Created attachment 148052 [details] Patch
Makes sense! I've replaced the test for != -1 with a call to the new static method, TextureMapperShaderProgram::isValidUniformLocation.
Comment on attachment 148052 [details] Patch Clearing flags on attachment: 148052 Committed r120572: <http://trac.webkit.org/changeset/120572>
All reviewed patches have been landed. Closing bug.