[gegl] node: remove unnecessary gegl_buffer_set_abyss call
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] node: remove unnecessary gegl_buffer_set_abyss call
- Date: Thu, 2 Aug 2012 19:19:35 +0000 (UTC)
commit 2d84d6300fafcb3120ee079734aeec950ec39319
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 e2a6681..19ded9c 100644
--- a/gegl/graph/gegl-node.c
+++ b/gegl/graph/gegl-node.c
@@ -2055,9 +2055,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
@@ -2077,7 +2076,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]