|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @test |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 #ifndef CTREDRAWSTOREPERF_H |
|
23 #define CTREDRAWSTOREPERF_H |
|
24 |
|
25 #include "te_graphicsperformanceSuiteStepBase.h" |
|
26 #include <w32std.h> |
|
27 |
|
28 enum TRedrawstoreTestCase |
|
29 { |
|
30 EFragmentStore, |
|
31 EFragmentStoreWithManyRects |
|
32 }; |
|
33 |
|
34 class CTRedrawstorePerf : public CTe_graphicsperformanceSuiteStepBase |
|
35 { |
|
36 public: |
|
37 CTRedrawstorePerf(); |
|
38 ~CTRedrawstorePerf(); |
|
39 |
|
40 // From CTestStep |
|
41 TVerdict doTestStepPreambleL(); |
|
42 TVerdict doTestStepL(); |
|
43 |
|
44 private: |
|
45 void Init(); |
|
46 void CreateRWindowL(); |
|
47 void TestStoringL(const TDesC& aTestName, TRedrawstoreTestCase aTestCase); |
|
48 void TestPlayingbackL(const TDesC& aTestName, TRedrawstoreTestCase aTestCase); |
|
49 void TestStoringAndPlayingbackL(const TDesC& aTestName, TRedrawstoreTestCase aTestCase); |
|
50 void PopulateRedrawStore(); |
|
51 void PopulateRedrawStoreWithManyRects(); |
|
52 |
|
53 void TestStoreWithFewRectsL(); |
|
54 void TestStoreWithManyRectsL(); |
|
55 void TestPlaybackWithFewRectsL(); |
|
56 void TestPlaybackWithManyRectsL(); |
|
57 void TestStoreAndPlaybackWithFewRectsL(); |
|
58 void TestStoreAndPlaybackWithManyRectsL(); |
|
59 |
|
60 private: |
|
61 RWsSession iWs; |
|
62 RWindowGroup iWinGroup; |
|
63 RWindow iWin; |
|
64 CWsScreenDevice* iScreenDevice; |
|
65 CWindowGc* iGc; |
|
66 }; |
|
67 |
|
68 _LIT(KTRedrawstorePerf,"tredrawstoreperf"); |
|
69 |
|
70 #endif // CTREDRAWSTOREPERF_H |