Krita Source Code Documentation
Loading...
Searching...
No Matches
KisDabRenderingQueueCache.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISDABRENDERINGQUEUECACHE_H
8#define KISDABRENDERINGQUEUECACHE_H
9
11#include "kis_dab_cache_base.h"
12
13#include "kritadefaultpaintops_export.h"
14
15class KRITADEFAULTPAINTOPS_EXPORT KisDabRenderingQueueCache : public KisDabRenderingQueue::CacheInterface, public KisDabCacheBase
16{
17public:
18
19public:
22
23 void getDabType(bool hasDabInCache,
26 /* out */
28 bool *shouldUseCache) override;
29
31
32private:
33 struct Private;
34 QScopedPointer<Private> m_d;
35};
36
37#endif // KISDABRENDERINGQUEUECACHE_H
The KisDabCacheBase class provides caching for dabs into the brush paintop.
QScopedPointer< Private > m_d
virtual void getDabType(bool hasDabInCache, KisDabCacheUtils::DabRenderingResources *resources, const KisDabCacheUtils::DabRequestInfo &request, KisDabCacheUtils::DabGenerationInfo *di, bool *shouldUseCache)=0
virtual bool hasSeparateOriginal(KisDabCacheUtils::DabRenderingResources *resources) const =0