Title: [177088] trunk
- Revision
- 177088
- Author
- [email protected]
- Date
- 2014-12-10 12:43:18 -0800 (Wed, 10 Dec 2014)
Log Message
Blur filter performance test doesn't provide results
https://bugs.webkit.org/show_bug.cgi?id=139462
Reviewed by Sam Weinig.
This can't currently work under our performance test
infrastructure. Move it to a manual test to avoid
putting FAILures into the results.
* ManualTests/blur-filter-timing.html: Renamed from PerformanceTests/Interactive/blur-filter-timing.html.
Modified Paths
Added Paths
Removed Paths
Diff
Modified: trunk/ChangeLog (177087 => 177088)
--- trunk/ChangeLog 2014-12-10 20:10:02 UTC (rev 177087)
+++ trunk/ChangeLog 2014-12-10 20:43:18 UTC (rev 177088)
@@ -1,3 +1,16 @@
+2014-12-10 Dean Jackson <[email protected]>
+
+ Blur filter performance test doesn't provide results
+ https://bugs.webkit.org/show_bug.cgi?id=139462
+
+ Reviewed by Sam Weinig.
+
+ This can't currently work under our performance test
+ infrastructure. Move it to a manual test to avoid
+ putting FAILures into the results.
+
+ * ManualTests/blur-filter-timing.html: Renamed from PerformanceTests/Interactive/blur-filter-timing.html.
+
2014-12-09 Gustavo Noronha Silva <[email protected]>
[GTK][WK2] Add HTML5 Notifications support
Copied: trunk/ManualTests/blur-filter-timing.html (from rev 177087, trunk/PerformanceTests/Interactive/blur-filter-timing.html) (0 => 177088)
--- trunk/ManualTests/blur-filter-timing.html (rev 0)
+++ trunk/ManualTests/blur-filter-timing.html 2014-12-10 20:43:18 UTC (rev 177088)
@@ -0,0 +1,93 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Timing test for blur filter</title>
+ <style>
+ img {
+ width: 600px;
+ height: 600px;
+ }
+ </style>
+ <script>
+
+ var WIDTH = 600;
+ var HEIGHT = 600;
+ var NUM_ITERATIONS = 10;
+ var MAX_RADIUS = 20;
+ var currentIteration = 0;
+ var currentRadius = 0;
+ var testIsRunning = false;
+ var image = null;
+ var startTime = null;
+
+ function init() {
+ document.querySelector("button").addEventListener("click", run, false);
+ image = document.querySelector("img");
+
+ // Fill the image with generated content. We can't use a canvas directly,
+ // since that gets composited.
+ var canvas = document.createElement("canvas");
+ canvas.width = WIDTH * window.devicePixelRatio;
+ canvas.height = HEIGHT * window.devicePixelRatio;
+
+ // Fill the canvas with some generated content.
+ var ctx = canvas.getContext("2d");
+ ctx.scale(window.devicePixelRatio, window.devicePixelRatio);
+
+ for (var i = 0; i < WIDTH; i += 20) {
+ for (var j = 0; j < HEIGHT; j += 20) {
+ ctx.fillStyle = "rgb(" + Math.round(i / WIDTH * 255) + ", " + Math.round(j / HEIGHT * 255) + ", " + (i % 40 ? 64 : 192) + ")";
+ ctx.fillRect(i, j, 20, 20);
+ }
+ }
+
+ image.src = ""
+ }
+
+ function run() {
+ if (testIsRunning)
+ return;
+
+ testIsRunning = true;
+ currentIteration = 0;
+ currentRadius = 0;
+ startTime = Date.now();
+
+ step();
+ }
+
+ function step() {
+ var usedRadius = (currentIteration % 2) ? (MAX_RADIUS - currentRadius) : currentRadius;
+ image.style.webkitFilter = "blur(" + usedRadius + "px)";
+ currentRadius++;
+ if (currentRadius > MAX_RADIUS) {
+ currentIteration++;
+ currentRadius = 0;
+ }
+
+ if (currentIteration < NUM_ITERATIONS)
+ setTimeout(step, 0);
+ else
+ end();
+ }
+
+ function end() {
+ testIsRunning = false;
+ var elapsedTime = (Date.now() - startTime) / 1000;
+ var result = document.createElement("p");
+ result.textContent = (NUM_ITERATIONS * MAX_RADIUS) + " blurs done in " + elapsedTime + " seconds";
+ document.body.appendChild(result);
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }
+
+ window.addEventListener("load", init, false);
+ </script>
+</head>
+<body>
+<img>
+<p>
+ <button>Start</button>
+</p>
+</body>
+</html>
Property changes: trunk/ManualTests/blur-filter-timing.html
Added: svn:mime-type
Added: svn:keywords
Added: svn:eol-style
Deleted: trunk/PerformanceTests/Interactive/blur-filter-timing.html (177087 => 177088)
--- trunk/PerformanceTests/Interactive/blur-filter-timing.html 2014-12-10 20:10:02 UTC (rev 177087)
+++ trunk/PerformanceTests/Interactive/blur-filter-timing.html 2014-12-10 20:43:18 UTC (rev 177088)
@@ -1,93 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>Timing test for blur filter</title>
- <style>
- img {
- width: 600px;
- height: 600px;
- }
- </style>
- <script>
-
- var WIDTH = 600;
- var HEIGHT = 600;
- var NUM_ITERATIONS = 10;
- var MAX_RADIUS = 20;
- var currentIteration = 0;
- var currentRadius = 0;
- var testIsRunning = false;
- var image = null;
- var startTime = null;
-
- function init() {
- document.querySelector("button").addEventListener("click", run, false);
- image = document.querySelector("img");
-
- // Fill the image with generated content. We can't use a canvas directly,
- // since that gets composited.
- var canvas = document.createElement("canvas");
- canvas.width = WIDTH * window.devicePixelRatio;
- canvas.height = HEIGHT * window.devicePixelRatio;
-
- // Fill the canvas with some generated content.
- var ctx = canvas.getContext("2d");
- ctx.scale(window.devicePixelRatio, window.devicePixelRatio);
-
- for (var i = 0; i < WIDTH; i += 20) {
- for (var j = 0; j < HEIGHT; j += 20) {
- ctx.fillStyle = "rgb(" + Math.round(i / WIDTH * 255) + ", " + Math.round(j / HEIGHT * 255) + ", " + (i % 40 ? 64 : 192) + ")";
- ctx.fillRect(i, j, 20, 20);
- }
- }
-
- image.src = ""
- }
-
- function run() {
- if (testIsRunning)
- return;
-
- testIsRunning = true;
- currentIteration = 0;
- currentRadius = 0;
- startTime = Date.now();
-
- step();
- }
-
- function step() {
- var usedRadius = (currentIteration % 2) ? (MAX_RADIUS - currentRadius) : currentRadius;
- image.style.webkitFilter = "blur(" + usedRadius + "px)";
- currentRadius++;
- if (currentRadius > MAX_RADIUS) {
- currentIteration++;
- currentRadius = 0;
- }
-
- if (currentIteration < NUM_ITERATIONS)
- setTimeout(step, 0);
- else
- end();
- }
-
- function end() {
- testIsRunning = false;
- var elapsedTime = (Date.now() - startTime) / 1000;
- var result = document.createElement("p");
- result.textContent = (NUM_ITERATIONS * MAX_RADIUS) + " blurs done in " + elapsedTime + " seconds";
- document.body.appendChild(result);
- if (window.testRunner)
- testRunner.notifyDone();
- }
-
- window.addEventListener("load", init, false);
- </script>
-</head>
-<body>
-<img>
-<p>
- <button>Start</button>
-</p>
-</body>
-</html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes