Commit a4a07f15 authored by Daniel Sabo's avatar Daniel Sabo

Remove old version of gegl_node_process

parent 21422814
......@@ -1590,8 +1590,6 @@ gegl_node_get_bounding_box (GeglNode *self)
return self->have_rect;
#if 1
gegl_node_process (GeglNode *self)
......@@ -1605,45 +1603,6 @@ gegl_node_process (GeglNode *self)
g_object_unref (processor);
/* simplest form of GeglProcess that processes all data in one
* single large chunk
gegl_node_process (GeglNode *self)
GeglNode *input;
GeglOperationContext *context;
GeglBuffer *buffer;
GeglRectangle defined;
g_return_if_fail (GEGL_IS_NODE (self));
g_return_if_fail (g_type_is_a (G_OBJECT_TYPE (self->operation),
input = gegl_node_get_producer (self, "input", NULL);
defined = gegl_node_get_bounding_box (input);
buffer = gegl_node_apply_roi (input, &defined);
g_assert (GEGL_IS_BUFFER (buffer));
context = gegl_node_add_context (self, &defined);
GValue value = { 0, };
g_value_init (&value, GEGL_TYPE_BUFFER);
g_value_set_object (&value, buffer);
gegl_operation_context_set_property (context, "input", &value);
g_value_unset (&value);
gegl_operation_context_set_result_rect (context, &defined);
gegl_operation_process (self->operation, context, "output", &defined);
gegl_node_remove_context (self, &defined);
g_object_unref (buffer);
GeglNode *
gegl_node_detect (GeglNode *root,
gint x,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment