~smartboyhw/ubuntu/raring/calligra/2.6.0-0ubuntu1

« back to all changes in this revision

Viewing changes to krita/benchmarks/kis_low_memory_benchmark.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-10-23 21:09:16 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20121023210916-m82w6zxnxhaxz7va
Tags: 1:2.5.90-0ubuntu1
* New upstream alpha release (LP: #1070436)
  - Add libkactivities-dev and libopenimageio-dev to build-depends
  - Add kubuntu_build_calligraactive.diff to build calligraactive by default
  - Add package for calligraauthor and move files that are shared between
    calligrawords and calligraauthor to calligrawords-common
* Document the patches
* Remove numbers from patches so they follow the same naming scheme as
  the rest of our patches.
* calligra-data breaks replaces krita-data (<< 1:2.5.3) (LP: #1071686)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Copyright (c) 2012 Dmitry Kazakov <dimula73@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_LOW_MEMORY_BENCHMARK_H
 
20
#define __KIS_LOW_MEMORY_BENCHMARK_H
 
21
 
 
22
#include <QtTest/QtTest>
 
23
 
 
24
class KisLowMemoryBenchmark : public QObject
 
25
{
 
26
    Q_OBJECT
 
27
private slots:
 
28
    void unlimitedMemoryNoHistoryNoPool();
 
29
    void unlimitedMemoryHistoryNoPool();
 
30
    void unlimitedMemoryHistoryPool50();
 
31
 
 
32
private:
 
33
    void benchmarkWideArea(const QString presetFileName,
 
34
                           const QRectF &rect, qreal vstep,
 
35
                           int numCycles,
 
36
                           bool createTransaction,
 
37
                           int hardLimitMiB,
 
38
                           int softLimitMiB,
 
39
                           int poolLimitMiB,
 
40
                           int index);
 
41
};
 
42
 
 
43
#endif /* __KIS_LOW_MEMORY_BENCHMARK_H */