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

Unified 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, 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
Index: tools/perf/page_sets/tough_texture_upload_cases/medium_texture_uploads.html
diff --git a/tools/perf/page_sets/tough_texture_upload_cases/medium_texture_uploads.html b/tools/perf/page_sets/tough_texture_upload_cases/medium_texture_uploads.html
new file mode 100644
index 0000000000000000000000000000000000000000..1125710e612e8b5e36bf5c015b1e56daaa52f41c
--- /dev/null
+++ b/tools/perf/page_sets/tough_texture_upload_cases/medium_texture_uploads.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+ <head><title>Large texture upload test.</title></head>
+ <script src="texture_upload_experiment.js"></script>
+ <body>
+ <canvas id="example" width=512 height=512></canvas>
+ <script type="text/javascript">
+ document.body.style.margin = "0";
+ document.body.style.webkitAnimationName = "texture-upload";
+ document.body.style.webkitAnimationDuration = "10s";
+ document.body.style.webkitAnimationIterationCount = "infinite";
+ document.body.style.webkitAnimationDirection = "alternate";
+
+ function startExperiment() {
+ var canvas = document.getElementById("example");
+ var gl = canvas.getContext("webgl");
+ var dimension = Math.min(gl.getParameter(gl.MAX_TEXTURE_SIZE), 1024);
+
+ DoTextureUploadBenchmark(gl, dimension);
+ }
+
+ window.addEventListener('load', startExperiment, false);
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698