summaryrefslogtreecommitdiff
path: root/perf
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2008-10-29 16:25:00 -0700
committerCarl Worth <cworth@cworth.org>2008-10-29 16:26:39 -0700
commite0046aaf417a61da008dc6374871fa3687ba94ab (patch)
tree9a262dbadf4537aaca2957c01cb12a42c3053dc0 /perf
parent292233685534aed712dfd45e8ccf498b792ce496 (diff)
Remove twin perf case.
This performance test relied on the recently-removed ability to select the internal twin-based font family with a name of "cairo". Presumably, we'll want to bring this performance case back when some other means of requesting that font face is added.
Diffstat (limited to 'perf')
-rw-r--r--perf/Makefile.am1
-rw-r--r--perf/cairo-perf.c1
-rw-r--r--perf/cairo-perf.h1
-rw-r--r--perf/twin.c50
4 files changed, 0 insertions, 53 deletions
diff --git a/perf/Makefile.am b/perf/Makefile.am
index daec8e4ef..3ac13a6f1 100644
--- a/perf/Makefile.am
+++ b/perf/Makefile.am
@@ -35,7 +35,6 @@ cairo_perf_SOURCES = \
subimage_copy.c \
tessellate.c \
text.c \
- twin.c \
unaligned-clip.c \
world-map.c \
world-map.h \
diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c
index a6d59a579..613d15cf9 100644
--- a/perf/cairo-perf.c
+++ b/perf/cairo-perf.c
@@ -458,6 +458,5 @@ const cairo_perf_case_t perf_cases[] = {
{ rounded_rectangles, 512, 512},
{ long_dashed_lines, 512, 512},
{ composite_checker, 16, 512},
- { twin, 800, 800},
{ NULL }
};
diff --git a/perf/cairo-perf.h b/perf/cairo-perf.h
index 0cedb6913..57fe85f11 100644
--- a/perf/cairo-perf.h
+++ b/perf/cairo-perf.h
@@ -172,6 +172,5 @@ CAIRO_PERF_DECL (rectangles);
CAIRO_PERF_DECL (rounded_rectangles);
CAIRO_PERF_DECL (long_dashed_lines);
CAIRO_PERF_DECL (composite_checker);
-CAIRO_PERF_DECL (twin);
#endif
diff --git a/perf/twin.c b/perf/twin.c
deleted file mode 100644
index d81c2af00..000000000
--- a/perf/twin.c
+++ /dev/null
@@ -1,50 +0,0 @@
-#define WIDTH 1350
-#define HEIGHT 900
-
-#include "cairo-perf.h"
-
-static cairo_perf_ticks_t
-do_twin (cairo_t *cr,
- int width,
- int height)
-{
- int i, j, h;
- unsigned char s[2] = {0, 0};
-
- cairo_set_source_rgb (cr, 1.0, 1.0, 1.0); /* white */
- cairo_paint (cr);
- cairo_set_source_rgb (cr, 0, 0, 0);
-
- cairo_perf_timer_start ();
-
- cairo_select_font_face (cr,
- "cairo",
- CAIRO_FONT_SLANT_NORMAL,
- CAIRO_FONT_WEIGHT_NORMAL);
-
- h = 2;
- for (i = 8; i < 48; i >= 24 ? i+=3 : i++) {
- cairo_set_font_size (cr, i);
- for (j = 33; j < 128; j++) {
- if (j == 33 || (j == 80 && i > 24)) {
- h += i + 2;
- cairo_move_to (cr, 10, h);
- }
- s[0] = j;
- cairo_text_path (cr, (const char *) s);
- }
- }
- cairo_fill (cr);
-
- cairo_perf_timer_stop ();
- return cairo_perf_timer_elapsed ();
-}
-
-void
-twin (cairo_perf_t *perf,
- cairo_t *cr,
- int width,
- int height)
-{
- cairo_perf_run (perf, "twin", do_twin);
-}