File indexing completed on 2025-01-26 04:11:17
0001 /* 0002 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "KisDabRenderingQueueCache.h" 0008 0009 struct KisDabRenderingQueueCache::Private 0010 { 0011 Private() 0012 { 0013 } 0014 }; 0015 0016 KisDabRenderingQueueCache::KisDabRenderingQueueCache() 0017 : m_d(new Private()) 0018 { 0019 } 0020 0021 KisDabRenderingQueueCache::~KisDabRenderingQueueCache() 0022 { 0023 } 0024 0025 void KisDabRenderingQueueCache::getDabType(bool hasDabInCache, KisDabCacheUtils::DabRenderingResources *resources, const KisDabCacheUtils::DabRequestInfo &request, KisDabCacheUtils::DabGenerationInfo *di, bool *shouldUseCache) 0026 { 0027 fetchDabGenerationInfo(hasDabInCache, resources, request, di, shouldUseCache); 0028 } 0029 0030 bool KisDabRenderingQueueCache::hasSeparateOriginal(KisDabCacheUtils::DabRenderingResources *resources) const 0031 { 0032 return needSeparateOriginal(resources->textureOption.data(), resources->sharpnessOption.data()); 0033 }