[Title] [WEBGL] Rename WEBKIT_WEBGL_lose_context to WEBGL_lose_context.
[Problem] N/A
[Cause] N/A
[Solution] N/A
[Cherry-Picker] Karol Swiniarski
https://bugs.webkit.org/show_bug.cgi?id=108694
Change-Id: I2802734f60084b8d821387e82f91ace7d4e1157f
+2013-02-01 Nayan Kumar K <nayankk@motorola.com>
+
+ [WEBGL] Rename WEBKIT_WEBGL_lose_context to WEBGL_lose_context.
+ https://bugs.webkit.org/show_bug.cgi?id=108694
+
+ Reviewed by NOBODY (OOPS!).
+
+ WEBGL_lose_context is one of the community approved WebGL extension.
+ Hence remove the vendor prefix from WEBKIT_WEBGL_lose_context extension.
+ Spefication: http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/
+
+ * fast/canvas/webgl/WebGLContextEvent.html:
+ * fast/canvas/webgl/context-destroyed-crash.html:
+ * fast/canvas/webgl/context-lost-expected.txt:
+ * fast/canvas/webgl/context-lost-restored.html:
+ * fast/canvas/webgl/context-lost.html:
+
2012-10-05 Ryosuke Niwa <rniwa@webkit.org>
Deleting across multiple paragraphs can change the style of surrounding text
canvas.height = 1;
context = WebGLTestUtils.create3DContext(canvas);
- extension = context.getExtension("WEBKIT_WEBGL_lose_context");
+ extension = context.getExtension("WEBGL_lose_context");
if (!extension) {
- debug("Could not find the WEBKIT_WEBGL_lose_context extension.");
+ debug("Could not find the WEBGL_lose_context extension.");
return;
}
}
{
canvas = document.createElement("canvas");
context = create3DContext(canvas);
- extension = context.getExtension("WEBKIT_WEBGL_lose_context");
+ extension = context.getExtension("WEBGL_lose_context");
canvas = null;
context = null;
PASS gl.getUniformLocation(program, 'vPosition') is null
PASS gl.getVertexAttrib(0, gl.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING) is null
PASS gl.getSupportedExtensions() is null
-PASS gl.getExtension('WEBKIT_WEBGL_lose_context') is null
+PASS gl.getExtension('WEBGL_lose_context') is null
PASS gl.isBuffer(buffer) is false
PASS gl.isEnabled(gl.BLEND) is false
PASS gl.isFramebuffer(framebuffer) is false
var canvas;
var gl;
var shouldGenerateGLError;
-var extensionNames = [
- "WEBKIT_WEBGL_lose_context",
- "MOZ_WEBGL_lose_context",
-];
var extension;
var bufferObjects;
var program;
canvas.width = 1;
canvas.height = 1;
gl = wtu.create3DContext(canvas);
- for (var ii = 0; ii < extensionNames.length; ++ii) {
- extension = gl.getExtension(extensionNames[ii]);
- if (extension)
- break;
- }
+ extension = gl.getExtension("WEBGL_lose_context");
if (!extension) {
- debug("Could not find lose_context extension under the following names: " + extensionNames.join(" "));
+ debug("Could not find lose_context extension under the following names: WEBGL_lose_context");
return false;
}
return true;
var canvas;
var gl;
var shouldGenerateGLError;
-var extensionNames = [
- "WEBKIT_WEBGL_lose_context",
- "MOZ_WEBGL_lose_context",
-];
var extensionName;
var extension;
// for the isContextLost() method, which we want to do regardless of the extension's presence.
testValidContext();
- for (var ii = 0; ii < extensionNames.length; ++ii) {
- extension = gl.getExtension(extensionNames[ii]);
- if (extension) {
- extensionName = extensionNames[ii];
- break;
- }
- }
+ extension = gl.getExtension("WEBGL_lose_context");
if (!extension) {
- debug("Could not find lose_context extension under the following names: " + extensionNames.join(" "));
+ debug("Could not find lose_context extension under the following names: WEBGL_lose_context");
finishTest();
return false;
}
"gl.getUniformLocation(program, 'vPosition')",
"gl.getVertexAttrib(0, gl.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING)",
"gl.getSupportedExtensions()",
- "gl.getExtension('" + extensionName + "')",
+ "gl.getExtension('WEBGL_lose_context')",
];
for (var i = 0; i < nullTests.length; ++i) {
shouldBeNull(nullTests[i]);
+2013-02-01 Nayan Kumar K <nayankk@motorola.com>
+
+ [WEBGL] Rename WEBKIT_WEBGL_lose_context to WEBGL_lose_context.
+ https://bugs.webkit.org/show_bug.cgi?id=108694
+
+ Reviewed by NOBODY (OOPS!).
+
+ WEBGL_lose_context is one of the community approved WebGL extension.
+ Hence remove the vendor prefix from WEBKIT_WEBGL_lose_context extension.
+ Spefication: http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/
+
+ Tests already exists, modified them to verify the change in extension name.
+
+ * bindings/js/JSWebGLRenderingContextCustom.cpp:
+ (WebCore::toJS):
+ * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
+ (WebCore::toV8Object):
+ * html/canvas/WebGLExtension.h:
+ * html/canvas/WebGLLoseContext.cpp:
+ (WebCore::WebGLLoseContext::getName):
+ * html/canvas/WebGLRenderingContext.cpp:
+ (WebCore):
+ (WebCore::WebGLRenderingContext::getExtension):
+ (WebCore::WebGLRenderingContext::getSupportedExtensions):
+
2012-10-05 Ryosuke Niwa <rniwa@webkit.org>
Deleting across multiple paragraphs can change the style of surrounding text
if (!extension)
return jsNull();
switch (extension->getName()) {
- case WebGLExtension::WebKitWebGLLoseContextName:
+ case WebGLExtension::WebGLLoseContextName:
return toJS(exec, globalObject, static_cast<WebGLLoseContext*>(extension));
case WebGLExtension::EXTTextureFilterAnisotropicName:
return toJS(exec, globalObject, static_cast<EXTTextureFilterAnisotropic*>(extension));
v8::Handle<v8::Value> extensionObject;
const char* referenceName = 0;
switch (extension->getName()) {
- case WebGLExtension::WebKitWebGLLoseContextName:
+ case WebGLExtension::WebGLLoseContextName:
extensionObject = toV8(static_cast<WebGLLoseContext*>(extension), isolate);
- referenceName = "webKitWebGLLoseContextName";
+ referenceName = "webGLLoseContextName";
break;
case WebGLExtension::EXTTextureFilterAnisotropicName:
extensionObject = toV8(static_cast<EXTTextureFilterAnisotropic*>(extension), isolate);
public:
// Extension names are needed to properly wrap instances in JavaScript objects.
enum ExtensionName {
- WebKitWebGLLoseContextName, // WEBKIT_ prefix until extension is official
+ WebGLLoseContextName,
EXTTextureFilterAnisotropicName,
OESTextureFloatName,
OESStandardDerivativesName,
WebGLExtension::ExtensionName WebGLLoseContext::getName() const
{
- return WebKitWebGLLoseContextName;
+ return WebGLLoseContextName;
}
PassOwnPtr<WebGLLoseContext> WebGLLoseContext::create(WebGLRenderingContext* context)
}
return m_oesVertexArrayObject.get();
}
- if (equalIgnoringCase(name, "WEBKIT_WEBGL_lose_context")
- // FIXME: remove this after a certain grace period.
- || equalIgnoringCase(name, "WEBKIT_lose_context")) {
+ if (equalIgnoringCase(name, "WEBGL_lose_context")) {
if (!m_webglLoseContext)
m_webglLoseContext = WebGLLoseContext::create(this);
return m_webglLoseContext.get();
result.append("WEBKIT_EXT_texture_filter_anisotropic");
if (m_context->getExtensions()->supports("GL_OES_vertex_array_object"))
result.append("OES_vertex_array_object");
- result.append("WEBKIT_WEBGL_lose_context");
+ result.append("WEBGL_lose_context");
if (WebGLCompressedTextureS3TC::supported(this))
result.append("WEBKIT_WEBGL_compressed_texture_s3tc");
if (WebGLDepthTexture::supported(graphicsContext3D()))