summaryrefslogtreecommitdiff
path: root/test/clip-operator.c
diff options
context:
space:
mode:
authorDavid Turner <david@alice.localdomain>2006-12-14 06:55:58 -0800
committerCarl Worth <cworth@cworth.org>2006-12-14 09:27:45 -0800
commite9bef30d2bcdf41c7b7f20b3517839c37e752f75 (patch)
treed13cb712d4048ee1c2faa334c3007d3dd0dd24c4 /test/clip-operator.c
parentaf9cce6aa295327b5256f55900b3debf9112b6ca (diff)
Optimize gradient computations
We update the test suite reference images where needed, (pdiff avoided a few, but most still needed updating). We take advantage of the need for new reference images to shrink some of the giant tests to speed them up a bit. This optimization provides a 2x improvement in linear gradient generation performance (numbers from an x86 laptop): image-rgb paint_linear_rgba_source-512 26.13 -> 11.13: 2.35x speedup █▍ image-rgb paint_linear_rgba_source-256 6.47 -> 2.76: 2.34x speedup █▍ image-rgba paint_linear_rgb_over-256 6.51 -> 2.86: 2.28x speedup █▎ image-rgb paint_linear_rgba_over-512 28.62 -> 13.70: 2.09x speedup █▏ image-rgba fill_linear_rgb_over-256 3.24 -> 1.94: 1.66x speedup ▋ image-rgb stroke_linear_rgba_over-256 5.68 -> 4.10: 1.39x speedup ▍
Diffstat (limited to 'test/clip-operator.c')
-rw-r--r--test/clip-operator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/clip-operator.c b/test/clip-operator.c
index 2e014a94..4d7f81e5 100644
--- a/test/clip-operator.c
+++ b/test/clip-operator.c
@@ -27,9 +27,9 @@
#include "cairo-test.h"
#include <stdio.h>
-#define WIDTH 64
-#define HEIGHT 64
-#define PAD 10
+#define WIDTH 16
+#define HEIGHT 16
+#define PAD 2
const char png_filename[] = "romedalen.png";