[gimp] app: do not render many tiles twice



commit 8ec824f15833e7e60e108f035914bc2dc28e0af5
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Sun Aug 11 08:49:38 2013 +0200

    app: do not render many tiles twice
    
    removing the area that is going to be rendered from the dirty area
    before rendering it, prevents tile-handler-projection to render it
    again.
    
    This was the reason why caching showed an improvement also during
    the construction of the projection. And it was a regression that
    I introduced in a previous commit

 app/core/gimpprojection.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/core/gimpprojection.c b/app/core/gimpprojection.c
index 8304bf5..cfe1907 100644
--- a/app/core/gimpprojection.c
+++ b/app/core/gimpprojection.c
@@ -702,12 +702,12 @@ gimp_projection_paint_area (GimpProjection *proj,
     {
       GeglNode *graph = gimp_projectable_get_graph (proj->projectable);
 
-      gegl_node_blit_buffer (graph, proj->buffer,
-                             GEGL_RECTANGLE (x1, y1, x2 - x1, y2 - y1));
-
       if (proj->validate_handler)
         gimp_tile_handler_projection_undo_invalidate (proj->validate_handler,
                                                       x1, y1, x2 - x1, y2 - y1);
+
+      gegl_node_blit_buffer (graph, proj->buffer,
+                             GEGL_RECTANGLE (x1, y1, x2 - x1, y2 - y1));
     }
 
   /*  add the projectable's offsets because the list of update areas


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