Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
687 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2007 Sven Langkamp <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef KIS_ITERATOR_BENCHMARK_H
#define KIS_ITERATOR_BENCHMARK_H

#include <simpletest.h>

class KoColorSpace;

class KisIteratorBenchmark : public QObject
{
    Q_OBJECT

private:
    void allCsApplicator(void (KisIteratorBenchmark::* funcPtr)(const KoColorSpace*cs));

    void vLineIterNG(const KoColorSpace * cs);
    template <bool useXY>
    void sequentialIter(const KoColorSpace * colorSpace);
    void hLineIterNG(const KoColorSpace * cs);
    void randomAccessor(const KoColorSpace * cs);


private Q_SLOTS:

    void runBenchmark();
};

#endif