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:
parent
5cc4e07af7
commit
f39e2e271d
@ -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)
|
||||
|
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user