[gegl/abyss] node: remove unnecessary gegl_buffer_set_abyss call



commit d53bdb58ec30df07176e06e7e721ea72a160905a
Author: Ville Sokk <ville sokk gmail com>
Date:   Mon Jul 9 11:57:00 2012 +0300

    node: remove unnecessary gegl_buffer_set_abyss call

 gegl/graph/gegl-node.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gegl/graph/gegl-node.c b/gegl/graph/gegl-node.c
index 5aaeeef..6e85058 100644
--- a/gegl/graph/gegl-node.c
+++ b/gegl/graph/gegl-node.c
@@ -2040,9 +2040,8 @@ gegl_node_get_cache (GeglNode *node)
 
   if (!node->cache)
     {
-      GeglPad       *pad;
-      const Babl    *format;
-      GeglRectangle  bounds = gegl_node_get_bounding_box (node);
+      GeglPad    *pad;
+      const Babl *format;
 
       /* XXX: it should be possible to have cache for other pads than
        * only "output" pads
@@ -2062,7 +2061,9 @@ gegl_node_get_cache (GeglNode *node)
                                   "format", format,
                                   NULL);
 
-      gegl_buffer_set_abyss (GEGL_BUFFER (node->cache), &bounds);
+      /* bounding box must be called at least once to compute an
+         initial have_rect for the abyss */
+      gegl_node_get_bounding_box (node);
 
       g_signal_connect (G_OBJECT (node->cache), "computed",
                         (GCallback) gegl_node_computed_event,



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