[gegl] Fixed mistake made when refactoring logic away from base class
- From: Øyvind Kolås <ok src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gegl] Fixed mistake made when refactoring logic away from base class
- Date: Tue, 1 Dec 2009 01:48:49 +0000 (UTC)
commit 3441f0b7b34482d67ccc20ef00350e6112c03242
Author: �yvind Kolås <pippin gimp org>
Date: Tue Dec 1 01:20:32 2009 +0000
Fixed mistake made when refactoring logic away from base class
Enable passthrough
gegl/operation/gegl-operation-point-filter.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/gegl/operation/gegl-operation-point-filter.c b/gegl/operation/gegl-operation-point-filter.c
index 411d07e..ba4a126 100644
--- a/gegl/operation/gegl-operation-point-filter.c
+++ b/gegl/operation/gegl-operation-point-filter.c
@@ -59,7 +59,6 @@ gegl_operation_point_filter_class_init (GeglOperationPointFilterClass *klass)
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
operation_class->process = gegl_operation_point_filter_op_process;
- filter_class->process = gegl_operation_point_filter_process;
operation_class->prepare = prepare;
operation_class->no_cache = TRUE;
}
@@ -103,7 +102,6 @@ gboolean gegl_can_passthrough (GeglOperation *operation,
GeglBuffer *input,
const GeglRectangle *result)
{
- return FALSE;
if (!input ||
GEGL_IS_CACHE (input))
return FALSE;
@@ -144,10 +142,11 @@ static gboolean gegl_operation_point_filter_op_process
{
output = g_object_ref (input);
gegl_operation_context_take_object (context, "output", G_OBJECT (output));
-
}
-
- output = gegl_operation_context_get_target (context, "output");
+ else
+ {
+ output = gegl_operation_context_get_target (context, "output");
+ }
success = gegl_operation_point_filter_process (operation, input, output, roi);
if (output == GEGL_BUFFER (operation->node->cache))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]