libgimp: make gimp_tile_flush() internal as _gimp_tile_flush()

This commit is contained in:
Michael Natterer
2019-07-09 13:26:38 +02:00
parent 2a54b1b41c
commit ac4d0a6efe
4 changed files with 6 additions and 8 deletions

View File

@ -695,7 +695,6 @@ EXPORTS
gimp_text_layer_set_line_spacing
gimp_text_layer_set_text
gimp_tile_cache_ntiles
gimp_tile_flush
gimp_tile_height
gimp_tile_ref
gimp_tile_unref

View File

@ -130,7 +130,7 @@ gimp_drawable_flush (GimpDrawable *drawable)
for (i = 0; i < n_tiles; i++)
if ((tiles[i].ref_count > 0) && tiles[i].dirty)
gimp_tile_flush (&tiles[i]);
_gimp_tile_flush (&tiles[i]);
}
if (drawable->shadow_tiles)
@ -140,7 +140,7 @@ gimp_drawable_flush (GimpDrawable *drawable)
for (i = 0; i < n_tiles; i++)
if ((tiles[i].ref_count > 0) && tiles[i].dirty)
gimp_tile_flush (&tiles[i]);
_gimp_tile_flush (&tiles[i]);
}
/* nuke all references to this drawable from the cache */

View File

@ -120,14 +120,14 @@ gimp_tile_unref (GimpTile *tile,
if (tile->ref_count == 0)
{
gimp_tile_flush (tile);
_gimp_tile_flush (tile);
g_free (tile->data);
tile->data = NULL;
}
}
void
gimp_tile_flush (GimpTile *tile)
_gimp_tile_flush (GimpTile *tile)
{
g_return_if_fail (tile != NULL);

View File

@ -49,9 +49,6 @@ void gimp_tile_ref (GimpTile *tile);
GIMP_DEPRECATED
void gimp_tile_unref (GimpTile *tile,
gboolean dirty);
GIMP_DEPRECATED
void gimp_tile_flush (GimpTile *tile);
GIMP_DEPRECATED
void gimp_tile_cache_ntiles (gulong ntiles);
@ -61,6 +58,8 @@ void gimp_tile_cache_ntiles (gulong ntiles);
G_GNUC_INTERNAL void _gimp_tile_ref_nocache (GimpTile *tile,
gboolean init);
G_GNUC_INTERNAL void _gimp_tile_flush (GimpTile *tile);
G_GNUC_INTERNAL void _gimp_tile_cache_flush_drawable (GimpDrawable *drawable);