[gimp/goat-invasion: 26/526] app: release tile with dirty flag in gegl tile backend
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 26/526] app: release tile with dirty flag in gegl tile backend
- Date: Sun, 22 Apr 2012 13:01:27 +0000 (UTC)
commit 9a766fd0be9b8cb6817c8fa62f0f8815c2298cce
Author: Ãyvind KolÃs <pippin gimp org>
Date: Wed Mar 14 20:15:01 2012 +0000
app: release tile with dirty flag in gegl tile backend
We always modify tiles so behave correctly.
app/gegl/gimptilebackendtilemanager.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/app/gegl/gimptilebackendtilemanager.c b/app/gegl/gimptilebackendtilemanager.c
index fec82b1..ac4c85a 100644
--- a/app/gegl/gimptilebackendtilemanager.c
+++ b/app/gegl/gimptilebackendtilemanager.c
@@ -216,9 +216,11 @@ gimp_tile_write (GimpTileBackendTileManager *backend_tm,
if (!gimp_tile)
return;
+ /* if the memory pointer already points to the data, there is
+ * no point in copying it
+ */
if (source != tile_data_pointer (gimp_tile, 0, 0))
{
- /* only copy when we are not 0 copy */
tile_stride = TILE_WIDTH * tile_bpp (gimp_tile);
gimp_tile_stride = tile_ewidth (gimp_tile) * tile_bpp (gimp_tile);
@@ -230,7 +232,7 @@ gimp_tile_write (GimpTileBackendTileManager *backend_tm,
}
}
- tile_release (gimp_tile, FALSE);
+ tile_release (gimp_tile, TRUE);
}
GeglTileBackend *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]