|
Krita Source Code Documentation
|
#include <KoColorConversionCache.h>
Classes | |
| struct | CachedTransformation |
| struct | Private |
Public Member Functions | |
| KoCachedColorConversionTransformation | cachedConverter (const KoColorSpace *src, const KoColorSpace *dst, KoColorConversionTransformation::Intent _renderingIntent, KoColorConversionTransformation::ConversionFlags conversionFlags) |
| void | colorSpaceIsDestroyed (const KoColorSpace *src) |
| KoColorConversionCache () | |
| ~KoColorConversionCache () | |
Private Attributes | |
| Private *const | d |
This class holds a cache of KoColorConversionTransformations.
This class is not part of public API, and can be changed without notice.
Definition at line 20 of file KoColorConversionCache.h.
| KoColorConversionCache::KoColorConversionCache | ( | ) |
Definition at line 74 of file KoColorConversionCache.cpp.
| KoColorConversionCache::~KoColorConversionCache | ( | ) |
Definition at line 78 of file KoColorConversionCache.cpp.
References KoColorConversionCache::Private::cache, and d.
| KoCachedColorConversionTransformation KoColorConversionCache::cachedConverter | ( | const KoColorSpace * | src, |
| const KoColorSpace * | dst, | ||
| KoColorConversionTransformation::Intent | _renderingIntent, | ||
| KoColorConversionTransformation::ConversionFlags | conversionFlags ) |
This function returns a cached color transformation if available or create one.
| src | source color space |
| dst | destination color space |
| _renderingIntent | rendering intent |
| conversionFlags | conversion flags |
Definition at line 86 of file KoColorConversionCache.cpp.
References KoColorConversionCache::Private::cache, KoColorConversionCache::Private::cacheMutex, d, KoColorConversionCache::Private::fastStorage, KoColorConversionTransformation::setDstColorSpace(), KoColorConversionTransformation::setSrcColorSpace(), and KoColorConversionCache::CachedTransformation::transfo.
| void KoColorConversionCache::colorSpaceIsDestroyed | ( | const KoColorSpace * | src | ) |
This function is called by the destructor of the color space to warn the cache that any pointers to this color space is going to be invalid and that the cache needs to stop using those pointers.
| src | source color space |
Definition at line 126 of file KoColorConversionCache.cpp.
References KoColorConversionCache::Private::cache, KoColorConversionCache::Private::cacheMutex, d, and KoColorConversionCache::Private::fastStorage.
|
private |
Definition at line 50 of file KoColorConversionCache.h.