[gtk/wip/chergert/macos-iosurface] cleanup some todos and whatnot



commit 10f15e78d58125ab53b4c60d520f35e49f55c666
Author: Christian Hergert <christian hergert me>
Date:   Wed Feb 9 14:28:43 2022 -0800

    cleanup some todos and whatnot

 gdk/macos/gdkmacoscairocontext.c | 15 ++-------------
 1 file changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/gdk/macos/gdkmacoscairocontext.c b/gdk/macos/gdkmacoscairocontext.c
index 32c4cab30d..abee8f3c5f 100644
--- a/gdk/macos/gdkmacoscairocontext.c
+++ b/gdk/macos/gdkmacoscairocontext.c
@@ -101,8 +101,6 @@ _gdk_macos_cairo_context_cairo_create (GdkCairoContext *cairo_context)
                                g_object_ref (back),
                                unlock_buffer);
 
-  /* TODO: Copy from other image back to this one */
-
   if (!(cr = cairo_create (image_surface)))
     goto failure;
 
@@ -186,15 +184,9 @@ _gdk_macos_cairo_context_end_frame (GdkDrawContext *draw_context,
 static void
 _gdk_macos_cairo_context_surface_resized (GdkDrawContext *draw_context)
 {
-  GdkMacosCairoContext *self = (GdkMacosCairoContext *)draw_context;
-
-  g_assert (GDK_IS_MACOS_CAIRO_CONTEXT (self));
-}
+  g_assert (GDK_IS_MACOS_CAIRO_CONTEXT (draw_context));
 
-static void
-_gdk_macos_cairo_context_dispose (GObject *object)
-{
-  G_OBJECT_CLASS (_gdk_macos_cairo_context_parent_class)->dispose (object);
+  /* Do nothing, our next begin_frame will get a new back buffer */
 }
 
 static void
@@ -202,9 +194,6 @@ _gdk_macos_cairo_context_class_init (GdkMacosCairoContextClass *klass)
 {
   GdkCairoContextClass *cairo_context_class = GDK_CAIRO_CONTEXT_CLASS (klass);
   GdkDrawContextClass *draw_context_class = GDK_DRAW_CONTEXT_CLASS (klass);
-  GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
-  object_class->dispose = _gdk_macos_cairo_context_dispose;
 
   draw_context_class->begin_frame = _gdk_macos_cairo_context_begin_frame;
   draw_context_class->end_frame = _gdk_macos_cairo_context_end_frame;


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