xref: /haiku/src/tests/servers/app/benchmark/VerticalLineTest.h (revision bc3955fea5b07e2e94a27fc05e4bb58fe6f0319b)
1 /*
2  * Copyright (C) 2008 Stephan Aßmus <superstippi@gmx.de>
3  * All rights reserved. Distributed under the terms of the MIT license.
4  */
5 #ifndef VERTICAL_LINE_TEST_H
6 #define VERTICAL_LINE_TEST_H
7 
8 #include <Rect.h>
9 
10 #include "Test.h"
11 
12 class VerticalLineTest : public Test {
13 public:
14 								VerticalLineTest();
15 	virtual						~VerticalLineTest();
16 
17 	virtual	void				Prepare(BView* view);
18 	virtual	bool				RunIteration(BView* view);
19 	virtual	void				PrintResults();
20 
21 private:
22 	bigtime_t					fTestDuration;
23 	bigtime_t					fTestStart;
24 	uint64						fLinesRendered;
25 
26 	uint32						fIterations;
27 	uint32						fMaxIterations;
28 
29 	BRect						fViewBounds;
30 };
31 
32 #endif // VERTICAL_LINE_TEST_H
33