don't invalidate in sinkscreen

it was called from a bg thread and could race when under heavy load, eg.
vipsdisp displaying animated jpg images
This commit is contained in:
John Cupitt 2021-06-06 16:53:00 +01:00
parent 5cc4e07af7
commit f39e2e271d
2 changed files with 1 additions and 11 deletions

View File

@ -211,6 +211,7 @@ static inline void *
vips_alloc_aligned( size_t sz, size_t align )
{
g_assert( !(align & (align - 1)) );
#ifdef HAVE__ALIGNED_MALLOC
return _aligned_malloc( sz, align );
#elif defined(HAVE_POSIX_MEMALIGN)

View File

@ -433,17 +433,6 @@ render_work( VipsThreadState *state, void *a )
}
tile->painted = TRUE;
/* All downstream images must drop caches, since we've (effectively)
* modified render->out.
*/
if( !render->shutdown )
vips_image_invalidate_all( render->out );
if( !render->shutdown &&
render->mask )
vips_image_invalidate_all( render->mask );
/* Now clients can update.
*/
if( !render->shutdown &&
render->notify )
render->notify( render->out, &tile->area, render->a );