OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [classpath/] [examples/] [gnu/] [classpath/] [examples/] [java2d/] [bench.h] - Blame information for rev 781

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 781 jeremybenn
/* bench.h -- native benchmark for Cairo library (meant to test java2d)
2
   Copyright (C) 2006  Free Software Foundation, Inc.
3
 
4
This file is part of GNU Classpath examples.
5
 
6
GNU Classpath is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2, or (at your option)
9
any later version.
10
 
11
GNU Classpath is distributed in the hope that it will be useful, but
12
WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
General Public License for more details.
15
 
16
You should have received a copy of the GNU General Public License
17
along with GNU Classpath; see the file COPYING.  If not, write to the
18
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19
02110-1301 USA. */
20
 
21
#ifndef __BENCH_H__
22
#define __BENCH_H__
23
 
24
#include <gtk/gtk.h>
25
 
26
G_BEGIN_DECLS
27
 
28
#define BENCHMARK_TYPE             (benchmark_get_type())
29
#define BENCHMARK(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj, BENCHMARK_TYPE, Benchmark)
30
#define BENCHMARK_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), BENCHMARK_TYPE, BenchmarkClass);
31
#define IS_BENCHMARK(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BENCHMARK_TYPE))
32
#define IS_BENCHMARK_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), BENCHMARK_TYPE))
33
#define BENCHMARK_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), BENCHMARK_TYPE, BenchmarkClass))
34
 
35
typedef struct _Benchmark Benchmark;
36
typedef struct _BenchmarkClass BenchmarkClass;
37
 
38
struct _Benchmark {
39
        GtkDrawingArea parent;
40
 
41
};
42
 
43
struct _BenchmarkClass {
44
        GtkDrawingAreaClass parent_class;
45
};
46
 
47
GType     benchmark_get_type (void);
48
GtkWidget *benchmark_new     (void);
49
 
50
static int minSize;
51
static int antialias;
52
static int arcTest;
53
static int curveTest;
54
static int lineTest;
55
static int rectTest;
56
 
57
static int screenHeight;
58
static int screenWidth;
59
static int testSize;
60
static int lineWidth;
61
 
62
G_END_DECLS
63
 
64
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.