Skip to content
  • commit-queue@webkit.org's avatar
    WEBGL_compressed_texture_atc implementation · 6d64e088
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=110496
    
    Patch by Brandon Jones <bajones@google.com> on 2013-03-04
    Reviewed by Kenneth Russell.
    
    Source/WebCore:
    
    Test: webgl/conformance/extensions/webgl-compressed-texture-atc.html
    
    Exposes the WEBGL_compressed_texture_atc extension, but is unverified since no desktop hardware supports
    the format that I am aware of. Should enable mobile ports to expose the format, however.
    
    * CMakeLists.txt:
    * DerivedSources.make:
    * DerivedSources.pri:
    * GNUmakefile.list.am:
    * Target.pri:
    * WebCore.gypi:
    * WebCore.xcodeproj/project.pbxproj:
    * bindings/js/JSWebGLRenderingContextCustom.cpp:
    (WebCore::toJS):
    * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
    (WebCore::toV8Object):
    * html/canvas/WebGLCompressedTextureATC.cpp: Copied from Source/WebCore/html/canvas/WebGLExtension.h.
    (WebCore):
    (WebCore::WebGLCompressedTextureATC::WebGLCompressedTextureATC):
    (WebCore::WebGLCompressedTextureATC::~WebGLCompressedTextureATC):
    (WebCore::WebGLCompressedTextureATC::getName):
    (WebCore::WebGLCompressedTextureATC::create):
    (WebCore::WebGLCompressedTextureATC::supported):
    * html/canvas/WebGLCompressedTextureATC.h: Copied from Source/WebCore/html/canvas/WebGLExtension.h.
    (WebCore):
    (WebGLCompressedTextureATC):
    * html/canvas/WebGLCompressedTextureATC.idl: Copied from Source/WebCore/html/canvas/WebGLExtension.h.
    * html/canvas/WebGLExtension.h:
    * html/canvas/WebGLRenderingContext.cpp:
    (WebCore):
    (WebCore::WebGLRenderingContext::paintRenderingResultsToCanvas):
    (WebCore::WebGLRenderingContext::getExtension):
    (WebCore::WebGLRenderingContext::getSupportedExtensions):
    (WebCore::WebGLRenderingContext::validateCompressedTexFuncData):
    * html/canvas/WebGLRenderingContext.h:
    (WebCore):
    (WebGLRenderingContext):
    * platform/graphics/Extensions3D.h:
    
    LayoutTests:
    
    * webgl/conformance/extensions/webgl-compressed-texture-atc-expected.txt: Added.
    * webgl/conformance/extensions/webgl-compressed-texture-atc.html: Added.
    * webgl/resources/webgl_test_files/conformance/extensions/webgl-compressed-texture-atc.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@144723 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    6d64e088