[gimp/metadata-browser] app: release tile with dirty flag in gegl tile backend
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app: release tile with dirty flag in gegl tile backend
- Date: Wed, 12 Sep 2012 23:08:38 +0000 (UTC)
commit f948e9fe1ff4863bb8d5ebe9fc5be2f7771fba2e
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]