[gimp/gimp-2-10] app: clear priority rect when finishing projection rendering



commit fe5ee0f7b86466bd0b156a851b93bdab1d447bf2
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.
    
    (cherry picked from commit 9833da3431b8bb466924897152faf807974a6842)

 app/core/gimpprojection.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/app/core/gimpprojection.c b/app/core/gimpprojection.c
index d0a3037607..4f32d1f31e 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]