From f1fe73d1909a2448a004a88362a1a532d0d4f7c3 Mon Sep 17 00:00:00 2001 From: sanine Date: Sun, 12 Feb 2023 23:53:22 -0600 Subject: switch to tinyobj and nanovg from assimp and cairo --- libs/pixman-0.40.0/test/radial-perf-test.c | 58 ------------------------------ 1 file changed, 58 deletions(-) delete mode 100644 libs/pixman-0.40.0/test/radial-perf-test.c (limited to 'libs/pixman-0.40.0/test/radial-perf-test.c') diff --git a/libs/pixman-0.40.0/test/radial-perf-test.c b/libs/pixman-0.40.0/test/radial-perf-test.c deleted file mode 100644 index 71092e2..0000000 --- a/libs/pixman-0.40.0/test/radial-perf-test.c +++ /dev/null @@ -1,58 +0,0 @@ -#include "utils.h" -#include - -int -main () -{ - static const pixman_point_fixed_t inner = { 0x0000, 0x0000 }; - static const pixman_point_fixed_t outer = { 0x0000, 0x0000 }; - static const pixman_fixed_t r_inner = 0; - static const pixman_fixed_t r_outer = 64 << 16; - static const pixman_gradient_stop_t stops[] = { - { 0x00000, { 0x6666, 0x6666, 0x6666, 0xffff } }, - { 0x10000, { 0x0000, 0x0000, 0x0000, 0xffff } } - }; - static const pixman_transform_t transform = { - { { 0x0, 0x26ee, 0x0}, - { 0xffffeeef, 0x0, 0x0}, - { 0x0, 0x0, 0x10000} - } - }; - static const pixman_color_t z = { 0x0000, 0x0000, 0x0000, 0x0000 }; - pixman_image_t *dest, *radial, *zero; - int i; - double before, after; - - dest = pixman_image_create_bits ( - PIXMAN_x8r8g8b8, 640, 429, NULL, -1); - zero = pixman_image_create_solid_fill (&z); - radial = pixman_image_create_radial_gradient ( - &inner, &outer, r_inner, r_outer, stops, ARRAY_LENGTH (stops)); - pixman_image_set_transform (radial, &transform); - pixman_image_set_repeat (radial, PIXMAN_REPEAT_PAD); - -#define N_COMPOSITE 500 - - before = gettime(); - for (i = 0; i < N_COMPOSITE; ++i) - { - before -= gettime(); - - pixman_image_composite ( - PIXMAN_OP_SRC, zero, NULL, dest, - 0, 0, 0, 0, 0, 0, 640, 429); - - before += gettime(); - - pixman_image_composite32 ( - PIXMAN_OP_OVER, radial, NULL, dest, - - 150, -158, 0, 0, 0, 0, 640, 361); - } - - after = gettime(); - - write_png (dest, "radial.png"); - - printf ("Average time to composite: %f\n", (after - before) / N_COMPOSITE); - return 0; -} -- cgit v1.2.1