It was always NULL anyway.
}
pixman_implementation_t *
-_pixman_implementation_create_arm_neon (pixman_implementation_t *toplevel)
+_pixman_implementation_create_arm_neon (void)
{
- pixman_implementation_t *simd = _pixman_implementation_create_arm_simd (NULL);
- pixman_implementation_t *imp = _pixman_implementation_create (toplevel, simd);
+ pixman_implementation_t *simd = _pixman_implementation_create_arm_simd();
+ pixman_implementation_t *imp = _pixman_implementation_create (simd);
imp->composite = arm_neon_composite;
// imp->blt = arm_neon_blt;
}
pixman_implementation_t *
-_pixman_implementation_create_arm_simd (pixman_implementation_t *toplevel)
+_pixman_implementation_create_arm_simd (void)
{
- pixman_implementation_t *general = _pixman_implementation_create_fast_path (NULL);
- pixman_implementation_t *imp = _pixman_implementation_create (toplevel, general);
+ pixman_implementation_t *general = _pixman_implementation_create_fast_path ();
+ pixman_implementation_t *imp = _pixman_implementation_create (general);
imp->composite = arm_simd_composite;
{
#ifdef USE_SSE2
if (pixman_have_sse2 ())
- return _pixman_implementation_create_sse2 (NULL);
+ return _pixman_implementation_create_sse2 ();
#endif
#ifdef USE_MMX
if (pixman_have_mmx())
- return _pixman_implementation_create_mmx (NULL);
+ return _pixman_implementation_create_mmx ();
#endif
#ifdef USE_ARM_NEON
if (pixman_have_arm_neon())
- return _pixman_implementation_create_arm_neon (NULL);
+ return _pixman_implementation_create_arm_neon ();
#endif
#ifdef USE_ARM_SIMD
if (pixman_have_arm_simd())
- return _pixman_implementation_create_arm_simd (NULL);
+ return _pixman_implementation_create_arm_simd ();
#endif
#ifdef USE_VMX
if (pixman_have_vmx())
- return _pixman_implementation_create_vmx (NULL);
+ return _pixman_implementation_create_vmx ();
#endif
- return _pixman_implementation_create_fast_path (NULL);
+ return _pixman_implementation_create_fast_path ();
}
}
pixman_implementation_t *
-_pixman_implementation_create_fast_path (pixman_implementation_t *toplevel)
+_pixman_implementation_create_fast_path (void)
{
- pixman_implementation_t *general = _pixman_implementation_create_general (NULL);
- pixman_implementation_t *imp = _pixman_implementation_create (toplevel, general);
+ pixman_implementation_t *general = _pixman_implementation_create_general ();
+ pixman_implementation_t *imp = _pixman_implementation_create (general);
imp->composite = fast_path_composite;
imp->fill = fast_path_fill;
}
pixman_implementation_t *
-_pixman_implementation_create_general (pixman_implementation_t *toplevel)
+_pixman_implementation_create_general (void)
{
- pixman_implementation_t *imp = _pixman_implementation_create (toplevel, NULL);
+ pixman_implementation_t *imp = _pixman_implementation_create (NULL);
_pixman_setup_combiner_functions_32 (imp);
_pixman_setup_combiner_functions_64 (imp);
}
pixman_implementation_t *
-_pixman_implementation_create (pixman_implementation_t *toplevel,
- pixman_implementation_t *delegate)
+_pixman_implementation_create (pixman_implementation_t *delegate)
{
pixman_implementation_t *imp = malloc (sizeof (pixman_implementation_t));
pixman_implementation_t *d;
if (!imp)
return NULL;
-
- if (toplevel)
- imp->toplevel = toplevel;
- else
- imp->toplevel = imp;
/* Make sure the whole delegate chain has the right toplevel */
- for (d = delegate; d != NULL; d = d->delegate)
- d->toplevel = imp->toplevel;
-
imp->delegate = delegate;
-
+ for (d = imp; d != NULL; d = d->delegate)
+ d->toplevel = imp;
+
/* Fill out function pointers with ones that just delegate
*/
imp->composite = delegate_composite;
}
pixman_implementation_t *
-_pixman_implementation_create_mmx (pixman_implementation_t *toplevel)
+_pixman_implementation_create_mmx (void)
{
- pixman_implementation_t *general = _pixman_implementation_create_fast_path (NULL);
- pixman_implementation_t *imp = _pixman_implementation_create (toplevel, general);
+ pixman_implementation_t *general = _pixman_implementation_create_fast_path ();
+ pixman_implementation_t *imp = _pixman_implementation_create (general);
imp->combine_32[PIXMAN_OP_OVER] = mmxCombineOverU;
imp->combine_32[PIXMAN_OP_OVER_REVERSE] = mmxCombineOverReverseU;
};
pixman_implementation_t *
-_pixman_implementation_create (pixman_implementation_t *toplevel,
- pixman_implementation_t *delegate);
+_pixman_implementation_create (pixman_implementation_t *delegate);
void
_pixman_implementation_combine_32 (pixman_implementation_t * imp,
/* Specific implementations */
pixman_implementation_t *
-_pixman_implementation_create_general (pixman_implementation_t *toplevel);
+_pixman_implementation_create_general (void);
pixman_implementation_t *
-_pixman_implementation_create_fast_path (pixman_implementation_t *toplevel);
+_pixman_implementation_create_fast_path (void);
#ifdef USE_MMX
pixman_implementation_t *
-_pixman_implementation_create_mmx (pixman_implementation_t *toplevel);
+_pixman_implementation_create_mmx (void);
#endif
#ifdef USE_SSE2
pixman_implementation_t *
-_pixman_implementation_create_sse2 (pixman_implementation_t *toplevel);
+_pixman_implementation_create_sse2 (void);
#endif
#ifdef USE_ARM_SIMD
pixman_implementation_t *
-_pixman_implementation_create_arm_simd (pixman_implementation_t *toplevel);
+_pixman_implementation_create_arm_simd (void);
#endif
#ifdef USE_ARM_NEON
pixman_implementation_t *
-_pixman_implementation_create_arm_neon (pixman_implementation_t *toplevel);
+_pixman_implementation_create_arm_neon (void);
#endif
#ifdef USE_VMX
pixman_implementation_t *
-_pixman_implementation_create_vmx (pixman_implementation_t *toplevel);
+_pixman_implementation_create_vmx (void);
#endif
pixman_bool_t
}
pixman_implementation_t *
-_pixman_implementation_create_sse2 (pixman_implementation_t *toplevel)
+_pixman_implementation_create_sse2 (void)
{
- pixman_implementation_t *mmx = _pixman_implementation_create_mmx (NULL);
- pixman_implementation_t *imp = _pixman_implementation_create (toplevel, mmx);
+ pixman_implementation_t *mmx = _pixman_implementation_create_mmx ();
+ pixman_implementation_t *imp = _pixman_implementation_create (mmx);
/* SSE2 constants */
Mask565r = createMask_2x32_128 (0x00f80000, 0x00f80000);
#endif
pixman_implementation_t *
-_pixman_implementation_create_vmx (pixman_implementation_t *toplevel)
+_pixman_implementation_create_vmx (void)
{
- pixman_implementation_t *fast = _pixman_implementation_create_fast_path (NULL);
- pixman_implementation_t *imp = _pixman_implementation_create (toplevel, fast);
+ pixman_implementation_t *fast = _pixman_implementation_create_fast_path ();
+ pixman_implementation_t *imp = _pixman_implementation_create (fast);
/* Set up function pointers */