gegl r2693 - in trunk: . gegl/process
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2693 - in trunk: . gegl/process
- Date: Mon, 3 Nov 2008 02:00:17 +0000 (UTC)
Author: ok
Date: Mon Nov 3 02:00:17 2008
New Revision: 2693
URL: http://svn.gnome.org/viewvc/gegl?rev=2693&view=rev
Log:
* gegl/process/gegl-processor.c: (gegl_processor_set_rectangle): do
not intersect with the incoming rectangle with the bounding box of the
composition (computing the bounding box is expensive and not yet cache, the
rectangle can be frequently reset).
Modified:
trunk/ChangeLog
trunk/gegl/process/gegl-processor.c
Modified: trunk/gegl/process/gegl-processor.c
==============================================================================
--- trunk/gegl/process/gegl-processor.c (original)
+++ trunk/gegl/process/gegl-processor.c Mon Nov 3 02:00:17 2008
@@ -266,7 +266,6 @@
const GeglRectangle *rectangle)
{
GSList *iter;
- GeglRectangle bounds;
GeglRectangle input_bounding_box;
if (! rectangle)
@@ -277,9 +276,17 @@
if (! gegl_rectangle_equal (&processor->rectangle, rectangle))
{
- bounds = gegl_node_get_bounding_box (processor->input);
+
+#if 0
+ /* XXX: this is a large penalty hit, so we assume the rectangle
+ * we're getting is part of the bounding box we're hitting */
+ GeglRectangle bounds;
+ bounds = processor->bounds;/*gegl_node_get_bounding_box (processor->input);*/
+#endif
processor->rectangle = *rectangle;
+#if 0
gegl_rectangle_intersect (&processor->rectangle, &processor->rectangle, &bounds);
+#endif
/* remove already queued dirty rectangles */
for (iter = processor->dirty_rectangles; iter; iter = g_slist_next (iter))
@@ -368,12 +375,7 @@
*/
band_size = dr->width / 2;
#if 1
- if (band_size <= 128)
- {
- band_size = MIN(band_size, 64); /* prefer a band_size of 128,
- hoping to hit tiles */
- }
- else if (band_size <= 256)
+ if (band_size <= 256)
{
band_size = MIN(band_size, 128); /* prefer a band_size of 128,
hoping to hit tiles */
@@ -405,12 +407,7 @@
band_size = dr->height / 2;
- if (band_size <= 128)
- {
- band_size = MIN(band_size, 64); /* prefer a band_size of 128,
- hoping to hit tiles */
- }
- else if (band_size <= 256)
+ if (band_size <= 256)
{
band_size = MIN(band_size, 128); /* prefer a band_size of 128,
hoping to hit tiles */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]