Blender
V3.3
|
Icon Preview | |
PreviewLoadJob () | |
~PreviewLoadJob () | |
void | push_load_request (PreviewImage *preview, eIconSizes icon_size) |
static PreviewLoadJob & | ensure_job (wmWindowManager *wm, wmWindow *win) |
static void | load_jobless (PreviewImage *preview, eIconSizes icon_size) |
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.
PreviewLoadJob::PreviewLoadJob | ( | ) |
Definition at line 1751 of file render_preview.cc.
PreviewLoadJob::~PreviewLoadJob | ( | ) |
Definition at line 1755 of file render_preview.cc.
References BLI_thread_queue_free().
|
static |
Definition at line 1760 of file render_preview.cc.
References NC_WINDOW, WM_JOB_TYPE_LOAD_PREVIEW, WM_jobs_callbacks(), WM_jobs_customdata_get(), WM_jobs_customdata_set(), WM_jobs_get(), WM_jobs_is_running(), WM_jobs_start(), and WM_jobs_timer().
Referenced by ED_preview_icon_job().
|
static |
Definition at line 1777 of file render_preview.cc.
References usdtokens::preview(), and push_load_request().
Referenced by ED_preview_icon_render().
void PreviewLoadJob::push_load_request | ( | PreviewImage * | preview, |
eIconSizes | icon_size | ||
) |
Definition at line 1790 of file render_preview.cc.
References BLI_assert, BLI_thread_queue_push(), usdtokens::preview(), PRV_RENDERING, PRV_TAG_DEFFERED, and PRV_TAG_DEFFERED_RENDERING.
Referenced by ED_preview_icon_job(), and load_jobless().