From 6b7c2ceeef3e1fbf01159c7149b9a288b099fad7 Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Mon, 4 Nov 2013 16:01:48 -0800 Subject: Make room for skia tests to live alongside the cairo tests --- src/stroke.cpp | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 src/stroke.cpp (limited to 'src/stroke.cpp') diff --git a/src/stroke.cpp b/src/stroke.cpp deleted file mode 100644 index 7e83195..0000000 --- a/src/stroke.cpp +++ /dev/null @@ -1,35 +0,0 @@ -#include -#include -#include - -#include "caskbench.h" - -int -setup_stroke(cairo_t *cr) -{ - return 1; -} - -void -teardown_stroke(void) -{ -} - -int -test_stroke(cairo_t *cr) -{ - int i, x, w, prev_w; - x = 0; - prev_w = 0; - for (i=0; i<32; i++) { - randomize_color (cr); - w = (32.0*rand())/RAND_MAX + 1; - x += 4 + (prev_w + w)/2.0; - cairo_move_to (cr, x, 10); - cairo_line_to (cr, x, 70); - cairo_set_line_width (cr, w); - cairo_stroke (cr); - prev_w = w; - } - return 1; -} -- cgit v1.3.1-4-g156e