[gimp] app: clear priority rect when finishing projection rendering



commit 9833da3431b8bb466924897152faf807974a6842
Author: Ell <ell_se yahoo com>
Date:   Sun Jan 13 08:20:40 2019 -0500

    app: clear priority rect when finishing projection rendering
    
    In gimp_projection_finish_draw(), clear the chunk iterator's
    priority rect before finishing rendering, since it's not needed at
    this point, and this is slightly more efficient.

 app/core/gimpprojection.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/app/core/gimpprojection.c b/app/core/gimpprojection.c
index 6e2516e55c..103f9adb02 100644
--- a/app/core/gimpprojection.c
+++ b/app/core/gimpprojection.c
@@ -565,6 +565,8 @@ gimp_projection_finish_draw (GimpProjection *proj)
 
   if (proj->priv->iter)
     {
+      gimp_chunk_iterator_set_priority_rect (proj->priv->iter, NULL);
+
       gimp_tile_handler_validate_begin_validate (proj->priv->validate_handler);
 
       while (gimp_projection_chunk_render_iteration (proj));


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