| 140 | } |
| 141 | |
| 142 | void PreviewsCache::unload(bool isReloading) |
| 143 | { |
| 144 | // Wait for flush end |
| 145 | if (IsFlushing()) |
| 146 | { |
| 147 | _flushTask->Cancel(); |
| 148 | } |
| 149 | |
| 150 | // Release data |
| 151 | _assets.Clear(); |
| 152 | |
| 153 | SpriteAtlas::unload(isReloading); |
| 154 | } |
| 155 | |
| 156 | AssetChunksFlag PreviewsCache::getChunksToPreload() const |
| 157 | { |