Bug 779611 - WebGL extensions should be [NoInterfaceObject] as their compliant IDL interface names would pollute the global object - r=bz

This commit is contained in:
Benoit Jacob 2012-10-11 14:23:34 -04:00
parent 07b8aa36d6
commit fe0a287cf4

View File

@ -776,21 +776,25 @@ interface WebGLContextEvent : Event {
// specific extension interfaces
[NoInterfaceObject]
interface WebGLExtensionStandardDerivatives {
const GLenum FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
};
[NoInterfaceObject]
interface WebGLExtensionLoseContext {
void loseContext();
void restoreContext();
};
[NoInterfaceObject]
interface WebGLExtensionTextureFilterAnisotropic
{
const GLenum TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
const GLenum MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
};
[NoInterfaceObject]
interface WebGLExtensionCompressedTextureS3TC
{
const GLenum COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
@ -799,6 +803,7 @@ interface WebGLExtensionCompressedTextureS3TC
const GLenum COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
};
[NoInterfaceObject]
interface WebGLExtensionCompressedTextureATC
{
const GLenum COMPRESSED_RGB_ATC_WEBGL = 0x8C92;
@ -806,6 +811,7 @@ interface WebGLExtensionCompressedTextureATC
const GLenum COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE;
};
[NoInterfaceObject]
interface WebGLExtensionCompressedTexturePVRTC
{
const GLenum COMPRESSED_RGB_PVRTC_4BPPV1 = 0x8C00;
@ -814,11 +820,13 @@ interface WebGLExtensionCompressedTexturePVRTC
const GLenum COMPRESSED_RGBA_PVRTC_2BPPV1 = 0x8C03;
};
[NoInterfaceObject]
interface WebGLExtensionDepthTexture
{
const GLenum UNSIGNED_INT_24_8_WEBGL = 0x84FA;
};
[NoInterfaceObject]
interface WebGLExtensionTextureFloat
{
};