In delegate_{src,dest}_iter_init() call delegate directly.
authorSøren Sandmann Pedersen <ssp@redhat.com>
Sun, 13 Mar 2011 00:06:02 +0000 (19:06 -0500)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Fri, 18 Mar 2011 20:23:10 +0000 (16:23 -0400)
There is no reason to go through
_pixman_implementation_{src,dest}_iter_init(), especially since
_pixman_implementation_src_iter_init() is doing various other checks
that only need to be done once.

Also call delegate->src_iter_init() directly in pixman-sse2.c

pixman/pixman-implementation.c
pixman/pixman-sse2.c

index adaf9c6..892767e 100644 (file)
@@ -122,7 +122,7 @@ delegate_src_iter_init (pixman_implementation_t *imp,
                        uint8_t *                buffer,
                        iter_flags_t             flags)
 {
-    _pixman_implementation_src_iter_init (
+    imp->delegate->src_iter_init (
        imp->delegate, iter, image, x, y, width, height, buffer, flags);
 }
 
@@ -137,7 +137,7 @@ delegate_dest_iter_init (pixman_implementation_t *imp,
                         uint8_t *                buffer,
                         iter_flags_t             flags)
 {
-    _pixman_implementation_dest_iter_init (
+    imp->delegate->dest_iter_init (
        imp->delegate, iter, image, x, y, width, height, buffer, flags);
 }
 
index 696005f..d4a34e9 100644 (file)
@@ -6013,7 +6013,7 @@ sse2_src_iter_init (pixman_implementation_t *imp,
        }
     }
 
-    _pixman_implementation_src_iter_init (
+    imp->delegate->src_iter_init (
        imp->delegate, iter, image, x, y, width, height, buffer, flags);
 }