pub trait ImageCacheFactory: Sync + Send {
// Required method
fn create(
&self,
webview_id: WebViewId,
pipeline_id: PipelineId,
compositor_api: &CrossProcessCompositorApi,
) -> Arc<dyn ImageCache>;
}Expand description
A shared ImageCacheFactory is a per-process data structure used to create an ImageCache
inside that process in any ScriptThread. This allows sharing the same font database (for
SVGs) and also decoding thread pool among all ImageCaches in the same process.