Cairo, Xlib, and the Shared Memory Extension

“Maybe I’m just naive, but designing a graphics API such that all image data had to be sent over a socket to another process every time the image needed to be drawn seems like complete idiocy. Unfortunately, that is precisely what the X Window System forces a program to do, and exactly what Cairo does when drawing images in Linux – a full copy of the image data, send to another process, no less, every time it is drawn. One would think there would be some room for improvement. Unsurprisingly, others felt the same way about X, and decided to write an extension, Xlib Shm or XShm for short, that allows images to placed in a shared memory segment from which the X server reads which allows the program to avoid the memory copy. GTK already makes use of the XShm extension, and it seems like a good idea to see if Gecko couldn’t do the same.”

42 Comments

  1. 2008-06-28 10:59 pm
  2. 2008-06-28 11:52 pm
  3. 2008-06-29 12:00 am
    • 2008-06-29 9:11 am
  4. 2008-06-29 12:04 am
    • 2008-06-29 3:51 am
      • 2008-06-29 5:00 am
      • 2008-06-29 8:01 am
        • 2008-06-29 8:41 am
          • 2008-06-29 9:39 am
        • 2008-06-29 8:43 am
      • 2008-06-29 12:07 pm
        • 2008-06-29 5:19 pm
          • 2008-06-29 5:42 pm
          • 2008-06-29 6:15 pm
      • 2008-06-29 2:14 pm
        • 2008-06-30 10:36 am
  5. 2008-06-29 12:38 am
    • 2008-06-29 1:50 am
      • 2008-06-29 9:02 am
        • 2008-06-29 10:20 am
          • 2008-06-29 2:01 pm
          • 2008-06-29 2:11 pm
        • 2008-06-29 10:30 am
        • 2008-07-02 3:58 am
    • 2008-06-29 8:49 am
      • 2008-06-29 10:21 am
        • 2008-06-29 1:02 pm
          • 2008-06-29 2:18 pm
          • 2008-06-29 2:55 pm
  6. 2008-06-29 3:49 am
  7. 2008-06-29 4:58 am
  8. 2008-06-29 10:00 am
    • 2008-06-29 2:31 pm
    • 2008-06-29 11:05 pm
  9. 2008-06-29 2:29 pm
    • 2008-06-29 3:01 pm
  10. 2008-06-29 5:20 pm
  11. 2008-06-29 5:58 pm
    • 2008-06-29 8:23 pm
      • 2008-06-29 9:13 pm
  12. 2008-06-30 7:54 pm