[gegl] operation-reference: add custom "opencl" query



commit da2c3a7006e44c43024df1e6cc0a7d371df23415
Author: Øyvind Kolås <pippin gimp org>
Date:   Sun May 25 18:06:23 2014 +0200

    operation-reference: add custom "opencl" query

 docs/operations.html |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/docs/operations.html b/docs/operations.html
index 6b766a5..198791a 100644
--- a/docs/operations.html
+++ b/docs/operations.html
@@ -162,6 +162,10 @@ function filter_db(query)
     var score = 0;
     var uop_name = op.op.toUpperCase ();
 
+    /* ad-hoc opencl query */
+    if (query == 'opencl' && op['opencl-support'])
+      score += 20;
+
     if (opdb[i].parent == query) score += 100;
 
     if (op.op.indexOf(query) == 0)           score += 1000;
@@ -370,12 +374,12 @@ function render_all ()
 
 function render_list_big (items)
 {
-  return '<div class="big">' + render_list2 (items, 20) + '</div>';
+  return '<div class="big">' + render_list2 (items, 23) + '</div>';
 }
 
 function render_list_small (items)
 {
-  return '<div class="small">' + render_list2 (items, 30) + '</div>';
+  return '<div class="small">' + render_list2 (items, 42) + '</div>';
 }
 
 function render_categories ()
@@ -458,7 +462,7 @@ function show_matches(e)
     else
     result += render_list_big (items);
   }
-  else if (items.length < 20)
+  else if (items.length < 23)
   {
     result += render_list_big (items);
   }


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