1 /*
2  *  Copyright (c) 2007 Sven Langkamp <sven.langkamp@gmail.com>
3  *
4  *  This program is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation; either version 2 of the License, or
7  *  (at your option) any later version.
8  *
9  *  This program is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with this program; if not, write to the Free Software
16  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  */
18 
19 #ifndef KIS_PAINTER_TEST_H
20 #define KIS_PAINTER_TEST_H
21 
22 #include <QtTest>
23 
24 class KoColorSpace;
25 
26 class KisPainterTest : public QObject
27 {
28     Q_OBJECT
29 
30 private:
31 
32     void allCsApplicator(void (KisPainterTest::* funcPtr)(const KoColorSpace*cs));
33     void testSimpleBlt(const KoColorSpace * cs);
34     void testPaintDeviceBltSelection(const KoColorSpace * cs);
35     void testPaintDeviceBltSelectionIrregular(const KoColorSpace * cs);
36     void testPaintDeviceBltSelectionInverted(const KoColorSpace * cs);
37 
38     void checkPerformance();
39 
40 
41 private Q_SLOTS:
42 
43     void testSimpleBlt();
44     void testSelectionBltSelectionIrregular(); // Irregular selection
45     void testPaintDeviceBltSelectionInverted(); // Inverted selection
46     void testPaintDeviceBltSelectionIrregular(); // Irregular selection
47     void testPaintDeviceBltSelection(); // Square selection
48     void testSelectionBltSelection(); // Square selection
49     void testSimpleAlphaCopy();
50     void testSelectionBitBltFixedSelection();
51     void testSelectionBitBltEraseCompositeOp();
52 
53     void testBitBltOldData();
54 
55     void testMassiveBltFixedSingleTile();
56     void testMassiveBltFixedMultiTile();
57 
58     void testMassiveBltFixedMultiTileWithOpacity();
59 
60     void testMassiveBltFixedMultiTileWithSelection();
61 
62     void testMassiveBltFixedCornerCases();
63 
64 
65     void testOptimizedCopying();
66 };
67 
68 #endif
69 
70