[gegl/threaded-base-classes: 12/13] ops: opt ops out of parallelization
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/threaded-base-classes: 12/13] ops: opt ops out of parallelization
- Date: Thu, 26 Jun 2014 22:46:01 +0000 (UTC)
commit 6796664614f1c28b6eff9796ea978a480d3bf793
Author: Øyvind Kolås <pippin gimp org>
Date: Fri Jun 27 00:13:30 2014 +0200
ops: opt ops out of parallelization
operations/common/apply-lens.c | 6 ++++++
operations/common/fattal02.c | 1 +
operations/common/image-compare.c | 1 +
operations/common/mantiuk06.c | 1 +
operations/common/reinhard05.c | 1 +
operations/common/softglow.c | 1 +
6 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/operations/common/apply-lens.c b/operations/common/apply-lens.c
index 809c39c..9b648f0 100644
--- a/operations/common/apply-lens.c
+++ b/operations/common/apply-lens.c
@@ -293,6 +293,12 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->prepare = prepare;
operation_class->get_cached_region = get_cached_region;
+
+ /* XXX: op should be possible to fix so that it works
+ * with threads, making it possible for parallelize to be
+ * TRUE.
+ */
+ operation_class->parallelize = FALSE;
filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
diff --git a/operations/common/fattal02.c b/operations/common/fattal02.c
index 069adc4..70a176e 100644
--- a/operations/common/fattal02.c
+++ b/operations/common/fattal02.c
@@ -1320,6 +1320,7 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->prepare = fattal02_prepare;
operation_class->get_required_for_output = fattal02_get_required_for_output;
operation_class->get_cached_region = fattal02_get_cached_region;
+ operation_class->parallelize = FALSE;
gegl_operation_class_set_keys (operation_class,
"name" , "gegl:fattal02",
diff --git a/operations/common/image-compare.c b/operations/common/image-compare.c
index b58bd6c..fbef486 100644
--- a/operations/common/image-compare.c
+++ b/operations/common/image-compare.c
@@ -196,6 +196,7 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->prepare = prepare;
operation_class->get_required_for_output = get_required_for_output;
operation_class->get_cached_region = get_cached_region;
+ operation_class->parallelize = FALSE;
composer_class->process = process;
gegl_operation_class_set_keys (operation_class,
diff --git a/operations/common/mantiuk06.c b/operations/common/mantiuk06.c
index b68bc31..3e0bfbd 100644
--- a/operations/common/mantiuk06.c
+++ b/operations/common/mantiuk06.c
@@ -1631,6 +1631,7 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->prepare = mantiuk06_prepare;
operation_class->get_required_for_output = mantiuk06_get_required_for_output;
operation_class->get_cached_region = mantiuk06_get_cached_region;
+ operation_class->parallelize = FALSE;
gegl_operation_class_set_keys (operation_class,
"name", "gegl:mantiuk06",
diff --git a/operations/common/reinhard05.c b/operations/common/reinhard05.c
index 83cae95..36471e4 100644
--- a/operations/common/reinhard05.c
+++ b/operations/common/reinhard05.c
@@ -266,6 +266,7 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->prepare = reinhard05_prepare;
operation_class->get_required_for_output = reinhard05_get_required_for_output;
operation_class->get_cached_region = reinhard05_get_cached_region;
+ operation_class->parallelize = FALSE;
gegl_operation_class_set_keys (operation_class,
"name", "gegl:reinhard05",
diff --git a/operations/common/softglow.c b/operations/common/softglow.c
index 06a9e7e..1ef8d57 100644
--- a/operations/common/softglow.c
+++ b/operations/common/softglow.c
@@ -223,6 +223,7 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->prepare = prepare;
operation_class->get_bounding_box = get_bounding_box;
+ operation_class->parallelize = FALSE;
filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]