Changeset 207644 in webkit


Ignore:
Timestamp:
Oct 20, 2016 4:51:26 PM (8 years ago)
Author:
mmaxfield@apple.com
Message:

Many WebGL functions which don't throw are marked as possibly throwing
https://bugs.webkit.org/show_bug.cgi?id=163747

Reviewed by Dean Jackson.

Mechanically remove the exception code.

No new tests because there is no behavior change.

  • bindings/js/JSWebGLRenderingContextBaseCustom.cpp:

(WebCore::getObjectParameter):
(WebCore::JSWebGLRenderingContextBase::getAttachedShaders):
(WebCore::JSWebGLRenderingContextBase::getProgramParameter):
(WebCore::JSWebGLRenderingContextBase::getShaderParameter):
(WebCore::JSWebGLRenderingContextBase::getUniform):
(WebCore::dataFunctionf):
(WebCore::dataFunctioni):
(WebCore::dataFunctionMatrix):

  • html/canvas/WebGL2RenderingContext.cpp:

(WebCore::WebGL2RenderingContext::texSubImage2D):

  • html/canvas/WebGLRenderingContext.cpp:

(WebCore::WebGLRenderingContext::texSubImage2D):

  • html/canvas/WebGLRenderingContextBase.cpp:

(WebCore::WebGLRenderingContextBase::activeTexture):
(WebCore::WebGLRenderingContextBase::attachShader):
(WebCore::WebGLRenderingContextBase::bindAttribLocation):
(WebCore::WebGLRenderingContextBase::bindBuffer):
(WebCore::WebGLRenderingContextBase::bindFramebuffer):
(WebCore::WebGLRenderingContextBase::bindRenderbuffer):
(WebCore::WebGLRenderingContextBase::bindTexture):
(WebCore::WebGLRenderingContextBase::bufferData):
(WebCore::WebGLRenderingContextBase::bufferSubData):
(WebCore::WebGLRenderingContextBase::compileShader):
(WebCore::WebGLRenderingContextBase::createShader):
(WebCore::WebGLRenderingContextBase::detachShader):
(WebCore::WebGLRenderingContextBase::disableVertexAttribArray):
(WebCore::WebGLRenderingContextBase::drawArrays):
(WebCore::WebGLRenderingContextBase::drawElements):
(WebCore::WebGLRenderingContextBase::enableVertexAttribArray):
(WebCore::WebGLRenderingContextBase::framebufferRenderbuffer):
(WebCore::WebGLRenderingContextBase::framebufferTexture2D):
(WebCore::WebGLRenderingContextBase::getActiveAttrib):
(WebCore::WebGLRenderingContextBase::getActiveUniform):
(WebCore::WebGLRenderingContextBase::getAttachedShaders):
(WebCore::WebGLRenderingContextBase::getBufferParameter):
(WebCore::WebGLRenderingContextBase::getProgramParameter):
(WebCore::WebGLRenderingContextBase::getProgramInfoLog):
(WebCore::WebGLRenderingContextBase::getRenderbufferParameter):
(WebCore::WebGLRenderingContextBase::getShaderParameter):
(WebCore::WebGLRenderingContextBase::getShaderInfoLog):
(WebCore::WebGLRenderingContextBase::getShaderPrecisionFormat):
(WebCore::WebGLRenderingContextBase::getShaderSource):
(WebCore::WebGLRenderingContextBase::getTexParameter):
(WebCore::WebGLRenderingContextBase::getUniform):
(WebCore::WebGLRenderingContextBase::getUniformLocation):
(WebCore::WebGLRenderingContextBase::getVertexAttrib):
(WebCore::WebGLRenderingContextBase::linkProgram):
(WebCore::WebGLRenderingContextBase::readPixels):
(WebCore::WebGLRenderingContextBase::shaderSource):
(WebCore::WebGLRenderingContextBase::videoFrameToImage):
(WebCore::WebGLRenderingContextBase::texImage2D):
(WebCore::WebGLRenderingContextBase::uniform1f):
(WebCore::WebGLRenderingContextBase::uniform1fv):
(WebCore::WebGLRenderingContextBase::uniform1i):
(WebCore::WebGLRenderingContextBase::uniform1iv):
(WebCore::WebGLRenderingContextBase::uniform2f):
(WebCore::WebGLRenderingContextBase::uniform2fv):
(WebCore::WebGLRenderingContextBase::uniform2i):
(WebCore::WebGLRenderingContextBase::uniform2iv):
(WebCore::WebGLRenderingContextBase::uniform3f):
(WebCore::WebGLRenderingContextBase::uniform3fv):
(WebCore::WebGLRenderingContextBase::uniform3i):
(WebCore::WebGLRenderingContextBase::uniform3iv):
(WebCore::WebGLRenderingContextBase::uniform4f):
(WebCore::WebGLRenderingContextBase::uniform4fv):
(WebCore::WebGLRenderingContextBase::uniform4i):
(WebCore::WebGLRenderingContextBase::uniform4iv):
(WebCore::WebGLRenderingContextBase::uniformMatrix2fv):
(WebCore::WebGLRenderingContextBase::uniformMatrix3fv):
(WebCore::WebGLRenderingContextBase::uniformMatrix4fv):
(WebCore::WebGLRenderingContextBase::useProgram):
(WebCore::WebGLRenderingContextBase::validateProgram):
(WebCore::WebGLRenderingContextBase::vertexAttribPointer):
(WebCore::WebGLRenderingContextBase::restoreCurrentFramebuffer):
(WebCore::WebGLRenderingContextBase::restoreCurrentTexture2D):

  • html/canvas/WebGLRenderingContextBase.h:
  • html/canvas/WebGLRenderingContextBase.idl:
Location:
trunk/Source/WebCore
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r207642 r207644  
     12016-10-20  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        Many WebGL functions which don't throw are marked as possibly throwing
     4        https://bugs.webkit.org/show_bug.cgi?id=163747
     5
     6        Reviewed by Dean Jackson.
     7
     8        Mechanically remove the exception code.
     9
     10        No new tests because there is no behavior change.
     11
     12        * bindings/js/JSWebGLRenderingContextBaseCustom.cpp:
     13        (WebCore::getObjectParameter):
     14        (WebCore::JSWebGLRenderingContextBase::getAttachedShaders):
     15        (WebCore::JSWebGLRenderingContextBase::getProgramParameter):
     16        (WebCore::JSWebGLRenderingContextBase::getShaderParameter):
     17        (WebCore::JSWebGLRenderingContextBase::getUniform):
     18        (WebCore::dataFunctionf):
     19        (WebCore::dataFunctioni):
     20        (WebCore::dataFunctionMatrix):
     21        * html/canvas/WebGL2RenderingContext.cpp:
     22        (WebCore::WebGL2RenderingContext::texSubImage2D):
     23        * html/canvas/WebGLRenderingContext.cpp:
     24        (WebCore::WebGLRenderingContext::texSubImage2D):
     25        * html/canvas/WebGLRenderingContextBase.cpp:
     26        (WebCore::WebGLRenderingContextBase::activeTexture):
     27        (WebCore::WebGLRenderingContextBase::attachShader):
     28        (WebCore::WebGLRenderingContextBase::bindAttribLocation):
     29        (WebCore::WebGLRenderingContextBase::bindBuffer):
     30        (WebCore::WebGLRenderingContextBase::bindFramebuffer):
     31        (WebCore::WebGLRenderingContextBase::bindRenderbuffer):
     32        (WebCore::WebGLRenderingContextBase::bindTexture):
     33        (WebCore::WebGLRenderingContextBase::bufferData):
     34        (WebCore::WebGLRenderingContextBase::bufferSubData):
     35        (WebCore::WebGLRenderingContextBase::compileShader):
     36        (WebCore::WebGLRenderingContextBase::createShader):
     37        (WebCore::WebGLRenderingContextBase::detachShader):
     38        (WebCore::WebGLRenderingContextBase::disableVertexAttribArray):
     39        (WebCore::WebGLRenderingContextBase::drawArrays):
     40        (WebCore::WebGLRenderingContextBase::drawElements):
     41        (WebCore::WebGLRenderingContextBase::enableVertexAttribArray):
     42        (WebCore::WebGLRenderingContextBase::framebufferRenderbuffer):
     43        (WebCore::WebGLRenderingContextBase::framebufferTexture2D):
     44        (WebCore::WebGLRenderingContextBase::getActiveAttrib):
     45        (WebCore::WebGLRenderingContextBase::getActiveUniform):
     46        (WebCore::WebGLRenderingContextBase::getAttachedShaders):
     47        (WebCore::WebGLRenderingContextBase::getBufferParameter):
     48        (WebCore::WebGLRenderingContextBase::getProgramParameter):
     49        (WebCore::WebGLRenderingContextBase::getProgramInfoLog):
     50        (WebCore::WebGLRenderingContextBase::getRenderbufferParameter):
     51        (WebCore::WebGLRenderingContextBase::getShaderParameter):
     52        (WebCore::WebGLRenderingContextBase::getShaderInfoLog):
     53        (WebCore::WebGLRenderingContextBase::getShaderPrecisionFormat):
     54        (WebCore::WebGLRenderingContextBase::getShaderSource):
     55        (WebCore::WebGLRenderingContextBase::getTexParameter):
     56        (WebCore::WebGLRenderingContextBase::getUniform):
     57        (WebCore::WebGLRenderingContextBase::getUniformLocation):
     58        (WebCore::WebGLRenderingContextBase::getVertexAttrib):
     59        (WebCore::WebGLRenderingContextBase::linkProgram):
     60        (WebCore::WebGLRenderingContextBase::readPixels):
     61        (WebCore::WebGLRenderingContextBase::shaderSource):
     62        (WebCore::WebGLRenderingContextBase::videoFrameToImage):
     63        (WebCore::WebGLRenderingContextBase::texImage2D):
     64        (WebCore::WebGLRenderingContextBase::uniform1f):
     65        (WebCore::WebGLRenderingContextBase::uniform1fv):
     66        (WebCore::WebGLRenderingContextBase::uniform1i):
     67        (WebCore::WebGLRenderingContextBase::uniform1iv):
     68        (WebCore::WebGLRenderingContextBase::uniform2f):
     69        (WebCore::WebGLRenderingContextBase::uniform2fv):
     70        (WebCore::WebGLRenderingContextBase::uniform2i):
     71        (WebCore::WebGLRenderingContextBase::uniform2iv):
     72        (WebCore::WebGLRenderingContextBase::uniform3f):
     73        (WebCore::WebGLRenderingContextBase::uniform3fv):
     74        (WebCore::WebGLRenderingContextBase::uniform3i):
     75        (WebCore::WebGLRenderingContextBase::uniform3iv):
     76        (WebCore::WebGLRenderingContextBase::uniform4f):
     77        (WebCore::WebGLRenderingContextBase::uniform4fv):
     78        (WebCore::WebGLRenderingContextBase::uniform4i):
     79        (WebCore::WebGLRenderingContextBase::uniform4iv):
     80        (WebCore::WebGLRenderingContextBase::uniformMatrix2fv):
     81        (WebCore::WebGLRenderingContextBase::uniformMatrix3fv):
     82        (WebCore::WebGLRenderingContextBase::uniformMatrix4fv):
     83        (WebCore::WebGLRenderingContextBase::useProgram):
     84        (WebCore::WebGLRenderingContextBase::validateProgram):
     85        (WebCore::WebGLRenderingContextBase::vertexAttribPointer):
     86        (WebCore::WebGLRenderingContextBase::restoreCurrentFramebuffer):
     87        (WebCore::WebGLRenderingContextBase::restoreCurrentTexture2D):
     88        * html/canvas/WebGLRenderingContextBase.h:
     89        * html/canvas/WebGLRenderingContextBase.idl:
     90
    1912016-10-19  Myles C. Maxfield  <mmaxfield@apple.com>
    292
  • trunk/Source/WebCore/bindings/js/JSWebGLRenderingContextBaseCustom.cpp

    r206386 r207644  
    206206    switch (objectType) {
    207207    case kBuffer:
    208         info = context.getBufferParameter(target, pname, ec);
     208        info = context.getBufferParameter(target, pname);
    209209        break;
    210210    case kRenderbuffer:
    211         info = context.getRenderbufferParameter(target, pname, ec);
     211        info = context.getRenderbufferParameter(target, pname);
    212212        break;
    213213    case kTexture:
    214         info = context.getTexParameter(target, pname, ec);
     214        info = context.getTexParameter(target, pname);
    215215        break;
    216216    case kVertexAttrib:
    217217        // target => index
    218         info = context.getVertexAttrib(target, pname, ec);
     218        info = context.getVertexAttrib(target, pname);
    219219        break;
    220220    default:
     
    311311        return throwTypeError(&state, scope);
    312312    Vector<RefPtr<WebGLShader>> shaders;
    313     bool succeed = context.getAttachedShaders(program, shaders, ec);
     313    bool succeed = context.getAttachedShaders(program, shaders);
    314314    if (ec) {
    315315        setDOMException(&state, ec);
     
    403403    unsigned pname = state.uncheckedArgument(1).toInt32(&state);
    404404    RETURN_IF_EXCEPTION(scope, JSValue());
    405     WebGLGetInfo info = context.getProgramParameter(program, pname, ec);
     405    WebGLGetInfo info = context.getProgramParameter(program, pname);
    406406    if (ec) {
    407407        setDOMException(&state, ec);
     
    431431    unsigned pname = state.uncheckedArgument(1).toInt32(&state);
    432432    RETURN_IF_EXCEPTION(scope, JSValue());
    433     WebGLGetInfo info = context.getShaderParameter(shader, pname, ec);
     433    WebGLGetInfo info = context.getShaderParameter(shader, pname);
    434434    if (ec) {
    435435        setDOMException(&state, ec);
     
    472472    if (!location && !state.uncheckedArgument(1).isUndefinedOrNull())
    473473        return throwTypeError(&state, scope);
    474     WebGLGetInfo info = context.getUniform(program, location, ec);
     474    WebGLGetInfo info = context.getUniform(program, location);
    475475    if (ec) {
    476476        setDOMException(&state, ec);
     
    559559        switch (f) {
    560560        case f_uniform1v:
    561             context.uniform1fv(location, *webGLArray, ec);
     561            context.uniform1fv(location, *webGLArray);
    562562            break;
    563563        case f_uniform2v:
    564             context.uniform2fv(location, *webGLArray, ec);
     564            context.uniform2fv(location, *webGLArray);
    565565            break;
    566566        case f_uniform3v:
    567             context.uniform3fv(location, *webGLArray, ec);
     567            context.uniform3fv(location, *webGLArray);
    568568            break;
    569569        case f_uniform4v:
    570             context.uniform4fv(location, *webGLArray, ec);
     570            context.uniform4fv(location, *webGLArray);
    571571            break;
    572572        case f_vertexAttrib1v:
     
    594594    switch (f) {
    595595    case f_uniform1v:
    596         context.uniform1fv(location, array.data(), array.size(), ec);
     596        context.uniform1fv(location, array.data(), array.size());
    597597        break;
    598598    case f_uniform2v:
    599         context.uniform2fv(location, array.data(), array.size(), ec);
     599        context.uniform2fv(location, array.data(), array.size());
    600600        break;
    601601    case f_uniform3v:
    602         context.uniform3fv(location, array.data(), array.size(), ec);
     602        context.uniform3fv(location, array.data(), array.size());
    603603        break;
    604604    case f_uniform4v:
    605         context.uniform4fv(location, array.data(), array.size(), ec);
     605        context.uniform4fv(location, array.data(), array.size());
    606606        break;
    607607    case f_vertexAttrib1v:
     
    641641        switch (f) {
    642642        case f_uniform1v:
    643             context.uniform1iv(location, *webGLArray, ec);
     643            context.uniform1iv(location, *webGLArray);
    644644            break;
    645645        case f_uniform2v:
    646             context.uniform2iv(location, *webGLArray, ec);
     646            context.uniform2iv(location, *webGLArray);
    647647            break;
    648648        case f_uniform3v:
    649             context.uniform3iv(location, *webGLArray, ec);
     649            context.uniform3iv(location, *webGLArray);
    650650            break;
    651651        case f_uniform4v:
    652             context.uniform4iv(location, *webGLArray, ec);
     652            context.uniform4iv(location, *webGLArray);
    653653            break;
    654654        default:
     
    667667    switch (f) {
    668668    case f_uniform1v:
    669         context.uniform1iv(location, array.data(), array.size(), ec);
     669        context.uniform1iv(location, array.data(), array.size());
    670670        break;
    671671    case f_uniform2v:
    672         context.uniform2iv(location, array.data(), array.size(), ec);
     672        context.uniform2iv(location, array.data(), array.size());
    673673        break;
    674674    case f_uniform3v:
    675         context.uniform3iv(location, array.data(), array.size(), ec);
     675        context.uniform3iv(location, array.data(), array.size());
    676676        break;
    677677    case f_uniform4v:
    678         context.uniform4iv(location, array.data(), array.size(), ec);
     678        context.uniform4iv(location, array.data(), array.size());
    679679        break;
    680680    default:
     
    702702   
    703703    RefPtr<Float32Array> webGLArray = toFloat32Array(state.uncheckedArgument(2));
    704    
    705     ExceptionCode ec = 0;
     704
    706705    if (webGLArray) {
    707706        switch (f) {
    708707        case f_uniformMatrix2fv:
    709             context.uniformMatrix2fv(location, transpose, *webGLArray, ec);
     708            context.uniformMatrix2fv(location, transpose, *webGLArray);
    710709            break;
    711710        case f_uniformMatrix3fv:
    712             context.uniformMatrix3fv(location, transpose, *webGLArray, ec);
     711            context.uniformMatrix3fv(location, transpose, *webGLArray);
    713712            break;
    714713        case f_uniformMatrix4fv:
    715             context.uniformMatrix4fv(location, transpose, *webGLArray, ec);
     714            context.uniformMatrix4fv(location, transpose, *webGLArray);
    716715            break;
    717716        }
    718        
     717
     718        ExceptionCode ec = 0;
    719719        setDOMException(&state, ec);
    720720        return jsUndefined();
     
    727727    switch (f) {
    728728    case f_uniformMatrix2fv:
    729         context.uniformMatrix2fv(location, transpose, array.data(), array.size(), ec);
     729        context.uniformMatrix2fv(location, transpose, array.data(), array.size());
    730730        break;
    731731    case f_uniformMatrix3fv:
    732         context.uniformMatrix3fv(location, transpose, array.data(), array.size(), ec);
     732        context.uniformMatrix3fv(location, transpose, array.data(), array.size());
    733733        break;
    734734    case f_uniformMatrix4fv:
    735         context.uniformMatrix4fv(location, transpose, array.data(), array.size(), ec);
    736         break;
    737     }
    738    
     735        context.uniformMatrix4fv(location, transpose, array.data(), array.size());
     736        break;
     737    }
     738
     739    ExceptionCode ec = 0;
    739740    setDOMException(&state, ec);
    740741    return jsUndefined();
  • trunk/Source/WebCore/html/canvas/WebGL2RenderingContext.cpp

    r201782 r207644  
    11761176        return;
    11771177   
    1178     RefPtr<Image> image = videoFrameToImage(video, ImageBuffer::fastCopyImageMode(), ec);
     1178    RefPtr<Image> image = videoFrameToImage(video, ImageBuffer::fastCopyImageMode());
    11791179    if (!image)
    11801180        return;
  • trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp

    r201782 r207644  
    658658        return;
    659659   
    660     RefPtr<Image> image = videoFrameToImage(video, ImageBuffer::fastCopyImageMode(), ec);
     660    RefPtr<Image> image = videoFrameToImage(video, ImageBuffer::fastCopyImageMode());
    661661    if (!image)
    662662        return;
  • trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp

    r207632 r207644  
    846846}
    847847
    848 void WebGLRenderingContextBase::activeTexture(GC3Denum texture, ExceptionCode&)
     848void WebGLRenderingContextBase::activeTexture(GC3Denum texture)
    849849{
    850850    if (isContextLostOrPending())
     
    858858}
    859859
    860 void WebGLRenderingContextBase::attachShader(WebGLProgram* program, WebGLShader* shader, ExceptionCode&)
     860void WebGLRenderingContextBase::attachShader(WebGLProgram* program, WebGLShader* shader)
    861861{
    862862    if (isContextLostOrPending() || !validateWebGLObject("attachShader", program) || !validateWebGLObject("attachShader", shader))
     
    870870}
    871871
    872 void WebGLRenderingContextBase::bindAttribLocation(WebGLProgram* program, GC3Duint index, const String& name, ExceptionCode&)
     872void WebGLRenderingContextBase::bindAttribLocation(WebGLProgram* program, GC3Duint index, const String& name)
    873873{
    874874    if (isContextLostOrPending() || !validateWebGLObject("bindAttribLocation", program))
     
    904904}
    905905
    906 void WebGLRenderingContextBase::bindBuffer(GC3Denum target, WebGLBuffer* buffer, ExceptionCode&)
     906void WebGLRenderingContextBase::bindBuffer(GC3Denum target, WebGLBuffer* buffer)
    907907{
    908908    bool deleted;
     
    929929}
    930930
    931 void WebGLRenderingContextBase::bindFramebuffer(GC3Denum target, WebGLFramebuffer* buffer, ExceptionCode&)
     931void WebGLRenderingContextBase::bindFramebuffer(GC3Denum target, WebGLFramebuffer* buffer)
    932932{
    933933    bool deleted;
     
    947947}
    948948
    949 void WebGLRenderingContextBase::bindRenderbuffer(GC3Denum target, WebGLRenderbuffer* renderBuffer, ExceptionCode&)
     949void WebGLRenderingContextBase::bindRenderbuffer(GC3Denum target, WebGLRenderbuffer* renderBuffer)
    950950{
    951951    bool deleted;
     
    964964}
    965965
    966 void WebGLRenderingContextBase::bindTexture(GC3Denum target, WebGLTexture* texture, ExceptionCode&)
     966void WebGLRenderingContextBase::bindTexture(GC3Denum target, WebGLTexture* texture)
    967967{
    968968    bool deleted;
     
    10461046}
    10471047
    1048 void WebGLRenderingContextBase::bufferData(GC3Denum target, long long size, GC3Denum usage, ExceptionCode&)
     1048void WebGLRenderingContextBase::bufferData(GC3Denum target, long long size, GC3Denum usage)
    10491049{
    10501050    if (isContextLostOrPending())
     
    10761076}
    10771077
    1078 void WebGLRenderingContextBase::bufferData(GC3Denum target, ArrayBuffer* data, GC3Denum usage, ExceptionCode&)
     1078void WebGLRenderingContextBase::bufferData(GC3Denum target, ArrayBuffer* data, GC3Denum usage)
    10791079{
    10801080    if (isContextLostOrPending())
     
    11021102}
    11031103
    1104 void WebGLRenderingContextBase::bufferData(GC3Denum target, RefPtr<ArrayBufferView>&& data, GC3Denum usage, ExceptionCode&)
     1104void WebGLRenderingContextBase::bufferData(GC3Denum target, RefPtr<ArrayBufferView>&& data, GC3Denum usage)
    11051105{
    11061106    if (isContextLostOrPending())
     
    11281128}
    11291129
    1130 void WebGLRenderingContextBase::bufferSubData(GC3Denum target, long long offset, ArrayBuffer* data, ExceptionCode&)
     1130void WebGLRenderingContextBase::bufferSubData(GC3Denum target, long long offset, ArrayBuffer* data)
    11311131{
    11321132    if (isContextLostOrPending())
     
    11561156}
    11571157
    1158 void WebGLRenderingContextBase::bufferSubData(GC3Denum target, long long offset, RefPtr<ArrayBufferView>&& data, ExceptionCode&)
     1158void WebGLRenderingContextBase::bufferSubData(GC3Denum target, long long offset, RefPtr<ArrayBufferView>&& data)
    11591159{
    11601160    if (isContextLostOrPending())
     
    12501250}
    12511251
    1252 void WebGLRenderingContextBase::compileShader(WebGLShader* shader, ExceptionCode&)
     1252void WebGLRenderingContextBase::compileShader(WebGLShader* shader)
    12531253{
    12541254    if (isContextLostOrPending() || !validateWebGLObject("compileShader", shader))
     
    14461446}
    14471447
    1448 RefPtr<WebGLShader> WebGLRenderingContextBase::createShader(GC3Denum type, ExceptionCode&)
     1448RefPtr<WebGLShader> WebGLRenderingContextBase::createShader(GC3Denum type)
    14491449{
    14501450    if (isContextLostOrPending())
     
    15711571}
    15721572
    1573 void WebGLRenderingContextBase::detachShader(WebGLProgram* program, WebGLShader* shader, ExceptionCode&)
     1573void WebGLRenderingContextBase::detachShader(WebGLProgram* program, WebGLShader* shader)
    15741574{
    15751575    if (isContextLostOrPending() || !validateWebGLObject("detachShader", program) || !validateWebGLObject("detachShader", shader))
     
    15971597}
    15981598
    1599 void WebGLRenderingContextBase::disableVertexAttribArray(GC3Duint index, ExceptionCode&)
     1599void WebGLRenderingContextBase::disableVertexAttribArray(GC3Duint index)
    16001600{
    16011601    if (isContextLostOrPending())
     
    19391939}
    19401940
    1941 void WebGLRenderingContextBase::drawArrays(GC3Denum mode, GC3Dint first, GC3Dsizei count, ExceptionCode&)
     1941void WebGLRenderingContextBase::drawArrays(GC3Denum mode, GC3Dint first, GC3Dsizei count)
    19421942{
    19431943    if (!validateDrawArrays("drawArrays", mode, first, count, 0))
     
    19621962}
    19631963
    1964 void WebGLRenderingContextBase::drawElements(GC3Denum mode, GC3Dsizei count, GC3Denum type, long long offset, ExceptionCode&)
     1964void WebGLRenderingContextBase::drawElements(GC3Denum mode, GC3Dsizei count, GC3Denum type, long long offset)
    19651965{
    19661966    unsigned numElements = 0;
     
    20042004}
    20052005
    2006 void WebGLRenderingContextBase::enableVertexAttribArray(GC3Duint index, ExceptionCode&)
     2006void WebGLRenderingContextBase::enableVertexAttribArray(GC3Duint index)
    20072007{
    20082008    if (isContextLostOrPending())
     
    20332033}
    20342034
    2035 void WebGLRenderingContextBase::framebufferRenderbuffer(GC3Denum target, GC3Denum attachment, GC3Denum renderbuffertarget, WebGLRenderbuffer* buffer, ExceptionCode&)
     2035void WebGLRenderingContextBase::framebufferRenderbuffer(GC3Denum target, GC3Denum attachment, GC3Denum renderbuffertarget, WebGLRenderbuffer* buffer)
    20362036{
    20372037    if (isContextLostOrPending() || !validateFramebufferFuncParameters("framebufferRenderbuffer", target, attachment))
     
    20652065}
    20662066
    2067 void WebGLRenderingContextBase::framebufferTexture2D(GC3Denum target, GC3Denum attachment, GC3Denum textarget, WebGLTexture* texture, GC3Dint level, ExceptionCode&)
     2067void WebGLRenderingContextBase::framebufferTexture2D(GC3Denum target, GC3Denum attachment, GC3Denum textarget, WebGLTexture* texture, GC3Dint level)
    20682068{
    20692069    if (isContextLostOrPending() || !validateFramebufferFuncParameters("framebufferTexture2D", target, attachment))
     
    21462146}
    21472147
    2148 RefPtr<WebGLActiveInfo> WebGLRenderingContextBase::getActiveAttrib(WebGLProgram* program, GC3Duint index, ExceptionCode&)
     2148RefPtr<WebGLActiveInfo> WebGLRenderingContextBase::getActiveAttrib(WebGLProgram* program, GC3Duint index)
    21492149{
    21502150    if (isContextLostOrPending() || !validateWebGLObject("getActiveAttrib", program))
     
    21592159}
    21602160
    2161 RefPtr<WebGLActiveInfo> WebGLRenderingContextBase::getActiveUniform(WebGLProgram* program, GC3Duint index, ExceptionCode&)
     2161RefPtr<WebGLActiveInfo> WebGLRenderingContextBase::getActiveUniform(WebGLProgram* program, GC3Duint index)
    21622162{
    21632163    if (isContextLostOrPending() || !validateWebGLObject("getActiveUniform", program))
     
    21752175}
    21762176
    2177 bool WebGLRenderingContextBase::getAttachedShaders(WebGLProgram* program, Vector<RefPtr<WebGLShader>>& shaderObjects, ExceptionCode&)
     2177bool WebGLRenderingContextBase::getAttachedShaders(WebGLProgram* program, Vector<RefPtr<WebGLShader>>& shaderObjects)
    21782178{
    21792179    shaderObjects.clear();
     
    22102210}
    22112211
    2212 WebGLGetInfo WebGLRenderingContextBase::getBufferParameter(GC3Denum target, GC3Denum pname, ExceptionCode&)
     2212WebGLGetInfo WebGLRenderingContextBase::getBufferParameter(GC3Denum target, GC3Denum pname)
    22132213{
    22142214    if (isContextLostOrPending())
     
    22562256}
    22572257
    2258 WebGLGetInfo WebGLRenderingContextBase::getProgramParameter(WebGLProgram* program, GC3Denum pname, ExceptionCode&)
     2258WebGLGetInfo WebGLRenderingContextBase::getProgramParameter(WebGLProgram* program, GC3Denum pname)
    22592259{
    22602260    if (isContextLostOrPending() || !validateWebGLObject("getProgramParameter", program))
     
    22832283}
    22842284
    2285 String WebGLRenderingContextBase::getProgramInfoLog(WebGLProgram* program, ExceptionCode&)
     2285String WebGLRenderingContextBase::getProgramInfoLog(WebGLProgram* program)
    22862286{
    22872287    if (isContextLostOrPending() || !validateWebGLObject("getProgramInfoLog", program))
     
    22902290}
    22912291
    2292 WebGLGetInfo WebGLRenderingContextBase::getRenderbufferParameter(GC3Denum target, GC3Denum pname, ExceptionCode&)
     2292WebGLGetInfo WebGLRenderingContextBase::getRenderbufferParameter(GC3Denum target, GC3Denum pname)
    22932293{
    22942294    if (isContextLostOrPending())
     
    23552355}
    23562356
    2357 WebGLGetInfo WebGLRenderingContextBase::getShaderParameter(WebGLShader* shader, GC3Denum pname, ExceptionCode&)
     2357WebGLGetInfo WebGLRenderingContextBase::getShaderParameter(WebGLShader* shader, GC3Denum pname)
    23582358{
    23592359    if (isContextLostOrPending() || !validateWebGLObject("getShaderParameter", shader))
     
    23752375}
    23762376
    2377 String WebGLRenderingContextBase::getShaderInfoLog(WebGLShader* shader, ExceptionCode&)
     2377String WebGLRenderingContextBase::getShaderInfoLog(WebGLShader* shader)
    23782378{
    23792379    if (isContextLostOrPending() || !validateWebGLObject("getShaderInfoLog", shader))
     
    23822382}
    23832383
    2384 RefPtr<WebGLShaderPrecisionFormat> WebGLRenderingContextBase::getShaderPrecisionFormat(GC3Denum shaderType, GC3Denum precisionType, ExceptionCode&)
     2384RefPtr<WebGLShaderPrecisionFormat> WebGLRenderingContextBase::getShaderPrecisionFormat(GC3Denum shaderType, GC3Denum precisionType)
    23852385{
    23862386    if (isContextLostOrPending())
     
    24132413}
    24142414
    2415 String WebGLRenderingContextBase::getShaderSource(WebGLShader* shader, ExceptionCode&)
     2415String WebGLRenderingContextBase::getShaderSource(WebGLShader* shader)
    24162416{
    24172417    if (isContextLostOrPending() || !validateWebGLObject("getShaderSource", shader))
     
    24202420}
    24212421
    2422 WebGLGetInfo WebGLRenderingContextBase::getTexParameter(GC3Denum target, GC3Denum pname, ExceptionCode&)
     2422WebGLGetInfo WebGLRenderingContextBase::getTexParameter(GC3Denum target, GC3Denum pname)
    24232423{
    24242424    if (isContextLostOrPending())
     
    24482448}
    24492449
    2450 WebGLGetInfo WebGLRenderingContextBase::getUniform(WebGLProgram* program, const WebGLUniformLocation* uniformLocation, ExceptionCode&)
     2450WebGLGetInfo WebGLRenderingContextBase::getUniform(WebGLProgram* program, const WebGLUniformLocation* uniformLocation)
    24512451{
    24522452    if (isContextLostOrPending() || !validateWebGLObject("getUniform", program))
     
    25752575}
    25762576
    2577 RefPtr<WebGLUniformLocation> WebGLRenderingContextBase::getUniformLocation(WebGLProgram* program, const String& name, ExceptionCode&)
     2577RefPtr<WebGLUniformLocation> WebGLRenderingContextBase::getUniformLocation(WebGLProgram* program, const String& name)
    25782578{
    25792579    if (isContextLostOrPending() || !validateWebGLObject("getUniformLocation", program))
     
    26132613}
    26142614
    2615 WebGLGetInfo WebGLRenderingContextBase::getVertexAttrib(GC3Duint index, GC3Denum pname, ExceptionCode&)
     2615WebGLGetInfo WebGLRenderingContextBase::getVertexAttrib(GC3Duint index, GC3Denum pname)
    26162616{
    26172617    if (isContextLostOrPending())
     
    27602760}
    27612761
    2762 void WebGLRenderingContextBase::linkProgram(WebGLProgram* program, ExceptionCode&)
     2762void WebGLRenderingContextBase::linkProgram(WebGLProgram* program)
    27632763{
    27642764    if (isContextLostOrPending() || !validateWebGLObject("linkProgram", program))
     
    28202820}
    28212821
    2822 void WebGLRenderingContextBase::readPixels(GC3Dint x, GC3Dint y, GC3Dsizei width, GC3Dsizei height, GC3Denum format, GC3Denum type, ArrayBufferView& pixels, ExceptionCode&)
     2822void WebGLRenderingContextBase::readPixels(GC3Dint x, GC3Dint y, GC3Dsizei width, GC3Dsizei height, GC3Denum format, GC3Denum type, ArrayBufferView& pixels)
    28232823{
    28242824    if (isContextLostOrPending())
     
    29282928}
    29292929
    2930 void WebGLRenderingContextBase::shaderSource(WebGLShader* shader, const String& string, ExceptionCode&)
     2930void WebGLRenderingContextBase::shaderSource(WebGLShader* shader, const String& string)
    29312931{
    29322932    if (isContextLostOrPending() || !validateWebGLObject("shaderSource", shader))
     
    32503250
    32513251#if ENABLE(VIDEO)
    3252 RefPtr<Image> WebGLRenderingContextBase::videoFrameToImage(HTMLVideoElement* video, BackingStoreCopy backingStoreCopy, ExceptionCode&)
     3252RefPtr<Image> WebGLRenderingContextBase::videoFrameToImage(HTMLVideoElement* video, BackingStoreCopy backingStoreCopy)
    32533253{
    32543254    IntSize size(video->videoWidth(), video->videoHeight());
     
    32893289
    32903290    // Normal pure SW path.
    3291     RefPtr<Image> image = videoFrameToImage(video, ImageBuffer::fastCopyImageMode(), ec);
     3291    RefPtr<Image> image = videoFrameToImage(video, ImageBuffer::fastCopyImageMode());
    32923292    if (!image)
    32933293        return;
     
    33443344}
    33453345
    3346 void WebGLRenderingContextBase::uniform1f(const WebGLUniformLocation* location, GC3Dfloat x, ExceptionCode&)
     3346void WebGLRenderingContextBase::uniform1f(const WebGLUniformLocation* location, GC3Dfloat x)
    33473347{
    33483348    if (isContextLostOrPending() || !location)
     
    33573357}
    33583358
    3359 void WebGLRenderingContextBase::uniform1fv(const WebGLUniformLocation* location, Float32Array& v, ExceptionCode&)
     3359void WebGLRenderingContextBase::uniform1fv(const WebGLUniformLocation* location, Float32Array& v)
    33603360{
    33613361    if (isContextLostOrPending() || !validateUniformParameters("uniform1fv", location, v, 1))
     
    33653365}
    33663366
    3367 void WebGLRenderingContextBase::uniform1fv(const WebGLUniformLocation* location, GC3Dfloat* v, GC3Dsizei size, ExceptionCode&)
     3367void WebGLRenderingContextBase::uniform1fv(const WebGLUniformLocation* location, GC3Dfloat* v, GC3Dsizei size)
    33683368{
    33693369    if (isContextLostOrPending() || !validateUniformParameters("uniform1fv", location, v, size, 1))
     
    33733373}
    33743374
    3375 void WebGLRenderingContextBase::uniform1i(const WebGLUniformLocation* location, GC3Dint x, ExceptionCode&)
     3375void WebGLRenderingContextBase::uniform1i(const WebGLUniformLocation* location, GC3Dint x)
    33763376{
    33773377    if (isContextLostOrPending() || !location)
     
    33913391}
    33923392
    3393 void WebGLRenderingContextBase::uniform1iv(const WebGLUniformLocation* location, Int32Array& v, ExceptionCode&)
     3393void WebGLRenderingContextBase::uniform1iv(const WebGLUniformLocation* location, Int32Array& v)
    33943394{
    33953395    if (isContextLostOrPending() || !validateUniformParameters("uniform1iv", location, v, 1))
     
    34083408}
    34093409
    3410 void WebGLRenderingContextBase::uniform1iv(const WebGLUniformLocation* location, GC3Dint* v, GC3Dsizei size, ExceptionCode&)
     3410void WebGLRenderingContextBase::uniform1iv(const WebGLUniformLocation* location, GC3Dint* v, GC3Dsizei size)
    34113411{
    34123412    if (isContextLostOrPending() || !validateUniformParameters("uniform1iv", location, v, size, 1))
     
    34243424}
    34253425
    3426 void WebGLRenderingContextBase::uniform2f(const WebGLUniformLocation* location, GC3Dfloat x, GC3Dfloat y, ExceptionCode&)
     3426void WebGLRenderingContextBase::uniform2f(const WebGLUniformLocation* location, GC3Dfloat x, GC3Dfloat y)
    34273427{
    34283428    if (isContextLostOrPending() || !location)
     
    34373437}
    34383438
    3439 void WebGLRenderingContextBase::uniform2fv(const WebGLUniformLocation* location, Float32Array& v, ExceptionCode&)
     3439void WebGLRenderingContextBase::uniform2fv(const WebGLUniformLocation* location, Float32Array& v)
    34403440{
    34413441    if (isContextLostOrPending() || !validateUniformParameters("uniform2fv", location, v, 2))
     
    34453445}
    34463446
    3447 void WebGLRenderingContextBase::uniform2fv(const WebGLUniformLocation* location, GC3Dfloat* v, GC3Dsizei size, ExceptionCode&)
     3447void WebGLRenderingContextBase::uniform2fv(const WebGLUniformLocation* location, GC3Dfloat* v, GC3Dsizei size)
    34483448{
    34493449    if (isContextLostOrPending() || !validateUniformParameters("uniform2fv", location, v, size, 2))
     
    34533453}
    34543454
    3455 void WebGLRenderingContextBase::uniform2i(const WebGLUniformLocation* location, GC3Dint x, GC3Dint y, ExceptionCode&)
     3455void WebGLRenderingContextBase::uniform2i(const WebGLUniformLocation* location, GC3Dint x, GC3Dint y)
    34563456{
    34573457    if (isContextLostOrPending() || !location)
     
    34663466}
    34673467
    3468 void WebGLRenderingContextBase::uniform2iv(const WebGLUniformLocation* location, Int32Array& v, ExceptionCode&)
     3468void WebGLRenderingContextBase::uniform2iv(const WebGLUniformLocation* location, Int32Array& v)
    34693469{
    34703470    if (isContextLostOrPending() || !validateUniformParameters("uniform2iv", location, v, 2))
     
    34743474}
    34753475
    3476 void WebGLRenderingContextBase::uniform2iv(const WebGLUniformLocation* location, GC3Dint* v, GC3Dsizei size, ExceptionCode&)
     3476void WebGLRenderingContextBase::uniform2iv(const WebGLUniformLocation* location, GC3Dint* v, GC3Dsizei size)
    34773477{
    34783478    if (isContextLostOrPending() || !validateUniformParameters("uniform2iv", location, v, size, 2))
     
    34823482}
    34833483
    3484 void WebGLRenderingContextBase::uniform3f(const WebGLUniformLocation* location, GC3Dfloat x, GC3Dfloat y, GC3Dfloat z, ExceptionCode&)
     3484void WebGLRenderingContextBase::uniform3f(const WebGLUniformLocation* location, GC3Dfloat x, GC3Dfloat y, GC3Dfloat z)
    34853485{
    34863486    if (isContextLostOrPending() || !location)
     
    34953495}
    34963496
    3497 void WebGLRenderingContextBase::uniform3fv(const WebGLUniformLocation* location, Float32Array& v, ExceptionCode&)
     3497void WebGLRenderingContextBase::uniform3fv(const WebGLUniformLocation* location, Float32Array& v)
    34983498{
    34993499    if (isContextLostOrPending() || !validateUniformParameters("uniform3fv", location, v, 3))
     
    35033503}
    35043504
    3505 void WebGLRenderingContextBase::uniform3fv(const WebGLUniformLocation* location, GC3Dfloat* v, GC3Dsizei size, ExceptionCode&)
     3505void WebGLRenderingContextBase::uniform3fv(const WebGLUniformLocation* location, GC3Dfloat* v, GC3Dsizei size)
    35063506{
    35073507    if (isContextLostOrPending() || !validateUniformParameters("uniform3fv", location, v, size, 3))
     
    35113511}
    35123512
    3513 void WebGLRenderingContextBase::uniform3i(const WebGLUniformLocation* location, GC3Dint x, GC3Dint y, GC3Dint z, ExceptionCode&)
     3513void WebGLRenderingContextBase::uniform3i(const WebGLUniformLocation* location, GC3Dint x, GC3Dint y, GC3Dint z)
    35143514{
    35153515    if (isContextLostOrPending() || !location)
     
    35243524}
    35253525
    3526 void WebGLRenderingContextBase::uniform3iv(const WebGLUniformLocation* location, Int32Array& v, ExceptionCode&)
     3526void WebGLRenderingContextBase::uniform3iv(const WebGLUniformLocation* location, Int32Array& v)
    35273527{
    35283528    if (isContextLostOrPending() || !validateUniformParameters("uniform3iv", location, v, 3))
     
    35323532}
    35333533
    3534 void WebGLRenderingContextBase::uniform3iv(const WebGLUniformLocation* location, GC3Dint* v, GC3Dsizei size, ExceptionCode&)
     3534void WebGLRenderingContextBase::uniform3iv(const WebGLUniformLocation* location, GC3Dint* v, GC3Dsizei size)
    35353535{
    35363536    if (isContextLostOrPending() || !validateUniformParameters("uniform3iv", location, v, size, 3))
     
    35403540}
    35413541
    3542 void WebGLRenderingContextBase::uniform4f(const WebGLUniformLocation* location, GC3Dfloat x, GC3Dfloat y, GC3Dfloat z, GC3Dfloat w, ExceptionCode&)
     3542void WebGLRenderingContextBase::uniform4f(const WebGLUniformLocation* location, GC3Dfloat x, GC3Dfloat y, GC3Dfloat z, GC3Dfloat w)
    35433543{
    35443544    if (isContextLostOrPending() || !location)
     
    35533553}
    35543554
    3555 void WebGLRenderingContextBase::uniform4fv(const WebGLUniformLocation* location, Float32Array& v, ExceptionCode&)
     3555void WebGLRenderingContextBase::uniform4fv(const WebGLUniformLocation* location, Float32Array& v)
    35563556{
    35573557    if (isContextLostOrPending() || !validateUniformParameters("uniform4fv", location, v, 4))
     
    35613561}
    35623562
    3563 void WebGLRenderingContextBase::uniform4fv(const WebGLUniformLocation* location, GC3Dfloat* v, GC3Dsizei size, ExceptionCode&)
     3563void WebGLRenderingContextBase::uniform4fv(const WebGLUniformLocation* location, GC3Dfloat* v, GC3Dsizei size)
    35643564{
    35653565    if (isContextLostOrPending() || !validateUniformParameters("uniform4fv", location, v, size, 4))
     
    35693569}
    35703570
    3571 void WebGLRenderingContextBase::uniform4i(const WebGLUniformLocation* location, GC3Dint x, GC3Dint y, GC3Dint z, GC3Dint w, ExceptionCode&)
     3571void WebGLRenderingContextBase::uniform4i(const WebGLUniformLocation* location, GC3Dint x, GC3Dint y, GC3Dint z, GC3Dint w)
    35723572{
    35733573    if (isContextLostOrPending() || !location)
     
    35823582}
    35833583
    3584 void WebGLRenderingContextBase::uniform4iv(const WebGLUniformLocation* location, Int32Array& v, ExceptionCode&)
     3584void WebGLRenderingContextBase::uniform4iv(const WebGLUniformLocation* location, Int32Array& v)
    35853585{
    35863586    if (isContextLostOrPending() || !validateUniformParameters("uniform4iv", location, v, 4))
     
    35903590}
    35913591
    3592 void WebGLRenderingContextBase::uniform4iv(const WebGLUniformLocation* location, GC3Dint* v, GC3Dsizei size, ExceptionCode&)
     3592void WebGLRenderingContextBase::uniform4iv(const WebGLUniformLocation* location, GC3Dint* v, GC3Dsizei size)
    35933593{
    35943594    if (isContextLostOrPending() || !validateUniformParameters("uniform4iv", location, v, size, 4))
     
    35983598}
    35993599
    3600 void WebGLRenderingContextBase::uniformMatrix2fv(const WebGLUniformLocation* location, GC3Dboolean transpose, Float32Array& v, ExceptionCode&)
     3600void WebGLRenderingContextBase::uniformMatrix2fv(const WebGLUniformLocation* location, GC3Dboolean transpose, Float32Array& v)
    36013601{
    36023602    if (isContextLostOrPending() || !validateUniformMatrixParameters("uniformMatrix2fv", location, transpose, v, 4))
     
    36053605}
    36063606
    3607 void WebGLRenderingContextBase::uniformMatrix2fv(const WebGLUniformLocation* location, GC3Dboolean transpose, GC3Dfloat* v, GC3Dsizei size, ExceptionCode&)
     3607void WebGLRenderingContextBase::uniformMatrix2fv(const WebGLUniformLocation* location, GC3Dboolean transpose, GC3Dfloat* v, GC3Dsizei size)
    36083608{
    36093609    if (isContextLostOrPending() || !validateUniformMatrixParameters("uniformMatrix2fv", location, transpose, v, size, 4))
     
    36123612}
    36133613
    3614 void WebGLRenderingContextBase::uniformMatrix3fv(const WebGLUniformLocation* location, GC3Dboolean transpose, Float32Array& v, ExceptionCode&)
     3614void WebGLRenderingContextBase::uniformMatrix3fv(const WebGLUniformLocation* location, GC3Dboolean transpose, Float32Array& v)
    36153615{
    36163616    if (isContextLostOrPending() || !validateUniformMatrixParameters("uniformMatrix3fv", location, transpose, v, 9))
     
    36193619}
    36203620
    3621 void WebGLRenderingContextBase::uniformMatrix3fv(const WebGLUniformLocation* location, GC3Dboolean transpose, GC3Dfloat* v, GC3Dsizei size, ExceptionCode&)
     3621void WebGLRenderingContextBase::uniformMatrix3fv(const WebGLUniformLocation* location, GC3Dboolean transpose, GC3Dfloat* v, GC3Dsizei size)
    36223622{
    36233623    if (isContextLostOrPending() || !validateUniformMatrixParameters("uniformMatrix3fv", location, transpose, v, size, 9))
     
    36263626}
    36273627
    3628 void WebGLRenderingContextBase::uniformMatrix4fv(const WebGLUniformLocation* location, GC3Dboolean transpose, Float32Array& v, ExceptionCode&)
     3628void WebGLRenderingContextBase::uniformMatrix4fv(const WebGLUniformLocation* location, GC3Dboolean transpose, Float32Array& v)
    36293629{
    36303630    if (isContextLostOrPending() || !validateUniformMatrixParameters("uniformMatrix4fv", location, transpose, v, 16))
     
    36333633}
    36343634
    3635 void WebGLRenderingContextBase::uniformMatrix4fv(const WebGLUniformLocation* location, GC3Dboolean transpose, GC3Dfloat* v, GC3Dsizei size, ExceptionCode&)
     3635void WebGLRenderingContextBase::uniformMatrix4fv(const WebGLUniformLocation* location, GC3Dboolean transpose, GC3Dfloat* v, GC3Dsizei size)
    36363636{
    36373637    if (isContextLostOrPending() || !validateUniformMatrixParameters("uniformMatrix4fv", location, transpose, v, size, 16))
     
    36403640}
    36413641
    3642 void WebGLRenderingContextBase::useProgram(WebGLProgram* program, ExceptionCode&)
     3642void WebGLRenderingContextBase::useProgram(WebGLProgram* program)
    36433643{
    36443644    bool deleted;
     
    36613661}
    36623662
    3663 void WebGLRenderingContextBase::validateProgram(WebGLProgram* program, ExceptionCode&)
     3663void WebGLRenderingContextBase::validateProgram(WebGLProgram* program)
    36643664{
    36653665    if (isContextLostOrPending() || !validateWebGLObject("validateProgram", program))
     
    37283728}
    37293729
    3730 void WebGLRenderingContextBase::vertexAttribPointer(GC3Duint index, GC3Dint size, GC3Denum type, GC3Dboolean normalized, GC3Dsizei stride, long long offset, ExceptionCode&)
     3730void WebGLRenderingContextBase::vertexAttribPointer(GC3Duint index, GC3Dint size, GC3Denum type, GC3Dboolean normalized, GC3Dsizei stride, long long offset)
    37313731{
    37323732    if (isContextLostOrPending())
     
    49844984void WebGLRenderingContextBase::restoreCurrentFramebuffer()
    49854985{
    4986     ExceptionCode ec;
    4987     bindFramebuffer(GraphicsContext3D::FRAMEBUFFER, m_framebufferBinding.get(), ec);
     4986    bindFramebuffer(GraphicsContext3D::FRAMEBUFFER, m_framebufferBinding.get());
    49884987}
    49894988
    49904989void WebGLRenderingContextBase::restoreCurrentTexture2D()
    49914990{
    4992     ExceptionCode ec;
    49934991    auto texture = m_textureUnits[m_activeTextureUnit].texture2DBinding.get();
    4994     bindTexture(GraphicsContext3D::TEXTURE_2D, texture, ec);
     4992    bindTexture(GraphicsContext3D::TEXTURE_2D, texture);
    49954993    if (texture && texture->needToUseBlackTexture(textureExtensionFlags()))
    49964994        m_unrenderableTextureUnits.add(m_activeTextureUnit);
  • trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.h

    r207632 r207644  
    126126    int drawingBufferHeight() const;
    127127
    128     void activeTexture(GC3Denum texture, ExceptionCode&);
    129     void attachShader(WebGLProgram*, WebGLShader*, ExceptionCode&);
    130     void bindAttribLocation(WebGLProgram*, GC3Duint index, const String& name, ExceptionCode&);
    131     void bindBuffer(GC3Denum target, WebGLBuffer*, ExceptionCode&);
    132     void bindFramebuffer(GC3Denum target, WebGLFramebuffer*, ExceptionCode&);
    133     void bindRenderbuffer(GC3Denum target, WebGLRenderbuffer*, ExceptionCode&);
    134     void bindTexture(GC3Denum target, WebGLTexture*, ExceptionCode&);
     128    void activeTexture(GC3Denum texture);
     129    void attachShader(WebGLProgram*, WebGLShader*);
     130    void bindAttribLocation(WebGLProgram*, GC3Duint index, const String& name);
     131    void bindBuffer(GC3Denum target, WebGLBuffer*);
     132    void bindFramebuffer(GC3Denum target, WebGLFramebuffer*);
     133    void bindRenderbuffer(GC3Denum target, WebGLRenderbuffer*);
     134    void bindTexture(GC3Denum target, WebGLTexture*);
    135135    void blendColor(GC3Dfloat red, GC3Dfloat green, GC3Dfloat blue, GC3Dfloat alpha);
    136136    void blendEquation(GC3Denum mode);
     
    139139    void blendFuncSeparate(GC3Denum srcRGB, GC3Denum dstRGB, GC3Denum srcAlpha, GC3Denum dstAlpha);
    140140
    141     void bufferData(GC3Denum target, long long size, GC3Denum usage, ExceptionCode&);
    142     void bufferData(GC3Denum target, ArrayBuffer* data, GC3Denum usage, ExceptionCode&);
    143     void bufferData(GC3Denum target, RefPtr<ArrayBufferView>&& data, GC3Denum usage, ExceptionCode&);
    144     void bufferSubData(GC3Denum target, long long offset, ArrayBuffer* data, ExceptionCode&);
    145     void bufferSubData(GC3Denum target, long long offset, RefPtr<ArrayBufferView>&& data, ExceptionCode&);
     141    void bufferData(GC3Denum target, long long size, GC3Denum usage);
     142    void bufferData(GC3Denum target, ArrayBuffer* data, GC3Denum usage);
     143    void bufferData(GC3Denum target, RefPtr<ArrayBufferView>&& data, GC3Denum usage);
     144    void bufferSubData(GC3Denum target, long long offset, ArrayBuffer* data);
     145    void bufferSubData(GC3Denum target, long long offset, RefPtr<ArrayBufferView>&& data);
    146146
    147147    GC3Denum checkFramebufferStatus(GC3Denum target);
     
    151151    void clearStencil(GC3Dint);
    152152    void colorMask(GC3Dboolean red, GC3Dboolean green, GC3Dboolean blue, GC3Dboolean alpha);
    153     void compileShader(WebGLShader*, ExceptionCode&);
     153    void compileShader(WebGLShader*);
    154154
    155155    void compressedTexImage2D(GC3Denum target, GC3Dint level, GC3Denum internalformat, GC3Dsizei width, GC3Dsizei height, GC3Dint border, ArrayBufferView& data);
     
    163163    RefPtr<WebGLProgram> createProgram();
    164164    RefPtr<WebGLRenderbuffer> createRenderbuffer();
    165     RefPtr<WebGLShader> createShader(GC3Denum type, ExceptionCode&);
     165    RefPtr<WebGLShader> createShader(GC3Denum type);
    166166    RefPtr<WebGLTexture> createTexture();
    167167
     
    178178    void depthMask(GC3Dboolean);
    179179    void depthRange(GC3Dfloat zNear, GC3Dfloat zFar);
    180     void detachShader(WebGLProgram*, WebGLShader*, ExceptionCode&);
     180    void detachShader(WebGLProgram*, WebGLShader*);
    181181    void disable(GC3Denum cap);
    182     void disableVertexAttribArray(GC3Duint index, ExceptionCode&);
    183     void drawArrays(GC3Denum mode, GC3Dint first, GC3Dsizei count, ExceptionCode&);
    184     void drawElements(GC3Denum mode, GC3Dsizei count, GC3Denum type, long long offset, ExceptionCode&);
     182    void disableVertexAttribArray(GC3Duint index);
     183    void drawArrays(GC3Denum mode, GC3Dint first, GC3Dsizei count);
     184    void drawElements(GC3Denum mode, GC3Dsizei count, GC3Denum type, long long offset);
    185185
    186186    void enable(GC3Denum cap);
    187     void enableVertexAttribArray(GC3Duint index, ExceptionCode&);
     187    void enableVertexAttribArray(GC3Duint index);
    188188    void finish();
    189189    void flush();
    190     void framebufferRenderbuffer(GC3Denum target, GC3Denum attachment, GC3Denum renderbuffertarget, WebGLRenderbuffer*, ExceptionCode&);
    191     void framebufferTexture2D(GC3Denum target, GC3Denum attachment, GC3Denum textarget, WebGLTexture*, GC3Dint level, ExceptionCode&);
     190    void framebufferRenderbuffer(GC3Denum target, GC3Denum attachment, GC3Denum renderbuffertarget, WebGLRenderbuffer*);
     191    void framebufferTexture2D(GC3Denum target, GC3Denum attachment, GC3Denum textarget, WebGLTexture*, GC3Dint level);
    192192    void frontFace(GC3Denum mode);
    193193    void generateMipmap(GC3Denum target);
    194194
    195     RefPtr<WebGLActiveInfo> getActiveAttrib(WebGLProgram*, GC3Duint index, ExceptionCode&);
    196     RefPtr<WebGLActiveInfo> getActiveUniform(WebGLProgram*, GC3Duint index, ExceptionCode&);
    197     bool getAttachedShaders(WebGLProgram*, Vector<RefPtr<WebGLShader>>&, ExceptionCode&);
     195    RefPtr<WebGLActiveInfo> getActiveAttrib(WebGLProgram*, GC3Duint index);
     196    RefPtr<WebGLActiveInfo> getActiveUniform(WebGLProgram*, GC3Duint index);
     197    bool getAttachedShaders(WebGLProgram*, Vector<RefPtr<WebGLShader>>&);
    198198    GC3Dint getAttribLocation(WebGLProgram*, const String& name);
    199     WebGLGetInfo getBufferParameter(GC3Denum target, GC3Denum pname, ExceptionCode&);
     199    WebGLGetInfo getBufferParameter(GC3Denum target, GC3Denum pname);
    200200    RefPtr<WebGLContextAttributes> getContextAttributes();
    201201    GC3Denum getError();
     
    203203    virtual WebGLGetInfo getFramebufferAttachmentParameter(GC3Denum target, GC3Denum attachment, GC3Denum pname, ExceptionCode&) = 0;
    204204    virtual WebGLGetInfo getParameter(GC3Denum pname, ExceptionCode&) = 0;
    205     WebGLGetInfo getProgramParameter(WebGLProgram*, GC3Denum pname, ExceptionCode&);
    206     String getProgramInfoLog(WebGLProgram*, ExceptionCode&);
    207     WebGLGetInfo getRenderbufferParameter(GC3Denum target, GC3Denum pname, ExceptionCode&);
    208     WebGLGetInfo getShaderParameter(WebGLShader*, GC3Denum pname, ExceptionCode&);
    209     String getShaderInfoLog(WebGLShader*, ExceptionCode&);
    210     RefPtr<WebGLShaderPrecisionFormat> getShaderPrecisionFormat(GC3Denum shaderType, GC3Denum precisionType, ExceptionCode&);
    211     String getShaderSource(WebGLShader*, ExceptionCode&);
     205    WebGLGetInfo getProgramParameter(WebGLProgram*, GC3Denum pname);
     206    String getProgramInfoLog(WebGLProgram*);
     207    WebGLGetInfo getRenderbufferParameter(GC3Denum target, GC3Denum pname);
     208    WebGLGetInfo getShaderParameter(WebGLShader*, GC3Denum pname);
     209    String getShaderInfoLog(WebGLShader*);
     210    RefPtr<WebGLShaderPrecisionFormat> getShaderPrecisionFormat(GC3Denum shaderType, GC3Denum precisionType);
     211    String getShaderSource(WebGLShader*);
    212212    virtual Vector<String> getSupportedExtensions() = 0;
    213     WebGLGetInfo getTexParameter(GC3Denum target, GC3Denum pname, ExceptionCode&);
    214     WebGLGetInfo getUniform(WebGLProgram*, const WebGLUniformLocation*, ExceptionCode&);
    215     RefPtr<WebGLUniformLocation> getUniformLocation(WebGLProgram*, const String&, ExceptionCode&);
    216     WebGLGetInfo getVertexAttrib(GC3Duint index, GC3Denum pname, ExceptionCode&);
     213    WebGLGetInfo getTexParameter(GC3Denum target, GC3Denum pname);
     214    WebGLGetInfo getUniform(WebGLProgram*, const WebGLUniformLocation*);
     215    RefPtr<WebGLUniformLocation> getUniformLocation(WebGLProgram*, const String&);
     216    WebGLGetInfo getVertexAttrib(GC3Duint index, GC3Denum pname);
    217217    long long getVertexAttribOffset(GC3Duint index, GC3Denum pname);
    218218
     
    228228
    229229    void lineWidth(GC3Dfloat);
    230     void linkProgram(WebGLProgram*, ExceptionCode&);
     230    void linkProgram(WebGLProgram*);
    231231    void pixelStorei(GC3Denum pname, GC3Dint param);
    232232    void polygonOffset(GC3Dfloat factor, GC3Dfloat units);
    233     void readPixels(GC3Dint x, GC3Dint y, GC3Dsizei width, GC3Dsizei height, GC3Denum format, GC3Denum type, ArrayBufferView& pixels, ExceptionCode&);
     233    void readPixels(GC3Dint x, GC3Dint y, GC3Dsizei width, GC3Dsizei height, GC3Denum format, GC3Denum type, ArrayBufferView& pixels);
    234234    void releaseShaderCompiler();
    235235    virtual void renderbufferStorage(GC3Denum target, GC3Denum internalformat, GC3Dsizei width, GC3Dsizei height) = 0;
    236236    void sampleCoverage(GC3Dfloat value, GC3Dboolean invert);
    237237    void scissor(GC3Dint x, GC3Dint y, GC3Dsizei width, GC3Dsizei height);
    238     void shaderSource(WebGLShader*, const String&, ExceptionCode&);
     238    void shaderSource(WebGLShader*, const String&);
    239239    void stencilFunc(GC3Denum func, GC3Dint ref, GC3Duint mask);
    240240    void stencilFuncSeparate(GC3Denum face, GC3Denum func, GC3Dint ref, GC3Duint mask);
     
    275275#endif
    276276
    277     void uniform1f(const WebGLUniformLocation*, GC3Dfloat x, ExceptionCode&);
    278     void uniform1fv(const WebGLUniformLocation*, Float32Array& v, ExceptionCode&);
    279     void uniform1fv(const WebGLUniformLocation*, GC3Dfloat* v, GC3Dsizei, ExceptionCode&);
    280     void uniform1i(const WebGLUniformLocation*, GC3Dint x, ExceptionCode&);
    281     void uniform1iv(const WebGLUniformLocation*, Int32Array& v, ExceptionCode&);
    282     void uniform1iv(const WebGLUniformLocation*, GC3Dint* v, GC3Dsizei, ExceptionCode&);
    283     void uniform2f(const WebGLUniformLocation*, GC3Dfloat x, GC3Dfloat y, ExceptionCode&);
    284     void uniform2fv(const WebGLUniformLocation*, Float32Array& v, ExceptionCode&);
    285     void uniform2fv(const WebGLUniformLocation*, GC3Dfloat* v, GC3Dsizei, ExceptionCode&);
    286     void uniform2i(const WebGLUniformLocation*, GC3Dint x, GC3Dint y, ExceptionCode&);
    287     void uniform2iv(const WebGLUniformLocation*, Int32Array& v, ExceptionCode&);
    288     void uniform2iv(const WebGLUniformLocation*, GC3Dint* v, GC3Dsizei, ExceptionCode&);
    289     void uniform3f(const WebGLUniformLocation*, GC3Dfloat x, GC3Dfloat y, GC3Dfloat z, ExceptionCode&);
    290     void uniform3fv(const WebGLUniformLocation*, Float32Array& v, ExceptionCode&);
    291     void uniform3fv(const WebGLUniformLocation*, GC3Dfloat* v, GC3Dsizei, ExceptionCode&);
    292     void uniform3i(const WebGLUniformLocation*, GC3Dint x, GC3Dint y, GC3Dint z, ExceptionCode&);
    293     void uniform3iv(const WebGLUniformLocation*, Int32Array& v, ExceptionCode&);
    294     void uniform3iv(const WebGLUniformLocation*, GC3Dint* v, GC3Dsizei, ExceptionCode&);
    295     void uniform4f(const WebGLUniformLocation*, GC3Dfloat x, GC3Dfloat y, GC3Dfloat z, GC3Dfloat w, ExceptionCode&);
    296     void uniform4fv(const WebGLUniformLocation*, Float32Array& v, ExceptionCode&);
    297     void uniform4fv(const WebGLUniformLocation*, GC3Dfloat* v, GC3Dsizei, ExceptionCode&);
    298     void uniform4i(const WebGLUniformLocation*, GC3Dint x, GC3Dint y, GC3Dint z, GC3Dint w, ExceptionCode&);
    299     void uniform4iv(const WebGLUniformLocation*, Int32Array& v, ExceptionCode&);
    300     void uniform4iv(const WebGLUniformLocation*, GC3Dint* v, GC3Dsizei, ExceptionCode&);
    301     void uniformMatrix2fv(const WebGLUniformLocation*, GC3Dboolean transpose, Float32Array& value, ExceptionCode&);
    302     void uniformMatrix2fv(const WebGLUniformLocation*, GC3Dboolean transpose, GC3Dfloat* value, GC3Dsizei, ExceptionCode&);
    303     void uniformMatrix3fv(const WebGLUniformLocation*, GC3Dboolean transpose, Float32Array& value, ExceptionCode&);
    304     void uniformMatrix3fv(const WebGLUniformLocation*, GC3Dboolean transpose, GC3Dfloat* value, GC3Dsizei, ExceptionCode&);
    305     void uniformMatrix4fv(const WebGLUniformLocation*, GC3Dboolean transpose, Float32Array& value, ExceptionCode&);
    306     void uniformMatrix4fv(const WebGLUniformLocation*, GC3Dboolean transpose, GC3Dfloat* value, GC3Dsizei, ExceptionCode&);
    307 
    308     void useProgram(WebGLProgram*, ExceptionCode&);
    309     void validateProgram(WebGLProgram*, ExceptionCode&);
     277    void uniform1f(const WebGLUniformLocation*, GC3Dfloat x);
     278    void uniform1fv(const WebGLUniformLocation*, Float32Array& v);
     279    void uniform1fv(const WebGLUniformLocation*, GC3Dfloat* v, GC3Dsizei);
     280    void uniform1i(const WebGLUniformLocation*, GC3Dint x);
     281    void uniform1iv(const WebGLUniformLocation*, Int32Array& v);
     282    void uniform1iv(const WebGLUniformLocation*, GC3Dint* v, GC3Dsizei);
     283    void uniform2f(const WebGLUniformLocation*, GC3Dfloat x, GC3Dfloat y);
     284    void uniform2fv(const WebGLUniformLocation*, Float32Array& v);
     285    void uniform2fv(const WebGLUniformLocation*, GC3Dfloat* v, GC3Dsizei);
     286    void uniform2i(const WebGLUniformLocation*, GC3Dint x, GC3Dint y);
     287    void uniform2iv(const WebGLUniformLocation*, Int32Array& v);
     288    void uniform2iv(const WebGLUniformLocation*, GC3Dint* v, GC3Dsizei);
     289    void uniform3f(const WebGLUniformLocation*, GC3Dfloat x, GC3Dfloat y, GC3Dfloat z);
     290    void uniform3fv(const WebGLUniformLocation*, Float32Array& v);
     291    void uniform3fv(const WebGLUniformLocation*, GC3Dfloat* v, GC3Dsizei);
     292    void uniform3i(const WebGLUniformLocation*, GC3Dint x, GC3Dint y, GC3Dint z);
     293    void uniform3iv(const WebGLUniformLocation*, Int32Array& v);
     294    void uniform3iv(const WebGLUniformLocation*, GC3Dint* v, GC3Dsizei);
     295    void uniform4f(const WebGLUniformLocation*, GC3Dfloat x, GC3Dfloat y, GC3Dfloat z, GC3Dfloat w);
     296    void uniform4fv(const WebGLUniformLocation*, Float32Array& v);
     297    void uniform4fv(const WebGLUniformLocation*, GC3Dfloat* v, GC3Dsizei);
     298    void uniform4i(const WebGLUniformLocation*, GC3Dint x, GC3Dint y, GC3Dint z, GC3Dint w);
     299    void uniform4iv(const WebGLUniformLocation*, Int32Array& v);
     300    void uniform4iv(const WebGLUniformLocation*, GC3Dint* v, GC3Dsizei);
     301    void uniformMatrix2fv(const WebGLUniformLocation*, GC3Dboolean transpose, Float32Array& value);
     302    void uniformMatrix2fv(const WebGLUniformLocation*, GC3Dboolean transpose, GC3Dfloat* value, GC3Dsizei);
     303    void uniformMatrix3fv(const WebGLUniformLocation*, GC3Dboolean transpose, Float32Array& value);
     304    void uniformMatrix3fv(const WebGLUniformLocation*, GC3Dboolean transpose, GC3Dfloat* value, GC3Dsizei);
     305    void uniformMatrix4fv(const WebGLUniformLocation*, GC3Dboolean transpose, Float32Array& value);
     306    void uniformMatrix4fv(const WebGLUniformLocation*, GC3Dboolean transpose, GC3Dfloat* value, GC3Dsizei);
     307
     308    void useProgram(WebGLProgram*);
     309    void validateProgram(WebGLProgram*);
    310310
    311311    void vertexAttrib1f(GC3Duint index, GC3Dfloat x);
     
    322322    void vertexAttrib4fv(GC3Duint index, GC3Dfloat* values, GC3Dsizei size);
    323323    void vertexAttribPointer(GC3Duint index, GC3Dint size, GC3Denum type, GC3Dboolean normalized,
    324                              GC3Dsizei stride, long long offset, ExceptionCode&);
     324        GC3Dsizei stride, long long offset);
    325325
    326326    void viewport(GC3Dint x, GC3Dint y, GC3Dsizei width, GC3Dsizei height);
     
    430430
    431431#if ENABLE(VIDEO)
    432     RefPtr<Image> videoFrameToImage(HTMLVideoElement*, BackingStoreCopy, ExceptionCode&);
     432    RefPtr<Image> videoFrameToImage(HTMLVideoElement*, BackingStoreCopy);
    433433#endif
    434434
  • trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.idl

    r207632 r207644  
    473473    readonly attribute GLsizei drawingBufferHeight;
    474474
    475     [MayThrowLegacyException] void activeTexture(GLenum texture);
    476     [MayThrowLegacyException] void attachShader(WebGLProgram? program, WebGLShader? shader);
    477     [MayThrowLegacyException] void bindAttribLocation(WebGLProgram? program, GLuint index, DOMString name);
    478     [MayThrowLegacyException] void bindBuffer(GLenum target, WebGLBuffer? buffer);
    479     [MayThrowLegacyException] void bindFramebuffer(GLenum target, WebGLFramebuffer? framebuffer);
    480     [MayThrowLegacyException] void bindRenderbuffer(GLenum target, WebGLRenderbuffer? renderbuffer);
    481     [MayThrowLegacyException] void bindTexture(GLenum target, WebGLTexture? texture);
     475    void activeTexture(GLenum texture);
     476    void attachShader(WebGLProgram? program, WebGLShader? shader);
     477    void bindAttribLocation(WebGLProgram? program, GLuint index, DOMString name);
     478    void bindBuffer(GLenum target, WebGLBuffer? buffer);
     479    void bindFramebuffer(GLenum target, WebGLFramebuffer? framebuffer);
     480    void bindRenderbuffer(GLenum target, WebGLRenderbuffer? renderbuffer);
     481    void bindTexture(GLenum target, WebGLTexture? texture);
    482482    void blendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
    483483    void blendEquation(GLenum mode);
     
    485485    void blendFunc(GLenum sfactor, GLenum dfactor);
    486486    void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
    487     [MayThrowLegacyException] void bufferData(GLenum target, ArrayBuffer? data, GLenum usage);
    488     [MayThrowLegacyException] void bufferData(GLenum target, ArrayBufferView? data, GLenum usage);
    489     [MayThrowLegacyException] void bufferData(GLenum target, GLsizeiptr size, GLenum usage);
    490     [MayThrowLegacyException] void bufferSubData(GLenum target, GLintptr offset, ArrayBuffer? data);
    491     [MayThrowLegacyException] void bufferSubData(GLenum target, GLintptr offset, ArrayBufferView? data);
     487    void bufferData(GLenum target, ArrayBuffer? data, GLenum usage);
     488    void bufferData(GLenum target, ArrayBufferView? data, GLenum usage);
     489    void bufferData(GLenum target, GLsizeiptr size, GLenum usage);
     490    void bufferSubData(GLenum target, GLintptr offset, ArrayBuffer? data);
     491    void bufferSubData(GLenum target, GLintptr offset, ArrayBufferView? data);
    492492
    493493    GLenum checkFramebufferStatus(GLenum target);
     
    497497    void clearStencil(GLint s);
    498498    void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
    499     [MayThrowLegacyException] void compileShader(WebGLShader? shader);
     499    void compileShader(WebGLShader? shader);
    500500
    501501    void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat,
    502502    GLsizei width, GLsizei height, GLint border, ArrayBufferView data);
    503503    void compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
    504    GLsizei width, GLsizei height, GLenum format, ArrayBufferView data);
     504        GLsizei width, GLsizei height, GLenum format, ArrayBufferView data);
    505505   
    506506    void copyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
     
    511511    WebGLProgram createProgram();
    512512    WebGLRenderbuffer createRenderbuffer();
    513     [MayThrowLegacyException] WebGLShader createShader(GLenum type);
     513    WebGLShader createShader(GLenum type);
    514514    WebGLTexture createTexture();
    515515
     
    526526    void depthMask(GLboolean flag);
    527527    void depthRange(GLclampf zNear, GLclampf zFar);
    528     [MayThrowLegacyException] void detachShader(WebGLProgram? program, WebGLShader? shader);
     528    void detachShader(WebGLProgram? program, WebGLShader? shader);
    529529    void disable(GLenum cap);
    530     [MayThrowLegacyException] void disableVertexAttribArray(GLuint index);
    531     [MayThrowLegacyException] void drawArrays(GLenum mode, GLint first, GLsizei count);
    532     [MayThrowLegacyException] void drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset);
     530    void disableVertexAttribArray(GLuint index);
     531    void drawArrays(GLenum mode, GLint first, GLsizei count);
     532    void drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset);
    533533
    534534    void enable(GLenum cap);
    535     [MayThrowLegacyException] void enableVertexAttribArray(GLuint index);
     535    void enableVertexAttribArray(GLuint index);
    536536    void finish();
    537537    void flush();
    538     [MayThrowLegacyException] void framebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, WebGLRenderbuffer? renderbuffer);
    539     [MayThrowLegacyException] void framebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, WebGLTexture? texture, GLint level);
     538    void framebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, WebGLRenderbuffer? renderbuffer);
     539    void framebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, WebGLTexture? texture, GLint level);
    540540    void frontFace(GLenum mode);
    541541    void generateMipmap(GLenum target);
    542542   
    543     [MayThrowLegacyException] WebGLActiveInfo getActiveAttrib(WebGLProgram? program, GLuint index);
    544     [MayThrowLegacyException] WebGLActiveInfo getActiveUniform(WebGLProgram? program, GLuint index);
     543    WebGLActiveInfo getActiveAttrib(WebGLProgram? program, GLuint index);
     544    WebGLActiveInfo getActiveUniform(WebGLProgram? program, GLuint index);
    545545
    546546    [Custom, MayThrowLegacyException] void getAttachedShaders(WebGLProgram? program);
     
    560560    [Custom, MayThrowLegacyException] any getParameter(GLenum pname);
    561561    [Custom, MayThrowLegacyException] any getProgramParameter(WebGLProgram? program, GLenum pname);
    562     [MayThrowLegacyException] DOMString? getProgramInfoLog(WebGLProgram? program);
     562    DOMString? getProgramInfoLog(WebGLProgram? program);
    563563    [Custom, MayThrowLegacyException] any getRenderbufferParameter(GLenum target, GLenum pname);
    564564    [Custom, MayThrowLegacyException] any getShaderParameter(WebGLShader? shader, GLenum pname);
    565565
    566     [MayThrowLegacyException] DOMString? getShaderInfoLog(WebGLShader? shader);
    567 
    568     [MayThrowLegacyException] WebGLShaderPrecisionFormat getShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype);
    569 
    570     [MayThrowLegacyException] DOMString? getShaderSource(WebGLShader? shader);
     566    DOMString? getShaderInfoLog(WebGLShader? shader);
     567
     568    WebGLShaderPrecisionFormat getShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype);
     569
     570    DOMString? getShaderSource(WebGLShader? shader);
    571571
    572572    [Custom] sequence<DOMString> getSupportedExtensions();
     
    576576    [Custom, MayThrowLegacyException] any getUniform(WebGLProgram? program, WebGLUniformLocation? location);
    577577
    578     [MayThrowLegacyException] WebGLUniformLocation getUniformLocation(WebGLProgram? program, DOMString name);
     578    WebGLUniformLocation getUniformLocation(WebGLProgram? program, DOMString name);
    579579
    580580    [Custom, MayThrowLegacyException] any getVertexAttrib(GLuint index, GLenum pname);
     
    592592    GLboolean isTexture(WebGLTexture? texture);
    593593    void lineWidth(GLfloat width);
    594     [MayThrowLegacyException] void linkProgram(WebGLProgram? program);
     594    void linkProgram(WebGLProgram? program);
    595595    void pixelStorei(GLenum pname, GLint param);
    596596    void polygonOffset(GLfloat factor, GLfloat units);
    597597
    598     [MayThrowLegacyException] void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, ArrayBufferView pixels);
     598    void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, ArrayBufferView pixels);
    599599   
    600600    void releaseShaderCompiler();
     
    602602    void sampleCoverage(GLclampf value, GLboolean invert);
    603603    void scissor(GLint x, GLint y, GLsizei width, GLsizei height);
    604     [MayThrowLegacyException] void shaderSource(WebGLShader? shader, DOMString string);
     604    void shaderSource(WebGLShader? shader, DOMString string);
    605605    void stencilFunc(GLenum func, GLint ref, GLuint mask);
    606606    void stencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask);
     
    641641#endif
    642642
    643     [MayThrowLegacyException] void uniform1f(WebGLUniformLocation? location, GLfloat x);
     643    void uniform1f(WebGLUniformLocation? location, GLfloat x);
    644644    [Custom, MayThrowLegacyException] void uniform1fv(WebGLUniformLocation? location, Float32Array v);
    645     [MayThrowLegacyException] void uniform1i(WebGLUniformLocation? location, GLint x);
     645    void uniform1i(WebGLUniformLocation? location, GLint x);
    646646    [Custom, MayThrowLegacyException] void uniform1iv(WebGLUniformLocation? location, Int32Array v);
    647     [MayThrowLegacyException] void uniform2f(WebGLUniformLocation? location, GLfloat x, GLfloat y);
     647    void uniform2f(WebGLUniformLocation? location, GLfloat x, GLfloat y);
    648648    [Custom, MayThrowLegacyException] void uniform2fv(WebGLUniformLocation? location, Float32Array v);
    649     [MayThrowLegacyException] void uniform2i(WebGLUniformLocation? location, GLint x, GLint y);
     649    void uniform2i(WebGLUniformLocation? location, GLint x, GLint y);
    650650    [Custom, MayThrowLegacyException] void uniform2iv(WebGLUniformLocation? location, Int32Array v);
    651     [MayThrowLegacyException] void uniform3f(WebGLUniformLocation? location, GLfloat x, GLfloat y, GLfloat z);
     651    void uniform3f(WebGLUniformLocation? location, GLfloat x, GLfloat y, GLfloat z);
    652652    [Custom, MayThrowLegacyException] void uniform3fv(WebGLUniformLocation? location, Float32Array v);
    653     [MayThrowLegacyException] void uniform3i(WebGLUniformLocation? location, GLint x, GLint y, GLint z);
     653    void uniform3i(WebGLUniformLocation? location, GLint x, GLint y, GLint z);
    654654    [Custom, MayThrowLegacyException] void uniform3iv(WebGLUniformLocation? location, Int32Array v);
    655     [MayThrowLegacyException] void uniform4f(WebGLUniformLocation? location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
     655    void uniform4f(WebGLUniformLocation? location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
    656656    [Custom, MayThrowLegacyException] void uniform4fv(WebGLUniformLocation? location, Float32Array v);
    657     [MayThrowLegacyException] void uniform4i(WebGLUniformLocation? location, GLint x, GLint y, GLint z, GLint w);
     657    void uniform4i(WebGLUniformLocation? location, GLint x, GLint y, GLint z, GLint w);
    658658    [Custom, MayThrowLegacyException] void uniform4iv(WebGLUniformLocation? location, Int32Array v);
    659659
     
    662662    [Custom, MayThrowLegacyException] void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, Float32Array array);
    663663
    664     [MayThrowLegacyException] void useProgram(WebGLProgram? program);
    665     [MayThrowLegacyException] void validateProgram(WebGLProgram? program);
     664    void useProgram(WebGLProgram? program);
     665    void validateProgram(WebGLProgram? program);
    666666
    667667    void vertexAttrib1f(GLuint indx, GLfloat x);
     
    673673    void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
    674674    [Custom] void vertexAttrib4fv(GLuint indx, Float32Array values);
    675     [MayThrowLegacyException] void vertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset);
     675    void vertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset);
    676676
    677677    void viewport(GLint x, GLint y, GLsizei width, GLsizei height);
Note: See TracChangeset for help on using the changeset viewer.