summaryrefslogtreecommitdiff
path: root/pixman/pixman-mmx.c
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2012-09-15 13:20:52 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2012-09-19 12:22:58 -0400
commitee6af72dadaf9eb049bfeb35dc9ff57c3902403a (patch)
tree9ab9c61824769179501ede1f79d41eb7efc4d1c1 /pixman/pixman-mmx.c
parentc710d0fae2a9dc7d20913e5e39a1bb53f7c942db (diff)
Move delegation of src/dest iter init into pixman-implementation.c
Instead of relying on each implementation to delegate when an iterator can't be initialized, change the type of iterator initializers to boolean and make pixman-implementation.c do the delegation whenever an iterator initializer returns FALSE.
Diffstat (limited to 'pixman/pixman-mmx.c')
-rw-r--r--pixman/pixman-mmx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pixman/pixman-mmx.c b/pixman/pixman-mmx.c
index a5a56f9..fccba9d 100644
--- a/pixman/pixman-mmx.c
+++ b/pixman/pixman-mmx.c
@@ -3915,7 +3915,7 @@ static const fetcher_info_t fetchers[] =
{ PIXMAN_null }
};
-static void
+static pixman_bool_t
mmx_src_iter_init (pixman_implementation_t *imp, pixman_iter_t *iter)
{
pixman_image_t *image = iter->image;
@@ -3940,12 +3940,12 @@ mmx_src_iter_init (pixman_implementation_t *imp, pixman_iter_t *iter)
iter->stride = s;
iter->get_scanline = f->get_scanline;
- return;
+ return TRUE;
}
}
}
- imp->delegate->src_iter_init (imp->delegate, iter);
+ return FALSE;
}
static const pixman_fast_path_t mmx_fast_paths[] =