[gimp] app: disable brush blur caching



commit 810f1fc72219c64685c24b016a1584b991704aad
Author: Ell <ell_se yahoo com>
Date:   Sat Apr 8 04:59:51 2017 -0400

    app: disable brush blur caching
    
    Blurring is much faster now, and the cache mostly gets in the way.
    This is a quick hack to disable blur caching for now.

 app/core/gimpbrush.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpbrush.c b/app/core/gimpbrush.c
index 6fd8ca9..dff9464 100644
--- a/app/core/gimpbrush.c
+++ b/app/core/gimpbrush.c
@@ -685,6 +685,7 @@ gimp_brush_transform_mask (GimpBrush *brush,
         }
       else
         {
+#if 0
           /* This code makes sure that brushes using blur for hardness
            * (all of them but generated) are blurred once and no more.
            * It also makes hardnes dynamics not work for these brushes.
@@ -706,6 +707,7 @@ gimp_brush_transform_mask (GimpBrush *brush,
             {
               effective_hardness = 1.0; /*Hardness has already been applied*/
             }
+#endif
 
           mask = GIMP_BRUSH_GET_CLASS (brush)->transform_mask (brush,
                                                                scale,
@@ -787,6 +789,7 @@ gimp_brush_transform_pixmap (GimpBrush *brush,
         }
       else
         {
+#if 0
          if (! brush->priv->blured_pixmap &&
              ! GIMP_IS_BRUSH_GENERATED(brush) &&
              ! GIMP_IS_BRUSH_PIPE(brush) /*Cant cache pipes. Sanely anway*/
@@ -803,6 +806,7 @@ gimp_brush_transform_pixmap (GimpBrush *brush,
           if (brush->priv->blured_pixmap) {
             effective_hardness = 1.0; /*Hardness has already been applied*/
           }
+#endif
 
           pixmap = GIMP_BRUSH_GET_CLASS (brush)->transform_pixmap (brush,
                                                                    scale,
@@ -926,6 +930,7 @@ gimp_brush_get_pixmap (GimpBrush *brush)
 void
 gimp_brush_flush_blur_caches (GimpBrush *brush)
 {
+#if 0
   if (brush->priv->blured_mask)
     {
       gimp_temp_buf_unref (brush->priv->blured_mask);
@@ -946,7 +951,7 @@ gimp_brush_flush_blur_caches (GimpBrush *brush)
 
   if (brush->priv->boundary_cache)
     gimp_brush_cache_clear (brush->priv->boundary_cache);
-
+#endif
 }
 
 gdouble


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