Changeset 152527 in webkit


Ignore:
Timestamp:
Jul 10, 2013 12:41:42 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Change recently ratified extensions prefixes from WEBKIT_WEBGL_ to WEBGL_
https://bugs.webkit.org/show_bug.cgi?id=117786

Patch by Karol Świniarski <k.swiniarsk2@samsung.com> on 2013-07-10
Reviewed by Dean Jackson.

According to WebGL's revision 10, extensions should be named: WEBGL_lose_context,
WEBGL_depth_texture, WEBGL_compressed_texture_s3tc.

No new tests. Covered by existing tests:
LayoutTests/webgl/conformance/extensions/get-extension.html
LayoutTests/webgl/conformance/context/context-lost.html
LayoutTests/webgl/conformance/extensions/webgl-depth-texture.html
LayoutTests/webgl/conformance/extensions/webgl-compressed-texture-s3tc.html

  • html/canvas/WebGLRenderingContext.cpp:

(WebCore::WebGLRenderingContext::getExtension):
(WebCore::WebGLRenderingContext::getSupportedExtensions):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r152526 r152527  
     12013-07-10  Karol Świniarski  <k.swiniarsk2@samsung.com>
     2
     3        Change recently ratified extensions prefixes from WEBKIT_WEBGL_ to WEBGL_
     4        https://bugs.webkit.org/show_bug.cgi?id=117786
     5
     6        Reviewed by Dean Jackson.
     7
     8        According to WebGL's revision 10, extensions should be named: WEBGL_lose_context,
     9        WEBGL_depth_texture, WEBGL_compressed_texture_s3tc.
     10
     11        No new tests. Covered by existing tests:
     12        LayoutTests/webgl/conformance/extensions/get-extension.html
     13        LayoutTests/webgl/conformance/context/context-lost.html
     14        LayoutTests/webgl/conformance/extensions/webgl-depth-texture.html
     15        LayoutTests/webgl/conformance/extensions/webgl-compressed-texture-s3tc.html
     16
     17        * html/canvas/WebGLRenderingContext.cpp:
     18        (WebCore::WebGLRenderingContext::getExtension):
     19        (WebCore::WebGLRenderingContext::getSupportedExtensions):
     20
    1212013-07-09  Byungwoo Lee  <bw80.lee@samsung.com>
    222
  • trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp

    r152351 r152527  
    24062406        return m_oesElementIndexUint.get();
    24072407    }
    2408     if (equalIgnoringCase(name, "WEBGL_lose_context")
    2409         // FIXME: remove this after a certain grace period.
    2410         || equalIgnoringCase(name, "WEBKIT_WEBGL_lose_context")
    2411         // FIXME: Is it safe to remove WEBKIT_lose_context now?
    2412         || equalIgnoringCase(name, "WEBKIT_lose_context")) {
     2408    if (equalIgnoringCase(name, "WEBGL_lose_context")) {
    24132409        if (!m_webglLoseContext)
    24142410            m_webglLoseContext = WebGLLoseContext::create(this);
     
    24262422            m_webglCompressedTexturePVRTC = WebGLCompressedTexturePVRTC::create(this);
    24272423    }
    2428     if ((equalIgnoringCase(name, "WEBGL_compressed_texture_s3tc")
    2429          // FIXME: remove this after a certain grace period.
    2430          || equalIgnoringCase(name, "WEBKIT_WEBGL_compressed_texture_s3tc"))
     2424    if (equalIgnoringCase(name, "WEBGL_compressed_texture_s3tc")
    24312425        && WebGLCompressedTextureS3TC::supported(this)) {
    24322426        if (!m_webglCompressedTextureS3TC)
     
    24342428        return m_webglCompressedTextureS3TC.get();
    24352429    }
    2436     if ((equalIgnoringCase(name, "WEBGL_depth_texture")
    2437         // FIXME: remove this after a certain grace period.
    2438         || equalIgnoringCase(name, "WEBKIT_WEBGL_depth_texture"))
     2430    if (equalIgnoringCase(name, "WEBGL_depth_texture")
    24392431        && WebGLDepthTexture::supported(graphicsContext3D())) {
    24402432        if (!m_webglDepthTexture) {
     
    29592951        result.append("WEBKIT_WEBGL_compressed_texture_pvrtc");
    29602952    if (WebGLCompressedTextureS3TC::supported(this))
    2961         result.append("WEBKIT_WEBGL_compressed_texture_s3tc");
     2953        result.append("WEBGL_compressed_texture_s3tc");
    29622954    if (WebGLDepthTexture::supported(graphicsContext3D()))
    2963         result.append("WEBKIT_WEBGL_depth_texture");
     2955        result.append("WEBGL_depth_texture");
    29642956    if (supportsDrawBuffers())
    29652957        result.append("EXT_draw_buffers");
Note: See TracChangeset for help on using the changeset viewer.