Blender  V3.3
Classes | List of all members
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 1719 of file render_preview.cc.

Constructor & Destructor Documentation

◆ PreviewLoadJob()

PreviewLoadJob::PreviewLoadJob ( )

Definition at line 1751 of file render_preview.cc.

◆ ~PreviewLoadJob()

PreviewLoadJob::~PreviewLoadJob ( )

Definition at line 1755 of file render_preview.cc.

References BLI_thread_queue_free().

Member Function Documentation

◆ ensure_job()

PreviewLoadJob & PreviewLoadJob::ensure_job ( wmWindowManager wm,
wmWindow win 
)
static

◆ load_jobless()

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

Definition at line 1777 of file render_preview.cc.

References usdtokens::preview(), and 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: