diff options
author | Billy Biggs <vektor@freedesktop.org> | 2005-08-30 02:39:24 +0000 |
---|---|---|
committer | Billy Biggs <vektor@freedesktop.org> | 2005-08-30 02:39:24 +0000 |
commit | ed08e10596f8d94aa7c687126b68fe213c285902 (patch) | |
tree | 1cbdf1c57c5a67c197a56d6b6f20f81137e9fbdd /upsample-nearest.c | |
parent | 13f4b8b427f20e6399098cf1c227ad0b7036afb1 (diff) |
* Makefile: Add the multiple-clip-rectangles test.
* multiple-clip-rectangles.c: (test), (main): Make this
a real test case.
* setup.h: Ditch this, it just makes the tests less
self-contained.
* tools.c: Put the USE_REALTIME_PRIORITY toggle here.
* add.c: (test), (main):
* curves.c: (test), (main):
* downsample-bilinear.c: (test), (main):
* downsample-nearest.c: (test), (main):
* gradients-linear.c: (test), (main):
* lines.c: (test), (main):
* over-clipped.c: (test), (main):
* over.c: (test), (main):
* textpath.c: (test), (main):
* texturedtext.c: (test), (main):
* upsample-bilinear.c: (test), (main):
* upsample-nearest.c: (test), (main): Make all of the tests
more independent by dropping setup.h.
Diffstat (limited to 'upsample-nearest.c')
-rw-r--r-- | upsample-nearest.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/upsample-nearest.c b/upsample-nearest.c index 0fb8220..7f15420 100644 --- a/upsample-nearest.c +++ b/upsample-nearest.c @@ -7,10 +7,10 @@ #include <unistd.h> #include <cairo.h> #include "tools.h" -#include "setup.h" -static int width = 384; -static int height = 384; +#define NUM_RUNS 64 +#define WIDTH 384 +#define HEIGHT 384 #define rdtscll(val) __asm__ __volatile__("rdtsc" : "=A" (val)) @@ -26,7 +26,7 @@ static int test (cairo_surface_t *surface, const char *png_filename) cairo_set_source_rgba (cr, 0, 0, 0, 0); cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE); - cairo_rectangle (cr, 0, 0, width, height); + cairo_rectangle (cr, 0, 0, WIDTH, HEIGHT); cairo_fill (cr); cairo_scale (cr, 8.0, 8.0); @@ -59,7 +59,7 @@ int main( int argc, char **argv ) cairo_surface_t *surface; int i; - surface = output_create_surface (argv [0], width, height); + surface = output_create_surface (argv [0], WIDTH, HEIGHT); for (i = 0; i < sizeof (filenames) / sizeof (const char *); i++) { char input_filename [1024]; |