gegl r2475 - in trunk: . gegl/graph gegl/operation gegl/process
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2475 - in trunk: . gegl/graph gegl/operation gegl/process
- Date: Sun, 15 Jun 2008 17:59:27 +0000 (UTC)
Author: ok
Date: Sun Jun 15 17:59:26 2008
New Revision: 2475
URL: http://svn.gnome.org/viewvc/gegl?rev=2475&view=rev
Log:
* gegl/graph/gegl-node.[ch]: (gegl_node_set_need_rect): replaced
x,y,width,height arguments with a GeglRectangle.
* gegl/operation/gegl-operations.c:
(gegl_operation_set_source_region):
* gegl/process/gegl-eval-mgr.c: (gegl_eval_mgr_apply):
* gegl/process/gegl-prepare-visitor.c: (visit_node):
Modified:
trunk/ChangeLog
trunk/gegl/graph/gegl-node.c
trunk/gegl/graph/gegl-node.h
trunk/gegl/operation/gegl-operations.c
trunk/gegl/process/gegl-eval-mgr.c
trunk/gegl/process/gegl-prepare-visitor.c
Modified: trunk/gegl/graph/gegl-node.c
==============================================================================
--- trunk/gegl/graph/gegl-node.c (original)
+++ trunk/gegl/graph/gegl-node.c Sun Jun 15 17:59:26 2008
@@ -1400,10 +1400,7 @@
void
gegl_node_set_need_rect (GeglNode *node,
gpointer context_id,
- gint x,
- gint y,
- gint width,
- gint height)
+ const GeglRectangle *rect)
{
GeglOperationContext *context;
@@ -1411,10 +1408,7 @@
g_return_if_fail (context_id != NULL);
context = gegl_node_get_context (node, context_id);
- context->need_rect.x = x;
- context->need_rect.y = y;
- context->need_rect.width = width;
- context->need_rect.height = height;
+ gegl_operation_context_set_need_rect (context, rect);
}
const gchar *
Modified: trunk/gegl/graph/gegl-node.h
==============================================================================
--- trunk/gegl/graph/gegl-node.h (original)
+++ trunk/gegl/graph/gegl-node.h Sun Jun 15 17:59:26 2008
@@ -171,10 +171,7 @@
const gchar *property_name);
void gegl_node_set_need_rect (GeglNode *node,
gpointer context_id,
- gint x,
- gint y,
- gint width,
- gint height);
+ const GeglRectangle *rect);
/* Graph related member functions of the GeglNode class */
Modified: trunk/gegl/operation/gegl-operations.c
==============================================================================
--- trunk/gegl/operation/gegl-operations.c (original)
+++ trunk/gegl/operation/gegl-operations.c Sun Jun 15 17:59:26 2008
@@ -174,9 +174,7 @@
}
}
- gegl_node_set_need_rect (child, context_id,
- child_need.x, child_need.y,
- child_need.width, child_need.height);
+ gegl_node_set_need_rect (child, context_id, &child_need);
}
}
gboolean
Modified: trunk/gegl/process/gegl-eval-mgr.c
==============================================================================
--- trunk/gegl/process/gegl-eval-mgr.c (original)
+++ trunk/gegl/process/gegl-eval-mgr.c Sun Jun 15 17:59:26 2008
@@ -118,8 +118,7 @@
self->roi = root->have_rect;
}
- gegl_node_set_need_rect (root, context_id, self->roi.x, self->roi.y,
- self->roi.width, self->roi.height);
+ gegl_node_set_need_rect (root, context_id, &self->roi);
root->is_root = TRUE;
need_visitor = g_object_new (GEGL_TYPE_NEED_VISITOR, "id", context_id, NULL);
Modified: trunk/gegl/process/gegl-prepare-visitor.c
==============================================================================
--- trunk/gegl/process/gegl-prepare-visitor.c (original)
+++ trunk/gegl/process/gegl-prepare-visitor.c Sun Jun 15 17:59:26 2008
@@ -84,7 +84,10 @@
}
gegl_operation_prepare (operation);
- gegl_node_set_need_rect (node, self->context_id, 0, 0, 0, 0);
+ {
+ GeglRectangle empty ={0,};
+ gegl_node_set_need_rect (node, self->context_id, &empty);
+ }
time = gegl_ticks () - time;
gegl_instrument ("process", gegl_node_get_operation (node), time);
gegl_instrument (gegl_node_get_operation (node), "prepare", time);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]