Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/kis_animation_frame_cache.cpp
Show First 20 Lines • Show All 275 Lines • ▼ Show 20 Line(s) | 275 | if (cacheChanged) { | |||
---|---|---|---|---|---|
276 | emit changed(); | 276 | emit changed(); | ||
277 | } | 277 | } | ||
278 | } | 278 | } | ||
279 | 279 | | |||
280 | void KisAnimationFrameCache::slotConfigChanged() | 280 | void KisAnimationFrameCache::slotConfigChanged() | ||
281 | { | 281 | { | ||
282 | m_d->newFrames.clear(); | 282 | m_d->newFrames.clear(); | ||
283 | 283 | | |||
284 | KisImageConfig cfg(true); | 284 | KisImageConfig cfg; | ||
285 | 285 | | |||
286 | if (cfg.useOnDiskAnimationCacheSwapping()) { | 286 | if (cfg.useOnDiskAnimationCacheSwapping()) { | ||
287 | m_d->swapper.reset(new KisFrameCacheSwapper(m_d->textures->updateInfoBuilder(), cfg.swapDir())); | 287 | m_d->swapper.reset(new KisFrameCacheSwapper(m_d->textures->updateInfoBuilder(), cfg.swapDir())); | ||
288 | } else { | 288 | } else { | ||
289 | m_d->swapper.reset(new KisInMemoryFrameCacheSwapper()); | 289 | m_d->swapper.reset(new KisInMemoryFrameCacheSwapper()); | ||
290 | } | 290 | } | ||
291 | 291 | | |||
292 | m_d->frameSizeLimit = cfg.useAnimationCacheFrameSizeLimit() ? cfg.animationCacheFrameSizeLimit() : 0; | 292 | m_d->frameSizeLimit = cfg.useAnimationCacheFrameSizeLimit() ? cfg.animationCacheFrameSizeLimit() : 0; | ||
▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines |