[cairo] [Patch] cairo-trace: Fix mark-dirty with the xcb backend

Uli Schlachter psychon at znc.in
Sat Jul 16 13:28:34 PDT 2011


today I hit yet another assertion failure with cairo. cairo-trace will hook into
cairo_surface_mark_dirty and first do some other magic before calling the real
This magic, when applied to a xcb surface, causes a new snapshot to be created
in cairo-trace's mark_dirty wrapper right before the real mark_dirty is called.
This function then dies in an assert (! _cairo_surface_has_snapshots (surface));

The attached patch will simply swap the order in which cairo-trace does "its
thing". Since I didn't mess with cairo-trace's source code before, I'd be happy
if someone could take a look and tell me that I didn't break anything too badly.

"Do you know that books smell like nutmeg or some spice from a foreign land?"
                                                  -- Faber in Fahrenheit 451

More information about the cairo mailing list