Bug 699516 - Rename WEBKIT_lose_context to WEBGL_EXT_lose_context - r=dsherk

See today's discussion on public_webgl list. WEBGL_EXT_lose_context will be officially created in a few days.
This commit is contained in:
Benoit Jacob 2011-11-03 20:29:57 -04:00
parent 5899ae60a1
commit 2e4e1bd781
2 changed files with 8 additions and 8 deletions

View File

@ -995,7 +995,7 @@ bool WebGLContext::IsExtensionSupported(WebGLExtensionID ei)
// We always support this extension.
isSupported = true;
break;
case WebGL_WEBKIT_lose_context:
case WebGL_WEBGL_EXT_lose_context:
// We always support this extension.
isSupported = true;
break;
@ -1027,9 +1027,9 @@ WebGLContext::GetExtension(const nsAString& aName, nsIWebGLExtension **retval)
if (IsExtensionSupported(WebGL_OES_standard_derivatives))
ei = WebGL_OES_standard_derivatives;
}
else if (aName.EqualsLiteral("WEBKIT_lose_context")) {
if (IsExtensionSupported(WebGL_WEBKIT_lose_context))
ei = WebGL_WEBKIT_lose_context;
else if (aName.EqualsLiteral("WEBGL_EXT_lose_context")) {
if (IsExtensionSupported(WebGL_WEBGL_EXT_lose_context))
ei = WebGL_WEBGL_EXT_lose_context;
}
if (ei != WebGLExtensionID_Max) {
@ -1038,7 +1038,7 @@ WebGLContext::GetExtension(const nsAString& aName, nsIWebGLExtension **retval)
case WebGL_OES_standard_derivatives:
mEnabledExtensions[ei] = new WebGLExtensionStandardDerivatives(this);
break;
case WebGL_WEBKIT_lose_context:
case WebGL_WEBGL_EXT_lose_context:
mEnabledExtensions[ei] = new WebGLExtensionLoseContext(this);
break;
// create an extension for any types that don't
@ -1474,8 +1474,8 @@ WebGLContext::GetSupportedExtensions(nsIVariant **retval)
extList.InsertElementAt(extList.Length(), "OES_texture_float");
if (IsExtensionSupported(WebGL_OES_standard_derivatives))
extList.InsertElementAt(extList.Length(), "OES_standard_derivatives");
if (IsExtensionSupported(WebGL_WEBKIT_lose_context))
extList.InsertElementAt(extList.Length(), "WEBKIT_lose_context");
if (IsExtensionSupported(WebGL_WEBGL_EXT_lose_context))
extList.InsertElementAt(extList.Length(), "WEBGL_EXT_lose_context");
nsresult rv;
if (extList.Length() > 0) {

View File

@ -526,7 +526,7 @@ protected:
enum WebGLExtensionID {
WebGL_OES_texture_float,
WebGL_OES_standard_derivatives,
WebGL_WEBKIT_lose_context,
WebGL_WEBGL_EXT_lose_context,
WebGLExtensionID_Max
};
nsCOMPtr<WebGLExtension> mEnabledExtensions[WebGLExtensionID_Max];