[cairo-bugs] [Bug 35407] boundary of image gets wrong color

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Mar 29 04:50:01 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=35407

--- Comment #5 from clock9 at naver.com 2011-03-29 04:49:56 PDT ---
please let me know what the difference of using pixman between fallback-paint
function and image-paint function.

1.
_cairo_surface_fallback_paint function, in this case,
   '_clip_and_composite_source' -> '_cairo_surface_composite' ->
'_cairo_image_surface_composite' are called 

   finally, 'pixman_image_composite32' is called twice with
'CAIRO_OPERATOR_DEST_OUT' and 'CAIRO_OPERATOR_ADD'. and it can get good result.


2.
_cairo_image_surface_paint function, in this case,
_clip_and_composite_boxes -> _composite_boxes -> _composite_unaligned_boxes are
called.

   finally, 'pixman_image_composite32' is called once with
'CAIRO_OPERATOR_SOURCE'. and it gets bad result.


actually, in this case, 'mask' in '_composite_unaligned_boxes' seems to be
wrong. If I set it NULL, no problem.

and If I use 'pixman_image_composite32' twice like fallback-paint function, no
problem.

Can you let me know what's wrong with it for me?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list