/* * Copyright 2014 © Samsung Research America, Silicon Valley * * Use of this source code is governed by the 3-Clause BSD license * specified in the COPYING file included with this source code. */ #include #include #include #include #include "caskbench.h" #include "caskbench_context.h" #include "cairo-shapes.h" int ca_setup_transform(caskbench_context_t *ctx) { cairo_set_antialias (ctx->cairo_cr, CAIRO_ANTIALIAS_NONE); cairo_set_line_width (ctx->cairo_cr, 1); return 1; } void ca_teardown_transform(void) { } int ca_test_transform(caskbench_context_t *ctx) { int w = ctx->canvas_width; int h = ctx->canvas_height; double rotation_delta(0.02*180/M_PI); cairo_t *cr = ctx->cairo_cr; cairo_save (cr); for (int nn=0; nnsize; nn++) { for (int i=0; i