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

Unified Diff: third_party/webgl/sdk/tests/conformance/more/performance/jsToGLOverhead.html

Issue 9360034: Remove everthing except conformance tests in the deps/third_party/webgl (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/
Patch Set: Created 8 years, 10 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
Index: third_party/webgl/sdk/tests/conformance/more/performance/jsToGLOverhead.html
===================================================================
--- third_party/webgl/sdk/tests/conformance/more/performance/jsToGLOverhead.html (revision 121077)
+++ third_party/webgl/sdk/tests/conformance/more/performance/jsToGLOverhead.html (working copy)
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html><head>
-<meta charset="utf-8">
-<link rel="stylesheet" type="text/css" href="../unit.css" />
-<script type="application/x-javascript" src="../unit.js"></script>
-<script type="application/x-javascript" src="../util.js"></script>
-<script type="application/x-javascript">
-
-Tests.autorun = false;
-Tests.message = "This might take a second or two";
-
-Tests.testGLOverhead = function() {
- var gl = document.getElementById("gl").getContext(GL_CONTEXT_ID);
- var fakeGl = {getError: function(){ return 0; }};
- time("testGLOverhead", function() {
- for (var i=0; i<1000000; i++)
- gl.getError();
- });
- time("testJSOverhead", function() {
- for (var i=0; i<1000000; i++)
- fakeGl.getError();
- });
- time("testLoopOverhead", function() {
- for (var i=0; i<1000000;)
- i++;
- });
-}
-
-</script>
-<style>canvas{ position:absolute; }</style>
-</head><body>
-<canvas id="gl" width="16" height="16"></canvas>
-<h3>1000000x gl.getError() (measuring JS->GL call overhead)</h3>
-<p id="testGLOverhead"></p>
-<h3>1000000x fakeGl.getError() (measuring JS->JS call overhead)</h3>
-<p id="testJSOverhead"></p>
-<h3>1000000x i++ (measuring loop overhead)</h3>
-<p id="testLoopOverhead"></p>
-</body></html>
-

Powered by Google App Engine
This is Rietveld 408576698