Commit 1bbc564f authored by Øyvind Kolås's avatar Øyvind Kolås

changed tile size to 64x128 do not cache results of point filters. clear

* gegl/gegl-config.c: (gegl_config_init): changed tile size to 64x128
* gegl/operation/gegl-operation-point-filter.c: 
(gegl_operation_point_filter_class_init): do not cache results of
point filters.
* gegl/property-types/gegl-path.c: (gegl_param_vector_init),
(gegl_path_stroke): clear only the region bein rerendered.
* operations/external/fill.c: (gegl_chant_class_init): do not cache
fills, as they are cheap to redo.

svn path=/trunk/; revision=2713
parent eb348cba
2008-11-09 Øyvind Kolås <pippin@gimp.org>
* gegl/gegl-config.c: (gegl_config_init): changed tile size to 64x128
* gegl/operation/gegl-operation-point-filter.c:
(gegl_operation_point_filter_class_init): do not cache results of
point filters.
* gegl/property-types/gegl-path.c: (gegl_param_vector_init),
(gegl_path_stroke): clear only the region bein rerendered.
* operations/external/fill.c: (gegl_chant_class_init): do not cache
fills, as they are cheap to redo.
2008-11-09 Øyvind Kolås <pippin@gimp.org>
* operations/generated/svg-12-porter-duff.rb: made the output
boundingbox of src-in op be the bounding box of input only. This
makes the dropshadow op have save extents again.
2008-11-08 Øyvind Kolås <pippin@gimp.org>
* gegl/operation/gegl-operation-point-composer.c:
(gegl_operation_point_composer_class_init): enable caching.
* gegl/operation/gegl-operation-point-render.c:
(gegl_operation_point_render_class_init): enable caching.
* gegl/property-types/gegl-path.c: (gegl_param_vector_init):
* gegl/operation/gegl-operation-context.c: indentation.
* gegl/buffer/gegl-buffer.c: (gegl_buffer_create_sub_buffer):
extra sanity (XXX)
2008-11-09 Øyvind Kolås <pippin@gimp.org>
* gegl/operation/gegl-operation-context.c: (emptybuf),
......
......@@ -195,7 +195,7 @@ gegl_config_init (GeglConfig *self)
self->swap = NULL;
self->quality = 1.0;
self->cache_size = 256 * 1024 * 1024;
self->chunk_size = 1024 * 1024;
self->tile_width = 128;
self->tile_height = 64;
self->chunk_size = 512 * 512;
self->tile_width = 64;
self->tile_height = 128;
}
......@@ -53,6 +53,7 @@ gegl_operation_point_filter_class_init (GeglOperationPointFilterClass *klass)
filter_class->process = gegl_operation_point_filter_process;
operation_class->prepare = prepare;
operation_class->no_cache = TRUE;
}
static void
......
......@@ -873,7 +873,7 @@ struct _GeglParamPath
static void
gegl_param_vector_init (GParamSpec *self)
{
GEGL_PARAM_PATH (self)->default_vector = NULL;
GEGL_PARAM_PATH (self)->default_vector = gegl_path_new ();
}
static void
......@@ -1933,7 +1933,6 @@ void gegl_path_stroke (GeglBuffer *buffer,
gdouble opacity)
{
GeglPathPrivate *priv = GEGL_PATH_GET_PRIVATE (vector);
GeglRectangle bufext;
gfloat traveled_length = 0;
gfloat need_to_travel = 0;
gfloat x = 0,y = 0;
......@@ -1959,13 +1958,13 @@ void gegl_path_stroke (GeglBuffer *buffer,
extent.width = ceil (xmax) - extent.x;
extent.height = ceil (ymax) - extent.y;
bufext = *gegl_buffer_get_extent (buffer);
if (!gegl_rectangle_intersect (&extent, &extent, clip_rect))
{
return;
}
if (gegl_buffer_is_shared (buffer))
while (!gegl_buffer_try_lock (buffer));
while (!gegl_buffer_try_lock (buffer));
if (!gegl_rectangle_intersect (&extent, &bufext, &bufext))
return;
gegl_buffer_clear (buffer, &extent);
while (iter)
......
......@@ -173,6 +173,7 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
operation_class->detect = detect;
operation_class->no_cache = TRUE;
operation_class->name = "gegl:fill";
operation_class->categories = "render";
operation_class->description = _("Renders a fill of the provided GeglPath in a given color");
......
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