macos: precalculate clip regions as CGRect
authorChristian Hergert <christian@hergert.me>
Fri, 4 Feb 2022 17:31:37 +0000 (09:31 -0800)
committerChristian Hergert <christian@hergert.me>
Fri, 4 Feb 2022 17:31:37 +0000 (09:31 -0800)
commit8ea0a4fc5096907df8dc3be9a9216891a5cda6a4
tree5880ffb1cba5c29cac37c8c8e599f965c7ed12c2
parent8112b49c36f3733ee5e2f7451113b531bda4e0ac
macos: precalculate clip regions as CGRect

We can make our drawRect do less work if we precalculate the clip
and damage regions upfront by intersecting them with the bounds.
gdk/macos/GdkMacosCairoSubview.c
gdk/macos/GdkMacosCairoSubview.h