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

Unified Diff: lib/runtime/dart_library.js

Issue 1988473002: Remove polyfill for WebGLVertexArrayObjectOES that adds 200ms to startup. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart_library.js
diff --git a/lib/runtime/dart_library.js b/lib/runtime/dart_library.js
index 134c948ac175358086269a42f60bf1316181f669..6a1345726ec32c4e2246d6bbc2f38b8d9a9a2566 100644
--- a/lib/runtime/dart_library.js
+++ b/lib/runtime/dart_library.js
@@ -138,14 +138,6 @@ var dart_library =
let d = document.createElement('div');
window.Animation = d.animate(d).constructor;
}
- if (typeof WebGLVertexArrayObjectOES == "undefined") {
- let context = document.createElement('canvas').getContext('webgl');
- if (context) {
- window.WebGLVertexArrayObjectOES =
- context.getExtension("OES_vertex_array_object")
- .createVertexArrayOES().constructor;
- }
- }
}
// This import is only needed for chrome debugging. We should provide an
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698