[gegl] gegl: Add more GEGL_DEBUG_PROCESS output
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Subject: [gegl] gegl: Add more GEGL_DEBUG_PROCESS output
- Date: Sun, 7 Jun 2009 16:08:19 -0400 (EDT)
commit adf2a8e6f6684ea18b9e6e9e53d6e4ad646100a5
Author: Martin Nordholts <martinn src gnome org>
Date: Sun Jun 7 22:09:29 2009 +0200
gegl: Add more GEGL_DEBUG_PROCESS output
---
gegl/process/gegl-cr-visitor.c | 9 +++++++++
gegl/process/gegl-processor.c | 5 +++++
2 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/gegl/process/gegl-cr-visitor.c b/gegl/process/gegl-cr-visitor.c
index 0ab4c36..142cfa2 100644
--- a/gegl/process/gegl-cr-visitor.c
+++ b/gegl/process/gegl-cr-visitor.c
@@ -22,6 +22,7 @@
#include <string.h>
#include "gegl.h"
+#include "gegl-debug.h"
#include "gegl-types-internal.h"
#include "gegl-cr-visitor.h"
#include "operation/gegl-operation.h"
@@ -69,5 +70,13 @@ gegl_cr_visitor_visit_node (GeglVisitor *self,
/* here we expand to the size requested by the operation to be cached */
context->result_rect = gegl_operation_get_cached_region (node->operation, &context->result_rect);
}
+
+ GEGL_NOTE (GEGL_DEBUG_PROCESS,
+ "For \"%s\" have_rect = %d, %d %dÃ?%d need_rect = %d, %d %dÃ?%d result_rect = %d, %d %dÃ?%d\n",
+ gegl_node_get_debug_name (node),
+ node->have_rect.x, node->have_rect.y, node->have_rect.width, node->have_rect.height,
+ context->need_rect.x, context->need_rect.y, context->need_rect.width, context->need_rect.height,
+ context->result_rect.x, context->result_rect.y, context->result_rect.width, context->result_rect.height);
+
context->refs = gegl_node_get_num_sinks (node);
}
diff --git a/gegl/process/gegl-processor.c b/gegl/process/gegl-processor.c
index 626c816..2092aff 100644
--- a/gegl/process/gegl-processor.c
+++ b/gegl/process/gegl-processor.c
@@ -21,6 +21,7 @@
#include <glib-object.h>
#include "gegl.h"
+#include "gegl-debug.h"
#include "buffer/gegl-region.h"
#include "graph/gegl-node.h"
@@ -326,6 +327,10 @@ gegl_node_new_processor (GeglNode *node,
"rectangle", rectangle,
NULL);
+ GEGL_NOTE (GEGL_DEBUG_PROCESS, "gegl_node_new_processor() node = %s rectangle = %d, %d %dÃ?%d\n",
+ gegl_node_get_debug_name (node),
+ rectangle->x, rectangle->y, rectangle->width, rectangle->height);
+
/* FIXME: Look for what pads that are available rather than looking
* at what type of operation we are dealing with
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]