From 967cb56275a139942c9df78f46134d3a4e4dd1eb Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 20 Mar 2015 14:34:44 +0100 Subject: shadow-box: Blur only horizontally/vertically for the non-corner parts There is no need to e.g. blur in the x-direction for the top part of a box shadow. Also, there is no need to extend the mask in the non-blurred direction. https://bugzilla.gnome.org/show_bug.cgi?id=746468 --- tests/blur-performance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/blur-performance.c') diff --git a/tests/blur-performance.c b/tests/blur-performance.c index c4381f9208..a99e5cd00d 100644 --- a/tests/blur-performance.c +++ b/tests/blur-performance.c @@ -41,7 +41,7 @@ main (int argc, char **argv) { init_surface (cr); g_timer_start (timer); - _gtk_cairo_blur_surface (surface, i); + _gtk_cairo_blur_surface (surface, i, GTK_BLUR_X | GTK_BLUR_Y); msec = g_timer_elapsed (timer, NULL) * 1000; if (j == 1) g_print ("Radius %2d: %.2f msec, %.2f kpixels/msec:\n", i, msec, size*size/(msec*1000)); -- cgit v1.2.1