MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Flush

Method Flush

Source/Editor/Content/PreviewsCache.cpp:222–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222void PreviewsCache::Flush()
223{
224 ScopeLock lock(Locker);
225
226 // Check if is fully loaded and is dirty and is not during downloading
227 if (_isDirty && !IsFlushing() && IsReady())
228 {
229 // Spawn flushing tasks sequence
230 _flushTask = New<FlushTask>(this);
231 auto downloadDataTask = GetTexture()->DownloadDataAsync(_flushTask->GetData());
232 downloadDataTask->ContinueWith(_flushTask);
233 downloadDataTask->Start();
234 }
235}
236
237#if COMPILE_WITH_ASSETS_IMPORTER
238

Callers

nothing calls this directly

Calls 6

GetTextureFunction · 0.85
ContinueWithMethod · 0.80
IsReadyFunction · 0.50
DownloadDataAsyncMethod · 0.45
GetDataMethod · 0.45
StartMethod · 0.45

Tested by

no test coverage detected