MCPcopy Create free account
hub / github.com/FastLED/FastLED / setCachingEnabled

Method setCachingEnabled

src/fl/gfx/corkscrew.cpp.hpp:196–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196void Corkscrew::setCachingEnabled(bool enabled) {
197 if (!enabled && mCachingEnabled) {
198 // Caching was enabled, now disabling - clear the cache
199 mTileCache.clear();
200 mCacheInitialized = false;
201 }
202 mCachingEnabled = enabled;
203}
204
205void Corkscrew::initializeCache() const {
206 if (!mCacheInitialized && mCachingEnabled) {

Callers 3

FL_TEST_FILEFunction · 0.80
setupFunction · 0.80
loopFunction · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected