File indexing completed on 2025-02-16 04:05:07
0001 /* 0002 * SPDX-FileCopyrightText: 2010 Lukáš Tvrdý lukast.dev @gmail.com 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KIS_PAINTER_BENCHMARK_H 0008 #define KIS_PAINTER_BENCHMARK_H 0009 0010 #include <simpletest.h> 0011 0012 #include <KoColor.h> 0013 0014 #include <kis_types.h> 0015 0016 0017 0018 class KisPainterBenchmark : public QObject 0019 { 0020 Q_OBJECT 0021 private: 0022 const KoColorSpace * m_colorSpace; 0023 KoColor m_color; 0024 QVector<QPointF> m_points; 0025 0026 private Q_SLOTS: 0027 void initTestCase(); 0028 void cleanupTestCase(); 0029 0030 void benchmarkBitBlt(); 0031 void benchmarkFastBitBlt(); 0032 void benchmarkBitBltSelection(); 0033 void benchmarkFixedBitBlt(); 0034 void benchmarkFixedBitBltSelection(); 0035 0036 void benchmarkDrawThickLine(); 0037 void benchmarkDrawQtLine(); 0038 void benchmarkDrawScanLine(); 0039 0040 void benchmarkBitBlt2(); 0041 void benchmarkBitBltOldData(); 0042 void benchmarkMassiveBltFixed(); 0043 0044 0045 }; 0046 0047 #endif