Revert "app: make GimpTileHandlerValidate thread safe"

This reverts commit 4bd118ec8a.

The mutex introduced by the above commit should no longer be
necessary, after GEGL commit
8b034c437b0162b26f85eb80867914977ac3cf57.
This commit is contained in:
Ell 2017-11-24 14:07:29 -05:00
parent 35b0f6102e
commit eeddd13209
2 changed files with 1 additions and 10 deletions

View File

@ -106,7 +106,6 @@ gimp_tile_handler_validate_init (GimpTileHandlerValidate *validate)
source->command = gimp_tile_handler_validate_command;
g_mutex_init (&validate->mutex);
validate->dirty_region = cairo_region_create ();
}
@ -117,7 +116,6 @@ gimp_tile_handler_validate_finalize (GObject *object)
g_clear_object (&validate->graph);
g_clear_pointer (&validate->dirty_region, cairo_region_destroy);
g_mutex_clear (&validate->mutex);
G_OBJECT_CLASS (parent_class)->finalize (object);
}
@ -323,13 +321,7 @@ gimp_tile_handler_validate_command (GeglTileSource *source,
retval = gegl_tile_handler_source_command (source, command, x, y, z, data);
if (command == GEGL_TILE_GET && z == 0)
{
g_mutex_lock (&validate->mutex);
retval = gimp_tile_handler_validate_validate (source, retval, x, y);
g_mutex_unlock (&validate->mutex);
}
retval = gimp_tile_handler_validate_validate (source, retval, x, y);
return retval;
}

View File

@ -42,7 +42,6 @@ struct _GimpTileHandlerValidate
{
GeglTileHandler parent_instance;
GMutex mutex;
GeglNode *graph;
cairo_region_t *dirty_region;
const Babl *format;