[directfb] Force NEAREST.

The current version of DirectFB does not support any filters, so set
NEAREST on the source patterns so that we can fully optimize the pattern
inside core.
This commit is contained in:
Chris Wilson 2008-10-20 19:32:21 +01:00
parent f1669d31c0
commit 2743e84171

View file

@ -750,6 +750,11 @@ _directfb_prepare_composite (cairo_directfb_surface_t *dst,
color.a = color.r = color.g = color.b = 0xff;
}
/* XXX DirectFB currently does not support filtering, so force NEAREST
* in order to hit optimisations inside core.
*/
src_pattern->filter = CAIRO_FILTER_NEAREST;
status = _cairo_pattern_acquire_surface (src_pattern, &dst->base,
*src_x, *src_y, width, height,
(cairo_surface_t **) &src,