Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Unified Diff: tools/dom/scripts/generator.py

Issue 2150003002: Recognize WEBGL extensions on Firefox (copy with regenerated files) (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/html/webgl_extensions_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/generator.py
diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py
index db475215bd8d506cb8f9d5637be2b4ea822a4cf5..fc74f05d384c4c224a8c6be16e3b5f87c30f2ee6 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -321,14 +321,47 @@ _dart2js_dom_custom_native_specs = monitored.Dict(
'TransitionEvent': 'TransitionEvent,WebKitTransitionEvent',
- 'WebGLLoseContext': 'WebGLLoseContext,WebGLExtensionLoseContext',
-
'CSSKeyframeRule':
'CSSKeyframeRule,MozCSSKeyframeRule,WebKitCSSKeyframeRule',
'CSSKeyframesRule':
'CSSKeyframesRule,MozCSSKeyframesRule,WebKitCSSKeyframesRule',
+ # webgl extensions are sometimes named directly after the getExtension
+ # parameter (e.g on Firefox).
+
+ 'ANGLEInstancedArrays': 'ANGLEInstancedArrays,ANGLE_instanced_arrays',
+ 'EXTsRGB': 'EXTsRGB,EXT_sRGB',
+ 'EXTBlendMinMax': 'EXTBlendMinMax,EXT_blend_min_max',
+ 'EXTFragDepth': 'EXTFragDepth,EXT_frag_depth',
+ 'EXTShaderTextureLOD': 'EXTShaderTextureLOD,EXT_shader_texture_lod',
+ 'EXTTextureFilterAnisotropic':
+ 'EXTTextureFilterAnisotropic,EXT_texture_filter_anisotropic',
+ 'OESElementIndexUint': 'OESElementIndexUint,OES_element_index_uint',
+ 'OESStandardDerivatives': 'OESStandardDerivatives,OES_standard_derivatives',
+ 'OESTextureFloat': 'OESTextureFloat,OES_texture_float',
+ 'OESTextureFloatLinear': 'OESTextureFloatLinear,OES_texture_float_linear',
+ 'OESTextureHalfFloat': 'OESTextureHalfFloat,OES_texture_half_float',
+ 'OESTextureHalfFloatLinear':
+ 'OESTextureHalfFloatLinear,OES_texture_half_float_linear',
+ 'OESVertexArrayObject':
+ 'OESVertexArrayObject,OES_vertex_array_object',
+ 'WebGLCompressedTextureATC':
+ 'WebGLCompressedTextureATC,WEBGL_compressed_texture_atc',
+ 'WebGLCompressedTextureETC1':
+ 'WebGLCompressedTextureETC1,WEBGL_compressed_texture_etc1',
+ 'WebGLCompressedTexturePVRTC':
+ 'WebGLCompressedTexturePVRTC,WEBGL_compressed_texture_pvrtc',
+ 'WebGLCompressedTextureS3TC':
+ 'WebGLCompressedTextureS3TC,WEBGL_compressed_texture_s3tc',
+ 'WebGLDebugRendererInfo': 'WebGLDebugRendererInfo,WEBGL_debug_renderer_info',
+ 'WebGLDebugShaders': 'WebGLDebugShaders,WEBGL_debug_shaders',
+ 'WebGLDepthTexture': 'WebGLDepthTexture,WEBGL_depth_texture',
+ 'WebGLDrawBuffers': 'WebGLDrawBuffers,WEBGL_draw_buffers',
+ 'WebGLLoseContext':
+ 'WebGLLoseContext,WebGLExtensionLoseContext,WEBGL_lose_context',
+
+
}, dart2jsOnly=True)
def IsRegisteredType(type_name):
« no previous file with comments | « tests/html/webgl_extensions_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698