gegl r2757 - in trunk: . gegl/process



Author: ok
Date: Sun Nov 16 01:35:31 2008
New Revision: 2757
URL: http://svn.gnome.org/viewvc/gegl?rev=2757&view=rev

Log:
* gegl/process/gegl-cr-visitor.c: (visit_node): folded logic of need
visitor into this visitor pass.
* gegl/process/gegl-eval-mgr.c: (gegl_eval_mgr_apply): removed called
to need visitor.
* gegl/process/gegl-need-visitor.c: removed.
* gegl/process/gegl-need-visitor.h: removed.
* gegl/process/Makefile.am: removed file.


Removed:
   trunk/gegl/process/gegl-need-visitor.c
   trunk/gegl/process/gegl-need-visitor.h
Modified:
   trunk/ChangeLog
   trunk/gegl/process/Makefile.am
   trunk/gegl/process/gegl-cr-visitor.c
   trunk/gegl/process/gegl-eval-mgr.c

Modified: trunk/gegl/process/Makefile.am
==============================================================================
--- trunk/gegl/process/Makefile.am	(original)
+++ trunk/gegl/process/Makefile.am	Sun Nov 16 01:35:31 2008
@@ -7,7 +7,6 @@
 	gegl-eval-visitor.c		\
 	gegl-finish-visitor.c		\
 	gegl-have-visitor.c		\
-	gegl-need-visitor.c		\
 	gegl-prepare-visitor.c		\
 	gegl-processor.c
 
@@ -20,7 +19,6 @@
 	gegl-eval-visitor.h		\
 	gegl-finish-visitor.h		\
 	gegl-have-visitor.h		\
-	gegl-need-visitor.h		\
 	gegl-prepare-visitor.h		\
 	gegl-processor.h
 

Modified: trunk/gegl/process/gegl-cr-visitor.c
==============================================================================
--- trunk/gegl/process/gegl-cr-visitor.c	(original)
+++ trunk/gegl/process/gegl-cr-visitor.c	Sun Nov 16 01:35:31 2008
@@ -61,11 +61,12 @@
 
   GEGL_VISITOR_CLASS (gegl_cr_visitor_parent_class)->visit_node (self, node);
 
+  gegl_operation_calc_source_regions (node->operation, self->context_id);
   if (!context->cached)
     {
       gegl_rectangle_intersect (&context->result_rect, &node->have_rect, &context->need_rect);
+      /* here we expand to the size requested by the operation to be cached */
       context->result_rect = gegl_operation_get_cached_region (node->operation, &context->result_rect);
-
     }
   context->refs = gegl_node_get_num_sinks (node);
 

Modified: trunk/gegl/process/gegl-eval-mgr.c
==============================================================================
--- trunk/gegl/process/gegl-eval-mgr.c	(original)
+++ trunk/gegl/process/gegl-eval-mgr.c	Sun Nov 16 01:35:31 2008
@@ -28,7 +28,6 @@
 #include "gegl-debug-rect-visitor.h"
 #include "gegl-cr-visitor.h"
 #include "gegl-have-visitor.h"
-#include "gegl-need-visitor.h"
 #include "gegl-instrument.h"
 #include "graph/gegl-node.h"
 #include "gegl-prepare-visitor.h"
@@ -75,7 +74,6 @@
   GeglBuffer  *buffer;
   GeglVisitor *prepare_visitor;
   GeglVisitor *have_visitor;
-  GeglVisitor *need_visitor;
   GeglVisitor *cr_visitor;
   GeglVisitor *eval_visitor;
   GeglVisitor *finish_visitor;
@@ -121,10 +119,6 @@
   gegl_node_set_need_rect (root, context_id, &self->roi);
   root->is_root = TRUE;
 
-  need_visitor = g_object_new (GEGL_TYPE_NEED_VISITOR, "id", context_id, NULL);
-  gegl_visitor_bfs_traverse (need_visitor, GEGL_VISITABLE (root));
-  g_object_unref (need_visitor);
-
   cr_visitor = g_object_new (GEGL_TYPE_CR_VISITOR, "id", context_id, NULL);
   gegl_visitor_bfs_traverse (cr_visitor, GEGL_VISITABLE (root));
   g_object_unref (cr_visitor);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]