• Chris Wilson's avatar
    Real zero-copy cow snapshotting · 934d0d0d
    Chris Wilson authored
    The first iteration of COW snapshotting always made an initial copy when
    the snapshot was requested (and reused that copy until the surface was
    modified). However, in a few circumstances we can avoid even that copy
    so long as the surface is still alive and unmodified between the
    snapshotting and its use. In order to do so, we need a new proxy surface
    that can automatically perform the copy if the target should disappear
    prior to use.
cairo-surface-snapshot.c 7.33 KB