diff -r 000000000000 -r bde4ae8d615e os/graphics/windowing/windowserver/test/t_integ/inc/t_testsurfacerasterizer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/graphics/windowing/windowserver/test/t_integ/inc/t_testsurfacerasterizer.h Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,64 @@ +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +/** + @file + @test + @internalComponent +*/ + +#ifndef __T_TESTSURFACERASTERIZER_H__ +#define __T_TESTSURFACERASTERIZER_H__ + +#include +#include +#include //TSurfaceId +#include //RSurfaceManager +#include + +#include "t_pseudoapptestresults.h" + +typedef struct SurfaceDetails + { + TSurfaceId aSurfaceId; + TSize aSurfaceSize; + TInt aBufferNumber; + }SurfaceDetails; + +class CTestSurfaceRasterizer : public CBase + { +public: + IMPORT_C static CTestSurfaceRasterizer* NewL(const TSurfaceId& aSurfaceId, TInt aSurfaceScreenNumber, RSurfaceManager* aSurfaceManager); + IMPORT_C void DrawRect(TUint32* aBuffer, SurfaceDetails& aSurfDetails); + IMPORT_C void PerfTestL(TInt aFrameNumber); + ~CTestSurfaceRasterizer(); + +protected: + +private: + CTestSurfaceRasterizer(); + TBool ConstructL(const TSurfaceId& aSurfaceId, TInt aSurfaceScreenNumber, RSurfaceManager* aSurfaceManager); + void SendUpdateRequest(const TPoint aPoint, const TSize aSurfaceSize); + +private: + TSurfaceId iSurfaceId; + TInt iSurfaceScreenNumber; + TInt iSurfaceCurrentBuffer; + RChunk iChunk; + RSurfaceManager* iSurfaceManager; + RSurfaceManager::TInfoBuf iInfoBuf; + }; + +#endif //__T_TESTSURFACERASTERIZER_H__