[gegl/gsoc2011-opencl-2: 14/22] 'opencl_support' property added to GeglOperation
- From: Victor Matheus de Araujo Oliveira <vmaolive src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/gsoc2011-opencl-2: 14/22] 'opencl_support' property added to GeglOperation
- Date: Mon, 5 Dec 2011 22:17:01 +0000 (UTC)
commit 724b1d9ab301b867c777c0a905cb6c08870f4ae8
Author: Victor Oliveira <victormatheus gmail com>
Date: Fri Nov 18 17:03:59 2011 -0200
'opencl_support' property added to GeglOperation
gegl/operation/gegl-operation.c | 1 +
gegl/operation/gegl-operation.h | 2 ++
operations/common/brightness-contrast.c | 1 +
3 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gegl/operation/gegl-operation.c b/gegl/operation/gegl-operation.c
index c327c7d..2b55642 100644
--- a/gegl/operation/gegl-operation.c
+++ b/gegl/operation/gegl-operation.c
@@ -60,6 +60,7 @@ gegl_operation_class_init (GeglOperationClass *klass)
klass->attach = attach;
klass->prepare = NULL;
klass->no_cache = FALSE;
+ klass->opencl_support = FALSE;
klass->get_bounding_box = get_bounding_box;
klass->get_invalidated_by_change = get_invalidated_by_change;
klass->get_required_for_output = get_required_for_output;
diff --git a/gegl/operation/gegl-operation.h b/gegl/operation/gegl-operation.h
index f392014..542d623 100644
--- a/gegl/operation/gegl-operation.h
+++ b/gegl/operation/gegl-operation.h
@@ -81,6 +81,8 @@ struct _GeglOperationClass
gboolean no_cache; /* do not create a cache for this operation */
+ gboolean opencl_support;
+
/* attach this operation with a GeglNode, override this if you are creating a
* GeglGraph, it is already defined for Filters/Sources/Composers.
*/
diff --git a/operations/common/brightness-contrast.c b/operations/common/brightness-contrast.c
index acc6df1..402c69a 100644
--- a/operations/common/brightness-contrast.c
+++ b/operations/common/brightness-contrast.c
@@ -197,6 +197,7 @@ gegl_chant_class_init (GeglChantClass *klass)
* programming/in XML
*/
operation_class->name = "gegl:brightness-contrast";
+ operation_class->opencl_support = TRUE;
/* a colon separated list of categories/tags for this operations */
operation_class->categories = "color";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]