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

Unified Diff: chrome/test/data/third_party/kraken/tests/kraken-1.1/imaging-gaussian-blur.js

Issue 11348021: Automate Kraken benchmark with Chrome Remote Control. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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: chrome/test/data/third_party/kraken/tests/kraken-1.1/imaging-gaussian-blur.js
diff --git a/chrome/test/data/third_party/kraken/tests/kraken-1.1/imaging-gaussian-blur.js b/chrome/test/data/third_party/kraken/tests/kraken-1.1/imaging-gaussian-blur.js
deleted file mode 100644
index 45de6a04ea3511b37e3a242a5ad2f3c2ab147fa4..0000000000000000000000000000000000000000
--- a/chrome/test/data/third_party/kraken/tests/kraken-1.1/imaging-gaussian-blur.js
+++ /dev/null
@@ -1,25 +0,0 @@
-//print("i: " + i + "j: " + j);
-
-function gaussianBlur() {
- for (var y = 0; y < height; ++y) {
- for (var x = 0; x < width; ++x) {
- var r = 0, g = 0, b = 0, a = 0;
- for (var j = 1 - kernelSize; j < kernelSize; ++j) {
- if (y + j < 0 || y + j >= height) continue;
- for (var i = 1 - kernelSize; i < kernelSize; ++i) {
- if (x + i < 0 || x + i >= width) continue;
- r += squidImageData[4 * ((y + j) * width + (x + i)) + 0] * kernel[Math.abs(j)][Math.abs(i)];
- g += squidImageData[4 * ((y + j) * width + (x + i)) + 1] * kernel[Math.abs(j)][Math.abs(i)];
- b += squidImageData[4 * ((y + j) * width + (x + i)) + 2] * kernel[Math.abs(j)][Math.abs(i)];
- a += squidImageData[4 * ((y + j) * width + (x + i)) + 3] * kernel[Math.abs(j)][Math.abs(i)];
- }
- }
- squidImageData[4 * (y * width + x) + 0] = r / kernelSum;
- squidImageData[4 * (y * width + x) + 1] = g / kernelSum;
- squidImageData[4 * (y * width + x) + 2] = b / kernelSum;
- squidImageData[4 * (y * width + x) + 3] = a / kernelSum;
- }
- }
- return squidImageData;
-}
-gaussianBlur();

Powered by Google App Engine
This is Rietveld 408576698