Skip to content
  • commit-queue@webkit.org's avatar
    Web Inspector: [WebGL] Save gl.getError() status before taking a WebGL state... · a51c95d7
    commit-queue@webkit.org authored
    Web Inspector: [WebGL] Save gl.getError() status before taking a WebGL state snapshot and restore it afterwards
    https://bugs.webkit.org/show_bug.cgi?id=95443
    
    Patch by Andrey Adaikin <aandrey@chromium.org> on 2012-09-04
    Reviewed by Vsevolod Vlasov.
    
    Source/WebCore:
    
    Save gl.getError() status before taking the GL snapshot and restore it afterwards.
    
    * inspector/InjectedScriptWebGLModuleSource.js:
    (.):
    
    LayoutTests:
    
    Adds a test to check that we properly save the WebGL getError() status while doing the instrumentation.
    
    * inspector/profiler/webgl/webgl-profiler-get-error-expected.txt: Added.
    * inspector/profiler/webgl/webgl-profiler-get-error.html: Added.
    * inspector/profiler/webgl/webgl-profiler-test.js: Added.
    (initialize_WebGLProfilerTest.InspectorTest.enableWebGLAgent):
    (initialize_WebGLProfilerTest):
    (createWebGLContext):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127452 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    a51c95d7