macos: add readonly IOSurfaceLock helper
authorChristian Hergert <christian@hergert.me>
Mon, 28 Feb 2022 09:29:22 +0000 (01:29 -0800)
committerChristian Hergert <chergert@redhat.com>
Wed, 16 Mar 2022 19:24:11 +0000 (12:24 -0700)
commitb2ab0b1fcb8f17f992f58157a4c157c58abb613e
treed8cebb06811810f105422419d185c3786fae6bb2
parentb19526489e385ba45756c4aefc3314d19c196d67
macos: add readonly IOSurfaceLock helper

This can be used to lock a surface for reading to avoid causing the
surface contents to be invalidated. This is needed when reading back from
a front-buffer to the back-buffer as is needed when using Cairo surfaces
to implement something similar to BufferAge.
gdk/macos/gdkmacosbuffer-private.h
gdk/macos/gdkmacosbuffer.c