[gimp/wip/tile-damage: 4/4] app: use gegl_tile_handler_damage_rect() in TileHandlerValidate
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/tile-damage: 4/4] app: use gegl_tile_handler_damage_rect() in TileHandlerValidate
- Date: Sat, 31 Mar 2018 16:12:21 +0000 (UTC)
commit d60b5089875044a2f05b871ab0cc5fc7e4fd0804
Author: Ell <ell_se yahoo com>
Date: Sat Mar 31 11:49:01 2018 -0400
app: use gegl_tile_handler_damage_rect() in TileHandlerValidate
app/gegl/gimptilehandlervalidate.c | 26 +-------------------------
1 files changed, 1 insertions(+), 25 deletions(-)
---
diff --git a/app/gegl/gimptilehandlervalidate.c b/app/gegl/gimptilehandlervalidate.c
index f62a6ad..9953fcc 100644
--- a/app/gegl/gimptilehandlervalidate.c
+++ b/app/gegl/gimptilehandlervalidate.c
@@ -382,31 +382,7 @@ gimp_tile_handler_validate_invalidate (GimpTileHandlerValidate *validate,
cairo_region_union_rectangle (validate->dirty_region,
(cairo_rectangle_int_t *) rect);
- if (validate->max_z > 0)
- {
- GeglTileSource *source = GEGL_TILE_SOURCE (validate);
- gint tile_x1 = rect->x / validate->tile_width;
- gint tile_y1 = rect->y / validate->tile_height;
- gint tile_x2 = (rect->x + rect->width - 1) /
- validate->tile_width + 1;
- gint tile_y2 = (rect->y + rect->height - 1) /
- validate->tile_height + 1;
- gint tile_x;
- gint tile_y;
- gint tile_z;
-
- for (tile_z = 1; tile_z <= validate->max_z; tile_z++)
- {
- tile_y1 = tile_y1 / 2;
- tile_y2 = (tile_y2 + 1) / 2;
- tile_x1 = tile_x1 / 2;
- tile_x2 = (tile_x2 + 1) / 2;
-
- for (tile_y = tile_y1; tile_y < tile_y2; tile_y++)
- for (tile_x = tile_x1; tile_x < tile_x2; tile_x++)
- gegl_tile_source_void (source, tile_x, tile_y, tile_z);
- }
- }
+ gegl_tile_handler_damage_rect (GEGL_TILE_HANDLER (validate), rect);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]