os/graphics/graphicstest/uibench/src/tsimpledrawing.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
/**
sl@0
    17
 @file
sl@0
    18
 @test
sl@0
    19
 @internalComponent - Internal Symbian test code 
sl@0
    20
*/
sl@0
    21
 
sl@0
    22
#ifndef __TSIMPLEDRAWING_H__
sl@0
    23
#define __TSIMPLEDRAWING_H__
sl@0
    24
sl@0
    25
#include "te_graphicsperformanceSuiteStepBase.h"
sl@0
    26
#include <biditext.h>
sl@0
    27
sl@0
    28
class CTSimpleDrawing : public CTe_graphicsperformanceSuiteStepBase
sl@0
    29
	{
sl@0
    30
public:
sl@0
    31
	CTSimpleDrawing();
sl@0
    32
	~CTSimpleDrawing();
sl@0
    33
	
sl@0
    34
private:
sl@0
    35
	enum TMbmTbmp
sl@0
    36
		{
sl@0
    37
		EMbmTbmpTbmp,
sl@0
    38
		EMbmTbmpTblank,
sl@0
    39
		EMbmTbmpTgdigen,
sl@0
    40
		EMbmTbmpTcolor
sl@0
    41
		};
sl@0
    42
	
sl@0
    43
	// From CStepStep
sl@0
    44
	virtual TVerdict doTestStepPreambleL();
sl@0
    45
	virtual TVerdict doTestStepL();
sl@0
    46
	
sl@0
    47
	void ClearingL();
sl@0
    48
	void LineDrawingL();
sl@0
    49
	void CopyRectL();
sl@0
    50
	void TextDrawingL();
sl@0
    51
	void TextDrawingAntiAliasedL();
sl@0
    52
	void TextDrawingWithOverheadL();
sl@0
    53
	void LargeTextDrawingL();
sl@0
    54
	void TextDrawingExtendedLtoRL();
sl@0
    55
	void TextDrawingExtendedRtoLL();
sl@0
    56
	void LargeTextDrawingExtendedLtoRL();
sl@0
    57
	void LargeTextDrawingExtendedRtoLL();
sl@0
    58
	void BidiTextDrawingL();
sl@0
    59
	void LargeBidiTextDrawingL();
sl@0
    60
	void MeasureTextL();
sl@0
    61
	void BitmapDrawingL();
sl@0
    62
	void ShadowingL();
sl@0
    63
	void ColorMappingL();
sl@0
    64
	void AndClearingL();
sl@0
    65
	void AndCopyRectL();
sl@0
    66
	void MaskBlittingL();
sl@0
    67
	void VerticalLinesL();
sl@0
    68
	void HorizontalLinesL();
sl@0
    69
	void ThickLinesL();
sl@0
    70
	void DrawRectL();
sl@0
    71
	void BltGcL();
sl@0
    72
	void BltBmpL();
sl@0
    73
sl@0
    74
	
sl@0
    75
private:	
sl@0
    76
	TUint iStartTime;
sl@0
    77
	TUint iStopTime;	
sl@0
    78
	CBitmapDevice* iDevice;	
sl@0
    79
	CFont* iFont;
sl@0
    80
	CFont* iLargeFont;
sl@0
    81
	CFbsBitmap* iBitmap;
sl@0
    82
	TBidiText* iBidiText;
sl@0
    83
	TRect iScreenRect;	
sl@0
    84
	CFbsTypefaceStore* iTs; 
sl@0
    85
	};
sl@0
    86
	
sl@0
    87
_LIT(KTSimpleDrawingPerfName,"tsimpledrawing");
sl@0
    88
sl@0
    89
#endif