[cairo-bugs] [Bug 16237] New: Should the XCB backend for cairo_surface_flush() call xcb_flush()?

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 5 05:11:23 PDT 2008


http://bugs.freedesktop.org/show_bug.cgi?id=16237

           Summary: Should the XCB backend for cairo_surface_flush() call
                    xcb_flush()?
           Product: cairo
           Version: 1.6.4
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: xcb backend
        AssignedTo: cworth at cworth.org
        ReportedBy: junkmailnotread at yahoo.com
         QAContact: cairo-bugs at cairographics.org


Should the XCB backend for cairo_surface_flush() call xcb_flush()?

If I call cairo_paint() on an XCB backend, the source image will not be
displayed on the screen until I call xcb_flush().

For reasons of portability - at some point I want to switch to Glitz - I would
prefer to call cairo_surface_flush() instead of xcb_flush(). However
cairo_surface_flush() has no effect because the XCB backend flush function is
NULL.

The description for cairo_surface_flush() says "Do any pending drawing for the
surface ...". To my mind that justifies calling xcb_flush(), since otherwise no
drawing takes place.

However the description also says "If the surface doesn't support direct
access, then this function does nothing." I must admit I'm not sure what that
means; perhaps it explains why xcb_flush() is not called.


-- 
Configure bugmail: http://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