1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/windowing/windowserver/test/t_integ/inc/t_testsurfacerasterizer.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,64 @@
1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +/**
1.20 + @file
1.21 + @test
1.22 + @internalComponent
1.23 +*/
1.24 +
1.25 +#ifndef __T_TESTSURFACERASTERIZER_H__
1.26 +#define __T_TESTSURFACERASTERIZER_H__
1.27 +
1.28 +#include <e32base.h>
1.29 +#include <e32std.h>
1.30 +#include <graphics/surface.h> //TSurfaceId
1.31 +#include <graphics/surfacemanager.h> //RSurfaceManager
1.32 +#include <graphics/surfaceupdateclient.h>
1.33 +
1.34 +#include "t_pseudoapptestresults.h"
1.35 +
1.36 +typedef struct SurfaceDetails
1.37 + {
1.38 + TSurfaceId aSurfaceId;
1.39 + TSize aSurfaceSize;
1.40 + TInt aBufferNumber;
1.41 + }SurfaceDetails;
1.42 +
1.43 +class CTestSurfaceRasterizer : public CBase
1.44 + {
1.45 +public:
1.46 + IMPORT_C static CTestSurfaceRasterizer* NewL(const TSurfaceId& aSurfaceId, TInt aSurfaceScreenNumber, RSurfaceManager* aSurfaceManager);
1.47 + IMPORT_C void DrawRect(TUint32* aBuffer, SurfaceDetails& aSurfDetails);
1.48 + IMPORT_C void PerfTestL(TInt aFrameNumber);
1.49 + ~CTestSurfaceRasterizer();
1.50 +
1.51 +protected:
1.52 +
1.53 +private:
1.54 + CTestSurfaceRasterizer();
1.55 + TBool ConstructL(const TSurfaceId& aSurfaceId, TInt aSurfaceScreenNumber, RSurfaceManager* aSurfaceManager);
1.56 + void SendUpdateRequest(const TPoint aPoint, const TSize aSurfaceSize);
1.57 +
1.58 +private:
1.59 + TSurfaceId iSurfaceId;
1.60 + TInt iSurfaceScreenNumber;
1.61 + TInt iSurfaceCurrentBuffer;
1.62 + RChunk iChunk;
1.63 + RSurfaceManager* iSurfaceManager;
1.64 + RSurfaceManager::TInfoBuf iInfoBuf;
1.65 + };
1.66 +
1.67 +#endif //__T_TESTSURFACERASTERIZER_H__