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
|
- version bump to 8.14
|
||||||
- remove autotools
|
- remove autotools
|
||||||
- jp2ksave defaults to chroma subsample off
|
- 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
|
24/7/22 started 8.13.1
|
||||||
- fix im7 feature detection in meson
|
- fix im7 feature detection in meson
|
||||||
|
@ -573,10 +573,11 @@ vips_foreign_load_svg_generate( VipsRegion *or,
|
|||||||
int y;
|
int y;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#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*/
|
#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.
|
/* rsvg won't always paint the background.
|
||||||
*/
|
*/
|
||||||
|
@ -529,6 +529,8 @@ vips_sink_tile( VipsImage *im,
|
|||||||
|
|
||||||
sink_free( &sink );
|
sink_free( &sink );
|
||||||
|
|
||||||
|
vips_image_minimise_all( im );
|
||||||
|
|
||||||
return( result );
|
return( result );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -535,5 +535,7 @@ vips_sink_disc( VipsImage *im, VipsRegionWrite write_fn, void *a )
|
|||||||
|
|
||||||
write_free( &write );
|
write_free( &write );
|
||||||
|
|
||||||
|
vips_image_minimise_all( im );
|
||||||
|
|
||||||
return( result );
|
return( result );
|
||||||
}
|
}
|
||||||
|
@ -345,6 +345,8 @@ vips_sink_memory( VipsImage *image )
|
|||||||
|
|
||||||
sink_memory_free( &memory );
|
sink_memory_free( &memory );
|
||||||
|
|
||||||
|
vips_image_minimise_all( image );
|
||||||
|
|
||||||
VIPS_DEBUG_MSG( "vips_sink_memory: done\n" );
|
VIPS_DEBUG_MSG( "vips_sink_memory: done\n" );
|
||||||
|
|
||||||
return( result );
|
return( result );
|
||||||
|
@ -945,8 +945,6 @@ vips_threadpool_run( VipsImage *im,
|
|||||||
|
|
||||||
vips_task_free( task );
|
vips_task_free( task );
|
||||||
|
|
||||||
vips_image_minimise_all( im );
|
|
||||||
|
|
||||||
return( result );
|
return( result );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user