gegl r2629 - in trunk: . operations/common
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2629 - in trunk: . operations/common
- Date: Wed, 15 Oct 2008 00:28:03 +0000 (UTC)
Author: ok
Date: Wed Oct 15 00:28:03 2008
New Revision: 2629
URL: http://svn.gnome.org/viewvc/gegl?rev=2629&view=rev
Log:
* operations/common/fill.c: (get_cached_region),
(gegl_chant_class_init): cache the bounding box of the fill, this
forces a re-render of the boundingbox each time the fill changes,
until clipping to roi is added to the fill code this should be faster.
Modified:
trunk/ChangeLog
trunk/operations/common/fill.c
Modified: trunk/operations/common/fill.c
==============================================================================
--- trunk/operations/common/fill.c (original)
+++ trunk/operations/common/fill.c Wed Oct 15 00:28:03 2008
@@ -78,6 +78,13 @@
return TRUE;
}
+static GeglRectangle
+get_cached_region (GeglOperation *self,
+ const GeglRectangle *roi)
+{
+ return get_bounding_box (self);
+}
+
static void
gegl_chant_class_init (GeglChantClass *klass)
@@ -95,7 +102,7 @@
operation_class->name = "gegl:fill";
operation_class->categories = "render";
operation_class->description = _("Renders a fill of the provided GeglVector in a given color");
- operation_class->get_cached_region = NULL;
+ operation_class->get_cached_region = get_cached_region;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]