[gimp/goat-invasion: 26/401] 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/401] app: release tile with dirty flag in gegl tile backend
- Date: Mon, 2 Apr 2012 11:50:19 +0000 (UTC)
commit 9535e001b110e710580ae2b37fc9b59edec0de16
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]