macos: use GdkMacosBuffer for storing damage region
authorChristian Hergert <christian@hergert.me>
Wed, 2 Mar 2022 08:36:17 +0000 (00:36 -0800)
committerChristian Hergert <chergert@redhat.com>
Wed, 16 Mar 2022 19:25:09 +0000 (12:25 -0700)
commit50e2a8239b100a26b3d91245249e8b27083481c2
tree0019d331c3571e256d9f168e8f35bd3fc84ae76e
parent42f9ea07e241e69682c5a5c7334b482775e15377
macos: use GdkMacosBuffer for storing damage region

The GdkMacosBuffer object already has storage for tracking the damage
region as it is used in GdkMacosCairoContext to manually copy regions from
the front buffer to the back buffer. This makes the GdkMacosGLContext also
use that field so that we can easily drop old damage regions when the
buffer is lost. This happens during resizes, monitor changes, etc.
gdk/macos/gdkmacosglcontext-private.h
gdk/macos/gdkmacosglcontext.c