Commit ffaa95e3 authored by Øyvind Kolås's avatar Øyvind Kolås

%s/adjust_result_rect/get_cached_region/

* gegl/gegl-plugin.h:
* gegl/operation/gegl-operation-source.c:
(gegl_operation_source_class_init), (get_cached_region):
* gegl/operation/gegl-operation.c:
(gegl_operation_get_cached_region):
* gegl/operation/gegl-operation.h:
* gegl/process/gegl-cr-visitor.c:
* operations/render/checkerboard.c:
* operations/render/color.c:
* operations/render/fractal-explorer.c:
* operations/render/noise.c:

svn path=/trunk/; revision=1987
parent 636480d7
2008-02-09 Øyvind Kolås <pippin@gimp.org>
%s/adjust_result_rect/get_cached_region/
* gegl/gegl-plugin.h:
* gegl/operation/gegl-operation-source.c:
(gegl_operation_source_class_init), (get_cached_region):
* gegl/operation/gegl-operation.c:
(gegl_operation_get_cached_region):
* gegl/operation/gegl-operation.h:
* gegl/process/gegl-cr-visitor.c:
* operations/render/checkerboard.c:
* operations/render/color.c:
* operations/render/fractal-explorer.c:
* operations/render/noise.c:
2008-02-09 Øyvind Kolås <pippin@gimp.org>
* gegl/operation/gegl-operation.c: removed accidental space.
......
......@@ -181,7 +181,7 @@ struct _GeglOperationClass
* (useful for global operations like contrast stretching, as well as
* file loaders to force caching of the full raster).
*/
GeglRectangle (*adjust_result_region) (GeglOperation *operation,
GeglRectangle (*get_cached_region) (GeglOperation *operation,
const GeglRectangle *roi);
/* XXX: What is GeglNode doing in this part of the API?
......@@ -225,7 +225,7 @@ GeglRectangle gegl_operation_get_required_for_output (GeglOperation *operati
const gchar *input_pad,
const GeglRectangle *input_region);
GeglRectangle gegl_operation_get_bounding_box (GeglOperation *operation);
GeglRectangle gegl_operation_adjust_result_region (GeglOperation *operation,
GeglRectangle gegl_operation_get_cached_region (GeglOperation *operation,
const GeglRectangle *roi);
GeglRectangle gegl_operation_get_invalidated_by_change (GeglOperation *operation,
......
......@@ -55,7 +55,7 @@ static GeglRectangle get_bounding_box (GeglOperation *self);
static GeglRectangle get_invalidated_by_change (GeglOperation *operation,
const gchar *input_pad,
const GeglRectangle *roi);
static GeglRectangle adjust_result_region (GeglOperation *operation,
static GeglRectangle get_cached_region (GeglOperation *operation,
const GeglRectangle *roi);
......@@ -70,7 +70,7 @@ gegl_operation_source_class_init (GeglOperationSourceClass * klass)
operation_class->process = process;
operation_class->attach = attach;
operation_class->adjust_result_region = adjust_result_region;
operation_class->get_cached_region = get_cached_region;
operation_class->get_bounding_box = get_bounding_box;
operation_class->get_invalidated_by_change = get_invalidated_by_change;
......@@ -158,8 +158,8 @@ get_invalidated_by_change (GeglOperation *operation,
}
static GeglRectangle
adjust_result_region (GeglOperation *operation,
const GeglRectangle *roi)
get_cached_region (GeglOperation *operation,
const GeglRectangle *roi)
{
GeglRectangle result = *roi;
result = operation->node->have_rect;
......
......@@ -192,17 +192,17 @@ gegl_operation_get_invalidated_by_change (GeglOperation *operation,
GeglRectangle
gegl_operation_adjust_result_region (GeglOperation *operation,
const GeglRectangle *roi)
gegl_operation_get_cached_region (GeglOperation *operation,
const GeglRectangle *roi)
{
GeglOperationClass *klass = GEGL_OPERATION_GET_CLASS (operation);
if (!klass->adjust_result_region)
if (!klass->get_cached_region)
{
return *roi;
}
return klass->adjust_result_region (operation, roi);
return klass->get_cached_region (operation, roi);
}
static void
......
......@@ -96,8 +96,8 @@ struct _GeglOperationClass
* (useful for global operations like contrast stretching, as well as
* file loaders to force caching of the full raster).
*/
GeglRectangle (*adjust_result_region) (GeglOperation *operation,
const GeglRectangle *roi);
GeglRectangle (*get_cached_region) (GeglOperation *operation,
const GeglRectangle *roi);
/* XXX: What is GeglNode doing in this part of the API?
* Returns the node providing data for a specific location within the
......@@ -140,7 +140,7 @@ GeglRectangle gegl_operation_get_required_for_output (GeglOperation *operation
const gchar *input_pad,
const GeglRectangle *input_region);
GeglRectangle gegl_operation_get_bounding_box (GeglOperation *operation);
GeglRectangle gegl_operation_adjust_result_region (GeglOperation *operation,
GeglRectangle gegl_operation_get_cached_region (GeglOperation *operation,
const GeglRectangle *roi);
GeglRectangle gegl_operation_get_invalidated_by_change(GeglOperation *operation,
......
......@@ -64,7 +64,7 @@ visit_node (GeglVisitor *self,
if (!context->cached)
{
gegl_rectangle_intersect (&context->result_rect, &node->have_rect, &context->need_rect);
context->result_rect = gegl_operation_adjust_result_region (node->operation, &context->result_rect);
context->result_rect = gegl_operation_get_cached_region (node->operation, &context->result_rect);
}
context->refs = gegl_node_get_num_sinks (node);
......
......@@ -126,7 +126,7 @@ operation_class_init (GeglChantClass *klass)
operation_class->description = "Checkerboard renderer.";
operation_class->no_cache = TRUE;
operation_class->adjust_result_region = NULL;
operation_class->get_cached_region = NULL;
}
#endif
......@@ -100,7 +100,7 @@ operation_class_init (GeglChantClass *klass)
operation_class->no_cache = TRUE;
operation_class->detect = detect;
operation_class->adjust_result_region = NULL;
operation_class->get_cached_region = NULL;
}
#endif
......@@ -468,7 +468,7 @@ operation_class_init (GeglChantClass *klass)
operation_class->description = "Fractal Explorer";
operation_class->no_cache = TRUE;
operation_class->adjust_result_region = NULL;
operation_class->get_cached_region = NULL;
}
#endif
......@@ -99,7 +99,7 @@ operation_class_init (GeglChantClass *klass)
operation_class->description = "Perlin noise generator.";
operation_class->no_cache = TRUE;
operation_class->adjust_result_region = NULL;
operation_class->get_cached_region = NULL;
}
#endif
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