Warning, file /graphics/krita/libs/image/tiles3/tests/kis_tiled_data_manager_test.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * SPDX-FileCopyrightText: 2010 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #ifndef KIS_TILED_DATA_MANAGER_TEST_H 0007 #define KIS_TILED_DATA_MANAGER_TEST_H 0008 0009 #include <simpletest.h> 0010 0011 class KisTiledDataManager; 0012 0013 class KisTiledDataManagerTest : public QObject 0014 { 0015 Q_OBJECT 0016 0017 private: 0018 bool checkHole(quint8* buffer, quint8 holeColor, QRect holeRect, 0019 quint8 backgroundColor, QRect backgroundRect); 0020 0021 bool checkTilesShared(KisTiledDataManager *srcDM, 0022 KisTiledDataManager *dstDM, 0023 bool takeOldSrc, bool takeOldDst, 0024 QRect tilesRect); 0025 0026 bool checkTilesNotShared(KisTiledDataManager *srcDM, 0027 KisTiledDataManager *dstDM, 0028 bool takeOldSrc, bool takeOldDst, 0029 QRect tilesRect); 0030 0031 void benchmarkCOWImpl(); 0032 0033 private Q_SLOTS: 0034 void testUndoingNewTiles(); 0035 void testPurgedAndEmptyTransactions(); 0036 void testUnversionedBitBlt(); 0037 void testVersionedBitBlt(); 0038 void testBitBltOldData(); 0039 void testBitBltRough(); 0040 void testTransactions(); 0041 void testPurgeHistory(); 0042 void testUndoSetDefaultPixel(); 0043 0044 void benchmarkReadOnlyTileLazy(); 0045 void benchmarkSharedPointers(); 0046 0047 void benchmarkCOWNoPooler(); 0048 void benchmarkCOWWithPooler(); 0049 0050 void stressTest(); 0051 0052 void stressTestLazyCopying(); 0053 0054 void stressTestExtentsColumn(); 0055 0056 void benchmarkQRegion(); 0057 void benchmarkKisRegion(); 0058 void benchmarkOverlappedKisRegion(); 0059 }; 0060 0061 #endif /* KIS_TILED_DATA_MANAGER_TEST_H */ 0062