Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / tools / perf / page_sets / tough_texture_upload_cases / medium_texture_uploads.html
blob1125710e612e8b5e36bf5c015b1e56daaa52f41c
1 <!DOCTYPE html>
2 <html>
3 <head><title>Large texture upload test.</title></head>
4 <script src="texture_upload_experiment.js"></script>
5 <body>
6 <canvas id="example" width=512 height=512></canvas>
7 <script type="text/javascript">
8 document.body.style.margin = "0";
9 document.body.style.webkitAnimationName = "texture-upload";
10 document.body.style.webkitAnimationDuration = "10s";
11 document.body.style.webkitAnimationIterationCount = "infinite";
12 document.body.style.webkitAnimationDirection = "alternate";
14 function startExperiment() {
15 var canvas = document.getElementById("example");
16 var gl = canvas.getContext("webgl");
17 var dimension = Math.min(gl.getParameter(gl.MAX_TEXTURE_SIZE), 1024);
19 DoTextureUploadBenchmark(gl, dimension);
22 window.addEventListener('load', startExperiment, false);
23 </script>
24 </body>
25 </html>