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

Side by Side Diff: tools/perf/page_sets/tough_texture_upload_cases/medium_texture_uploads.html

Issue 1159733003: Added Tough Texture upload page set to smoothness benchmark. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added copyright Created 5 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
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";
13
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);
18
19 DoTextureUploadBenchmark(gl, dimension);
20 }
21
22 window.addEventListener('load', startExperiment, false);
23 </script>
24 </body>
25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698