Skip to content
  • zmo@google.com's avatar
    2010-12-29 Zhenyao Mo <zmo@google.com> · 13daadda
    zmo@google.com authored
            Reviewed by Kenneth Russell.
    
            Update validation of stencil mask and ref values
            https://bugs.webkit.org/show_bug.cgi?id=50716
    
            * html/canvas/WebGLRenderingContext.cpp:
            (WebCore::WebGLRenderingContext::initializeNewContext): Initialize cached stencil settings.
            (WebCore::WebGLRenderingContext::drawArrays): Validate stencil settings.
            (WebCore::WebGLRenderingContext::drawElements): Ditto.
            (WebCore::WebGLRenderingContext::stencilFunc): Cache stencil settings, but generate no error.
            (WebCore::WebGLRenderingContext::stencilFuncSeparate): Ditto.
            (WebCore::WebGLRenderingContext::stencilMask): Ditto.
            (WebCore::WebGLRenderingContext::stencilMaskSeparate): Ditto.
            (WebCore::WebGLRenderingContext::validateStencilSettings): Helper function to validate stencil settings.
            * html/canvas/WebGLRenderingContext.h: Declare stencil setting members.
    2010-12-29  Zhenyao Mo  <zmo@google.com>
    
            Reviewed by Kenneth Russell.
    
            Update validation of stencil mask and ref values
            https://bugs.webkit.org/show_bug.cgi?id=50716
    
            * fast/canvas/webgl/webgl-specific-expected.txt: Sync with khronos: refactor the test, also update the stencil setting test due to spec change.
            * fast/canvas/webgl/webgl-specific.html: Ditto.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74818 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    13daadda