|
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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @test |
|
19 */ |
|
20 |
|
21 #ifndef __EGLTEST_STRESS_PROCESS_SGIMAGE_H__ |
|
22 #define __EGLTEST_STRESS_PROCESS_SGIMAGE_H__ |
|
23 |
|
24 #include "egltest_stress_common_sgimage.h" |
|
25 |
|
26 /** |
|
27 Standard prototypes |
|
28 */ |
|
29 GLDEF_C TInt E32Main(void); |
|
30 LOCAL_C void LaunchClientProcessL(); |
|
31 |
|
32 //Panic string |
|
33 _LIT(KStressTestChildAppPanic, "Stress Test Child App"); |
|
34 |
|
35 class CTReadWriteChild : public CTReadWrite |
|
36 { |
|
37 public: |
|
38 static CTReadWriteChild* NewL(VGImage aImage, TInt aWidth, TInt aHeight, TInt aByteSize, VGImageFormat aFormat, const TTestType& aTestType, TBool& aTestPass); |
|
39 |
|
40 private: |
|
41 CTReadWriteChild(VGImage aImage, TInt aWidth, TInt aHeight, TInt aByteSize, VGImageFormat aFormat, const TTestType& aTestType, TBool& aTestPass); |
|
42 void ReadImageFuncL(); |
|
43 void ReadFuncL(); |
|
44 void WriteImageFuncL(); |
|
45 void VgImageFuncL(); |
|
46 void MakeCurrentL() const; |
|
47 TBool IsFinished(); |
|
48 void PixmapSurfaceFuncL(); |
|
49 |
|
50 private: |
|
51 VGImage iImage; |
|
52 }; |
|
53 |
|
54 #endif //__EGLTEST_STRESS_PROCESS_SGIMAGE_H__ |