Blender V5.0
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 1735 of file render_preview.cc.

Constructor & Destructor Documentation

◆ PreviewLoadJob()

PreviewLoadJob::PreviewLoadJob ( )

Definition at line 1777 of file render_preview.cc.

References BLI_thread_queue_init().

Referenced by ensure_job(), and load_jobless().

◆ ~PreviewLoadJob()

PreviewLoadJob::~PreviewLoadJob ( )

Definition at line 1779 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 1802 of file render_preview.cc.

References PreviewLoadJob(), and push_load_request().

Referenced by ED_preview_icon_render().

◆ push_load_request()


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