Update contrib.
1 // Copyright (c) 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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
21 @internalComponent - Internal Symbian test code
24 #ifndef __TSURFACEHELPER_H__
25 #define __TSURFACEHELPER_H__
29 #include <pixelformats.h>
30 #include <graphics/surface.h>
31 #include <graphics/surfacemanager.h>
34 class CSurfaceHelper : public CBase
37 static CSurfaceHelper* NewL();
39 TSurfaceId CreateSurfaceL(const TSize& aSize, TUidPixelFormat aPixelFormat, TInt aStride, TInt aBuffers);
40 void FillRectangleL(const TSurfaceId& aSurface, const TPoint& aStartPos, const TSize& aSize, const TRgb& aColor);
43 void DestroySurfaces();
45 RSurfaceManager iManager;
46 RArray<TSurfaceId> iSurfaces;
51 #endif //__TSURFACEHELPER_H__