[gimp/soc-2011-seamless-clone2] Make gimp use the all in one seamless clone GEGL operation



commit a779038cd3c67c4448fcf0394557bdd17774857a
Author: Barak Itkin <lightningismyname gmail com>
Date:   Sat Jun 23 16:23:51 2012 +0300

    Make gimp use the all in one seamless clone GEGL operation

 app/tools/gimpseamlessclonetool.c |   18 +++++-------------
 app/tools/gimpseamlessclonetool.h |    2 --
 2 files changed, 5 insertions(+), 15 deletions(-)
---
diff --git a/app/tools/gimpseamlessclonetool.c b/app/tools/gimpseamlessclonetool.c
index c0df872..bbf84bd 100644
--- a/app/tools/gimpseamlessclonetool.c
+++ b/app/tools/gimpseamlessclonetool.c
@@ -250,8 +250,6 @@ gimp_seamless_clone_tool_init (GimpSeamlessCloneTool *self)
 
   self->paste           = NULL;
   
-  self->abstract_cache  = NULL;
-  
   self->render_node     = NULL;
   self->sc_node  = NULL;
 
@@ -438,11 +436,6 @@ gimp_seamless_clone_tool_stop (GimpSeamlessCloneTool *sc,
           sc->render_node = NULL;
           sc->sc_node  = NULL;
         }
-        
-      /* TODO: free the abstract_cache object */
-      if (sc->abstract_cache)
-        {
-        }
     }
 
   /* This should always happen, even when we just switch a display */
@@ -763,10 +756,9 @@ gimp_seamless_clone_tool_create_render_node (GimpSeamlessCloneTool *sc)
                                    NULL);
 
   op = gegl_node_new_child (node,
-                            "operation", "gegl:seamless-clone-render",
-                            "x",         (gint) sc->xoff,
-                            "y",         (gint) sc->yoff,
-                            "prepare",   sc->abstract_cache,
+                            "operation", "gegl:seamless-clone",
+                            "xoff",      (gint) sc->xoff,
+                            "yoff",      (gint) sc->yoff,
                             NULL);
 
   overlay = gegl_node_new_child (node,
@@ -797,8 +789,8 @@ gimp_seamless_clone_tool_render_node_update (GimpSeamlessCloneTool *sc)
 {
   /* The only thing to update right now, is the location of the paste */
   gegl_node_set (sc->sc_node,
-                 "x", (gint) sc->xoff,
-                 "y", (gint) sc->yoff,
+                 "xoff", (gint) sc->xoff,
+                 "yoff", (gint) sc->yoff,
                  NULL);
 }
 
diff --git a/app/tools/gimpseamlessclonetool.h b/app/tools/gimpseamlessclonetool.h
index 2ad16d4..6b39a0c 100644
--- a/app/tools/gimpseamlessclonetool.h
+++ b/app/tools/gimpseamlessclonetool.h
@@ -45,8 +45,6 @@ struct _GimpSeamlessCloneTool
                                   * paste that will be used in the
                                   * rendering process */
 
-  gpointer        abstract_cache;
-
   GeglNode       *render_node;    /* The parent of the Gegl graph that
                                    * renders the seamless cloning */
                                    



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