|
1 // Copyright (c) 2007-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_NATIVEPIXMAPTYPE_H__ |
|
22 #define __EGLTEST_NATIVEPIXMAPTYPE_H__ |
|
23 |
|
24 #include "eglteststep.h" |
|
25 |
|
26 // Concrete tests for testing use of eglSetNativePixmap() |
|
27 |
|
28 // Multi Threaded |
|
29 |
|
30 _LIT(KNativePixmapType_SingleThread_Positive_RSgImage, "NativePixmapType_SingleThread_Positive_RSgImage"); |
|
31 NONSHARABLE_CLASS(CEglTest_NativePixmapType_SingleThread_Positive_RSgImage) : public CEglTestStep |
|
32 { |
|
33 public: |
|
34 TVerdict doTestStepL(); |
|
35 }; |
|
36 |
|
37 _LIT(KNativePixmapType_MultiThread_Positive_RSgImage_InitTwice, "NativePixmapType_MultiThread_Positive_RSgImage_InitTwice"); |
|
38 NONSHARABLE_CLASS(CEglTest_NativePixmapType_MultiThread_Positive_RSgImage_InitTwice) : public CEglTestStep |
|
39 { |
|
40 public: |
|
41 TVerdict doTestStepL(); |
|
42 protected: |
|
43 // from CEglTestStep |
|
44 void doThreadFunctionL(TInt aIdx); |
|
45 }; |
|
46 |
|
47 _LIT(KNativePixmapType_MultiThread_Positive_RSgImage_InitTwice_NoRendezvous, "NativePixmapType_MultiThread_Positive_RSgImage_InitTwice_NoRendezvous"); |
|
48 NONSHARABLE_CLASS(CEglTest_NativePixmapType_MultiThread_Positive_RSgImage_InitTwice_NoRendezvous) : public CEglTestStep |
|
49 { |
|
50 public: |
|
51 TVerdict doTestStepL(); |
|
52 protected: |
|
53 // from CEglTestStep |
|
54 void doThreadFunctionL(TInt aIdx); |
|
55 }; |
|
56 |
|
57 _LIT(KNativePixmapType_MultiThread_Positive_RSgImage_InitOneThreadOnly, "NativePixmapType_MultiThread_Positive_RSgImage_InitOneThreadOnly"); |
|
58 NONSHARABLE_CLASS(CEglTest_NativePixmapType_MultiThread_Positive_RSgImage_InitOneThreadOnly) : public CEglTestStep |
|
59 { |
|
60 public: |
|
61 TVerdict doTestStepL(); |
|
62 protected: |
|
63 // from CEglTestStep |
|
64 void doThreadFunctionL(TInt aIdx); |
|
65 }; |
|
66 |
|
67 |
|
68 // Multi Process |
|
69 _LIT(KNativePixmapType_MultiProcess_Both_RSgImage, "NativePixmapType_MultiProcess_Both_RSgImage"); |
|
70 NONSHARABLE_CLASS(CEglTest_NativePixmapType_MultiProcess_Both_RSgImage) : public CEglTestStep |
|
71 { |
|
72 public: |
|
73 TVerdict doTestStepL(); |
|
74 protected: |
|
75 // from CEglTestStep |
|
76 void doProcessFunctionL(TInt aIdx); |
|
77 }; |
|
78 |
|
79 _LIT(KChooseConfig_EGL_MATCH_NATIVE_PIXMAP_KHR, "ChooseConfig_EGL_MATCH_NATIVE_PIXMAP_KHR"); |
|
80 NONSHARABLE_CLASS(CEglTest_ChooseConfig_EGL_MATCH_NATIVE_PIXMAP_KHR) : public CEglTestStep |
|
81 { |
|
82 public: |
|
83 TVerdict doTestStepL(); |
|
84 TVerdict doTestPartialStepL(); |
|
85 private: |
|
86 TUint32 iSgImageSurfaceUsage; |
|
87 }; |
|
88 |
|
89 _LIT(KCFbsBitmap_EGL_MATCH_NATIVE_PIXMAP_KHR, "CFbsBitmap_EGL_MATCH_NATIVE_PIXMAP_KHR"); |
|
90 NONSHARABLE_CLASS(CEglTest_CFbsBitmap_EGL_MATCH_NATIVE_PIXMAP_KHR) : public CEglTestStep |
|
91 { |
|
92 public: |
|
93 TVerdict doTestStepL(); |
|
94 TVerdict doTestPartialStepL(); |
|
95 }; |
|
96 |
|
97 #endif // __EGLTEST_SETNATIVEPIXMAPTYPE_H__ |