don't minimise after sink_screen expose
We were minimising at the end of threadpool_run, but this was being called for each sinkscreen render pass, so we were throwing away the display cache. Instead, minimise after sink, sink_memory and sink_disc.
This commit is contained in:
parent
7e961b4671
commit
34c17fc3e8
@ -3,6 +3,8 @@ master
|
||||
- version bump to 8.14
|
||||
- remove autotools
|
||||
- jp2ksave defaults to chroma subsample off
|
||||
- don't minimise sink_screen input after expose ... improves caching during
|
||||
interactive use
|
||||
|
||||
24/7/22 started 8.13.1
|
||||
- fix im7 feature detection in meson
|
||||
|
@ -573,10 +573,11 @@ vips_foreign_load_svg_generate( VipsRegion *or,
|
||||
int y;
|
||||
|
||||
#ifdef DEBUG
|
||||
printf( "vips_foreign_load_svg_generate:\n "
|
||||
"left = %d, top = %d, width = %d, height = %d\n",
|
||||
r->left, r->top, r->width, r->height );
|
||||
#endif /*DEBUG*/
|
||||
printf( "vips_foreign_load_svg_generate: %p \n "
|
||||
"left = %d, top = %d, width = %d, height = %d\n",
|
||||
svg,
|
||||
r->left, r->top, r->width, r->height );
|
||||
|
||||
/* rsvg won't always paint the background.
|
||||
*/
|
||||
|
@ -529,6 +529,8 @@ vips_sink_tile( VipsImage *im,
|
||||
|
||||
sink_free( &sink );
|
||||
|
||||
vips_image_minimise_all( im );
|
||||
|
||||
return( result );
|
||||
}
|
||||
|
||||
|
@ -535,5 +535,7 @@ vips_sink_disc( VipsImage *im, VipsRegionWrite write_fn, void *a )
|
||||
|
||||
write_free( &write );
|
||||
|
||||
vips_image_minimise_all( im );
|
||||
|
||||
return( result );
|
||||
}
|
||||
|
@ -345,6 +345,8 @@ vips_sink_memory( VipsImage *image )
|
||||
|
||||
sink_memory_free( &memory );
|
||||
|
||||
vips_image_minimise_all( image );
|
||||
|
||||
VIPS_DEBUG_MSG( "vips_sink_memory: done\n" );
|
||||
|
||||
return( result );
|
||||
|
@ -945,8 +945,6 @@ vips_threadpool_run( VipsImage *im,
|
||||
|
||||
vips_task_free( task );
|
||||
|
||||
vips_image_minimise_all( im );
|
||||
|
||||
return( result );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user