[gegl/gsoc2011-opencl-2: 14/19] 'opencl_support' property added to GeglOperation



commit 90ff8e965f1891fd8c4f7bda2e0477b85cb9406a
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 e32ba54..7da7467 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]