[gtk/wip/chergert/gdk-macos-gl-renderer: 66/71] macos: move setNeedsDisplay helper to GdkMacosCairoView




commit 60e67a62e6beb8e0b1d2086dd80c8a0673bbe703
Author: Christian Hergert <chergert redhat com>
Date:   Thu Oct 29 09:33:59 2020 -0700

    macos: move setNeedsDisplay helper to GdkMacosCairoView
    
    This isn't needed in the base class, which will eventually get a GL subclass.

 gdk/macos/GdkMacosBaseView.c  | 6 ------
 gdk/macos/GdkMacosCairoView.c | 6 ++++++
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gdk/macos/GdkMacosBaseView.c b/gdk/macos/GdkMacosBaseView.c
index 24be4af00e..c4ba8c1020 100644
--- a/gdk/macos/GdkMacosBaseView.c
+++ b/gdk/macos/GdkMacosBaseView.c
@@ -57,12 +57,6 @@
   return self;
 }
 
--(void)setNeedsDisplay:(BOOL)needsDisplay
-{
-  for (id child in [self subviews])
-    [child setNeedsDisplay:needsDisplay];
-}
-
 -(void)setOpaqueRegion:(cairo_region_t *)region
 {
   /* Do nothing */
diff --git a/gdk/macos/GdkMacosCairoView.c b/gdk/macos/GdkMacosCairoView.c
index e6a31178b4..2f82488912 100644
--- a/gdk/macos/GdkMacosCairoView.c
+++ b/gdk/macos/GdkMacosCairoView.c
@@ -53,6 +53,12 @@
   return YES;
 }
 
+-(void)setNeedsDisplay:(BOOL)needsDisplay
+{
+  for (id child in [self subviews])
+    [child setNeedsDisplay:needsDisplay];
+}
+
 -(void)setCairoSurface:(cairo_surface_t *)cairoSurface
             withDamage:(cairo_region_t *)cairoRegion
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]