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++
1.4 KB
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2025 Agata Cacko <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef KIS_LIQUIFY_TRANSFORM_WORKER_BENCHMARK_H
#define KIS_LIQUIFY_TRANSFORM_WORKER_BENCHMARK_H

#include <simpletest.h>


class KisLiquifyTransformWorkerBenchmark : public QObject
{
public:
    enum Operation {
        Translate,
        Scale,
        Rotate,
        Undo,
        RestoreShape,
        RestoreShapeWithStretch,
        RunOnQImage,
        RunOnDev,
        BenchmarkCopyConstructor,
        MovePointsOutsideOfTheGrid,
    };


    Q_OBJECT
private Q_SLOTS:

    void testInitialization();

    void testPointsTranslateBuildUp();
    void testPointsTranslateWash();

    void testPointsScaleBuildUp();
    void testPointsScaleWash();


    void testPointsRotateBuildUp();
    void testPointsRotateWash();

    void testPointsUndoBuildUp();
    void testPointsUndoWash();
    void testPointsRestoreShapeBuildUp();
    void testPointsRestoreShapeWash();
    void testPointsRestoreShapeWithStretchBuildUp();
    void testPointsRestoreShapeWithStretchWash();

    void testRunOnDev();
    void testRunOnQImage();

    void testSmallChangeOnDev();
    void testSmallChangeOnQImage();

    void testRenderingMask_data();
    void testRenderingMask();


    void testCopyConstructor();
    void testMovePointsOutsideOfTheGrid();

    void checkMath();

    void testCheckingIfPolygonsAreConvex();

};

#endif