[cairo-bugs] [Bug 17203] New: CGLayer backed surface

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Aug 19 08:37:42 PDT 2008


           Summary: CGLayer backed surface
           Product: cairo
           Version: 1.5.16
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: quartz backend
        AssignedTo: vladimir at pobox.com
        ReportedBy: richard at imendio.com
         QAContact: cairo-bugs at cairographics.org

It would be nice to be able to create a cairo surface on quartz that is backed
by a CGContext from a CGLayer to get better performance (CGBitmapContext seems
to be very slow, most likely done completely in software, while CGLayers are
closer to pixmaps on X11). This will require 10.4 though. GTK+ could then use
CGLayer to represent GdkPixmap instead of a bitmap context.

--- Comment #1 from Vladimir Vukicevic <vladimir at pobox.com>  2008-08-19 08:37:27 PST ---
I have a patch for that sitting around here somewhere, but it wasn't really any
faster on my benchmarks; I never finished it completely though, and there were
a few oddities in the API.  Nothing stops the app (gtk in this case) from
creating a CGLayer and just creating a cairo surface that renders to it...

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