|
1 // Copyright (c) 2005-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 __TSIMPLEDRAWING_H__ |
|
23 #define __TSIMPLEDRAWING_H__ |
|
24 |
|
25 #include "te_graphicsperformanceSuiteStepBase.h" |
|
26 #include <biditext.h> |
|
27 |
|
28 class CTSimpleDrawing : public CTe_graphicsperformanceSuiteStepBase |
|
29 { |
|
30 public: |
|
31 CTSimpleDrawing(); |
|
32 ~CTSimpleDrawing(); |
|
33 |
|
34 private: |
|
35 enum TMbmTbmp |
|
36 { |
|
37 EMbmTbmpTbmp, |
|
38 EMbmTbmpTblank, |
|
39 EMbmTbmpTgdigen, |
|
40 EMbmTbmpTcolor |
|
41 }; |
|
42 |
|
43 // From CStepStep |
|
44 virtual TVerdict doTestStepPreambleL(); |
|
45 virtual TVerdict doTestStepL(); |
|
46 |
|
47 void ClearingL(); |
|
48 void LineDrawingL(); |
|
49 void CopyRectL(); |
|
50 void TextDrawingL(); |
|
51 void TextDrawingAntiAliasedL(); |
|
52 void TextDrawingWithOverheadL(); |
|
53 void LargeTextDrawingL(); |
|
54 void TextDrawingExtendedLtoRL(); |
|
55 void TextDrawingExtendedRtoLL(); |
|
56 void LargeTextDrawingExtendedLtoRL(); |
|
57 void LargeTextDrawingExtendedRtoLL(); |
|
58 void BidiTextDrawingL(); |
|
59 void LargeBidiTextDrawingL(); |
|
60 void MeasureTextL(); |
|
61 void BitmapDrawingL(); |
|
62 void ShadowingL(); |
|
63 void ColorMappingL(); |
|
64 void AndClearingL(); |
|
65 void AndCopyRectL(); |
|
66 void MaskBlittingL(); |
|
67 void VerticalLinesL(); |
|
68 void HorizontalLinesL(); |
|
69 void ThickLinesL(); |
|
70 void DrawRectL(); |
|
71 void BltGcL(); |
|
72 void BltBmpL(); |
|
73 |
|
74 |
|
75 private: |
|
76 TUint iStartTime; |
|
77 TUint iStopTime; |
|
78 CBitmapDevice* iDevice; |
|
79 CFont* iFont; |
|
80 CFont* iLargeFont; |
|
81 CFbsBitmap* iBitmap; |
|
82 TBidiText* iBidiText; |
|
83 TRect iScreenRect; |
|
84 CFbsTypefaceStore* iTs; |
|
85 }; |
|
86 |
|
87 _LIT(KTSimpleDrawingPerfName,"tsimpledrawing"); |
|
88 |
|
89 #endif |