[gegl] buffer: use GEGL_ITERATOR_NO_NOTIFY in gegl_buffer_set_color_from_pixel_rect()



commit b67bc9af748bcb7fc83725034f56db0bf3e22d17
Author: Ell <ell_se yahoo com>
Date:   Sat Jan 19 11:11:39 2019 -0500

    buffer: use GEGL_ITERATOR_NO_NOTIFY in gegl_buffer_set_color_from_pixel_rect()
    
    ... since gegl_buffer_foreach_tile(), called by
    gegl_buffer_set_color_from_pixel(), already emits a single "update"
    signal for the entire ROI.

 gegl/buffer/gegl-buffer-access.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index 4c73efb1e..dea7a69ae 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -2936,7 +2936,8 @@ gegl_buffer_set_color_from_pixel_rect (GeglBuffer            *dst,
   GeglBufferIterator *i;
 
   i = gegl_buffer_iterator_new (dst, dst_rect, 0, dst->soft_format,
-                                GEGL_ACCESS_WRITE, GEGL_ABYSS_NONE, 1);
+                                GEGL_ACCESS_WRITE,
+                                GEGL_ABYSS_NONE | GEGL_ITERATOR_NO_NOTIFY, 1);
   while (gegl_buffer_iterator_next (i))
     {
       gegl_memset_pattern (i->items[0].data,


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