Index: tools/perf/page_sets/tough_texture_upload_cases/large_texture_uploads.html |
diff --git a/tools/perf/page_sets/tough_texture_upload_cases/large_texture_uploads.html b/tools/perf/page_sets/tough_texture_upload_cases/large_texture_uploads.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d15152475ef373036af117dbaa766a3845ff4e43 |
--- /dev/null |
+++ b/tools/perf/page_sets/tough_texture_upload_cases/large_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), 2048); |
+ |
+ DoTextureUploadBenchmark(gl, dimension); |
+ } |
+ |
+ window.addEventListener('load', startExperiment, false); |
+ </script> |
+ </body> |
+</html> |