Skip to content
  • kbr@google.com's avatar
    Implement new restrictions on uniform and attribute location lengths · 2cbcd3f6
    kbr@google.com authored
    https://bugs.webkit.org/show_bug.cgi?id=70981
    
    Reviewed by Chris Marrin.
    
    Source/WebCore:
    
    Tests: fast/canvas/webgl/attrib-location-length-limits.html
           fast/canvas/webgl/uniform-location-length-limits.html
    
    * html/canvas/WebGLRenderingContext.cpp:
    (WebCore::WebGLRenderingContext::bindAttribLocation):
    (WebCore::WebGLRenderingContext::getAttribLocation):
    (WebCore::WebGLRenderingContext::getUniformLocation):
    (WebCore::WebGLRenderingContext::validateLocationLength):
    * html/canvas/WebGLRenderingContext.h:
    
    LayoutTests:
    
    * fast/canvas/webgl/attrib-location-length-limits-expected.txt: Added.
    * fast/canvas/webgl/attrib-location-length-limits.html: Added (imported from WebGL conformance suite).
    * fast/canvas/webgl/resources/webgl-test-utils.js:
    (WebGLTestUtils):
    (WebGLTestUtils.): Updated to latest version in WebGL conformance suite.
    * fast/canvas/webgl/uniform-location-length-limits-expected.txt: Added.
    * fast/canvas/webgl/uniform-location-length-limits.html: Added (imported from WebGL conformance suite).
    * platform/mac/Skipped: Temporarily skip new tests on Mac until WebKit's copy of ANGLE is upgraded.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@98660 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    2cbcd3f6