[gegl] operations: Remove calls to gegl_buffer_flush



commit 040b2e21d4cf9882e425becf7c664047d2b26c61
Author: Daniel Sabo <DanielSabo gmail com>
Date:   Wed Mar 12 08:06:47 2014 -0700

    operations: Remove calls to gegl_buffer_flush
    
    These calls existed to cover some old bugs in Gimp's tile
    handling but are now just causing unnecessary swap tile
    writes. (If anything breaks because of this change that
    code needs to explicitly call buffer_flush itself, instead
    of relying on the operations to do it.)

 operations/common/mirrors.c      |    2 --
 operations/common/whirl-pinch.c  |    2 --
 operations/common/write-buffer.c |    2 --
 3 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/operations/common/mirrors.c b/operations/common/mirrors.c
index 178de2f..d73c24f 100644
--- a/operations/common/mirrors.c
+++ b/operations/common/mirrors.c
@@ -252,8 +252,6 @@ apply_mirror (double               mirror_angle,
   /* Store dst pixels. */
   gegl_buffer_set (dst, roi, 0, format, dst_buf, GEGL_AUTO_ROWSTRIDE);
 
-  gegl_buffer_flush(dst);
-
   /* Free acquired storage. */
 #ifdef DO_NOT_USE_BUFFER_SAMPLE
   g_free (src_buf);
diff --git a/operations/common/whirl-pinch.c b/operations/common/whirl-pinch.c
index afa9e43..094b0c4 100644
--- a/operations/common/whirl-pinch.c
+++ b/operations/common/whirl-pinch.c
@@ -183,8 +183,6 @@ apply_whirl_pinch (gdouble              whirl,
   /* Store dst pixels. */
   gegl_buffer_set (dst, roi, 0, format, dst_buf, GEGL_AUTO_ROWSTRIDE);
 
-  gegl_buffer_flush(dst);
-
   g_free (dst_buf);
   g_object_unref (sampler);
 }
diff --git a/operations/common/write-buffer.c b/operations/common/write-buffer.c
index eafd1b1..103ea54 100644
--- a/operations/common/write-buffer.c
+++ b/operations/common/write-buffer.c
@@ -109,8 +109,6 @@ process (GeglOperation       *operation,
         }
       else
         gegl_buffer_copy (input, result, output, result);
-
-      gegl_buffer_flush (output);
     }
 
   return TRUE;


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