|
Blender V4.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 1725 of file render_preview.cc.
| PreviewLoadJob::PreviewLoadJob | ( | ) |
Definition at line 1757 of file render_preview.cc.
| PreviewLoadJob::~PreviewLoadJob | ( | ) |
Definition at line 1759 of file render_preview.cc.
References BLI_thread_queue_free().
|
static |
Definition at line 1764 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 1782 of file render_preview.cc.
References push_load_request().
Referenced by ED_preview_icon_render().
| void PreviewLoadJob::push_load_request | ( | PreviewImage * | preview, |
| eIconSizes | icon_size ) |
Definition at line 1794 of file render_preview.cc.
References BLI_assert, BLI_thread_queue_push(), PreviewImage::flag, PRV_RENDERING, PRV_TAG_DEFFERED_RENDERING, and PreviewImage::runtime.
Referenced by ED_preview_icon_job(), and load_jobless().