Blender V4.3
PreviewLoadJob Class Reference

Icon Preview

 PreviewLoadJob ()
 
 ~PreviewLoadJob ()
 
void push_load_request (PreviewImage *preview, eIconSizes icon_size)
 
static PreviewLoadJobensure_job (wmWindowManager *wm, wmWindow *win)
 
static void load_jobless (PreviewImage *preview, eIconSizes icon_size)
 

Detailed Description

Background job to manage requests for deferred loading of previews from the hard drive.

Launches a single job to manage all incoming preview requests. The job is kept running until all preview requests are done loading (or it's otherwise aborted, e.g. by closing Blender).

Note that this will use the OS thumbnail cache, i.e. load a preview from there or add it if not there yet. These two cases may lead to different performance.

Definition at line 1725 of file render_preview.cc.

Constructor & Destructor Documentation

◆ PreviewLoadJob()

PreviewLoadJob::PreviewLoadJob ( )

Definition at line 1757 of file render_preview.cc.

◆ ~PreviewLoadJob()

PreviewLoadJob::~PreviewLoadJob ( )

Definition at line 1759 of file render_preview.cc.

References BLI_thread_queue_free().

Member Function Documentation

◆ ensure_job()

◆ load_jobless()

void PreviewLoadJob::load_jobless ( PreviewImage * preview,
eIconSizes icon_size )
static

Definition at line 1782 of file render_preview.cc.

References push_load_request().

Referenced by ED_preview_icon_render().

◆ push_load_request()

void PreviewLoadJob::push_load_request ( PreviewImage * preview,
eIconSizes icon_size )

The documentation for this class was generated from the following file: