File indexing completed on 2024-04-28 04:21:31

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_GRADIENT_BENCHMARK_H
0008 #define KIS_GRADIENT_BENCHMARK_H
0009 
0010 #include <KoColor.h>
0011 
0012 #include <kis_types.h>
0013 #include <simpletest.h>
0014 #include <kis_paint_device.h>
0015 
0016 class KoColor;
0017 
0018 class KisGradientBenchmark : public QObject
0019 {
0020     Q_OBJECT
0021 private:
0022     const KoColorSpace * m_colorSpace;
0023     KoColor m_color;
0024     KisPaintDeviceSP m_device;        
0025     int m_startX;
0026     int m_startY;
0027     
0028 private Q_SLOTS:
0029     void initTestCase();
0030     void cleanupTestCase();
0031     
0032     void benchmarkGradient();
0033     
0034     
0035     
0036 };
0037 
0038 #endif