sl@0
|
1 |
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
/**
|
sl@0
|
17 |
@file
|
sl@0
|
18 |
@test
|
sl@0
|
19 |
*/
|
sl@0
|
20 |
|
sl@0
|
21 |
#ifndef __EGLTEST_NATIVEPIXMAPTYPE_H__
|
sl@0
|
22 |
#define __EGLTEST_NATIVEPIXMAPTYPE_H__
|
sl@0
|
23 |
|
sl@0
|
24 |
#include "eglteststep.h"
|
sl@0
|
25 |
|
sl@0
|
26 |
// Concrete tests for testing use of eglSetNativePixmap()
|
sl@0
|
27 |
|
sl@0
|
28 |
// Multi Threaded
|
sl@0
|
29 |
|
sl@0
|
30 |
_LIT(KNativePixmapType_SingleThread_Positive_RSgImage, "NativePixmapType_SingleThread_Positive_RSgImage");
|
sl@0
|
31 |
NONSHARABLE_CLASS(CEglTest_NativePixmapType_SingleThread_Positive_RSgImage) : public CEglTestStep
|
sl@0
|
32 |
{
|
sl@0
|
33 |
public:
|
sl@0
|
34 |
TVerdict doTestStepL();
|
sl@0
|
35 |
};
|
sl@0
|
36 |
|
sl@0
|
37 |
_LIT(KNativePixmapType_MultiThread_Positive_RSgImage_InitTwice, "NativePixmapType_MultiThread_Positive_RSgImage_InitTwice");
|
sl@0
|
38 |
NONSHARABLE_CLASS(CEglTest_NativePixmapType_MultiThread_Positive_RSgImage_InitTwice) : public CEglTestStep
|
sl@0
|
39 |
{
|
sl@0
|
40 |
public:
|
sl@0
|
41 |
TVerdict doTestStepL();
|
sl@0
|
42 |
protected:
|
sl@0
|
43 |
// from CEglTestStep
|
sl@0
|
44 |
void doThreadFunctionL(TInt aIdx);
|
sl@0
|
45 |
};
|
sl@0
|
46 |
|
sl@0
|
47 |
_LIT(KNativePixmapType_MultiThread_Positive_RSgImage_InitTwice_NoRendezvous, "NativePixmapType_MultiThread_Positive_RSgImage_InitTwice_NoRendezvous");
|
sl@0
|
48 |
NONSHARABLE_CLASS(CEglTest_NativePixmapType_MultiThread_Positive_RSgImage_InitTwice_NoRendezvous) : public CEglTestStep
|
sl@0
|
49 |
{
|
sl@0
|
50 |
public:
|
sl@0
|
51 |
TVerdict doTestStepL();
|
sl@0
|
52 |
protected:
|
sl@0
|
53 |
// from CEglTestStep
|
sl@0
|
54 |
void doThreadFunctionL(TInt aIdx);
|
sl@0
|
55 |
};
|
sl@0
|
56 |
|
sl@0
|
57 |
_LIT(KNativePixmapType_MultiThread_Positive_RSgImage_InitOneThreadOnly, "NativePixmapType_MultiThread_Positive_RSgImage_InitOneThreadOnly");
|
sl@0
|
58 |
NONSHARABLE_CLASS(CEglTest_NativePixmapType_MultiThread_Positive_RSgImage_InitOneThreadOnly) : public CEglTestStep
|
sl@0
|
59 |
{
|
sl@0
|
60 |
public:
|
sl@0
|
61 |
TVerdict doTestStepL();
|
sl@0
|
62 |
protected:
|
sl@0
|
63 |
// from CEglTestStep
|
sl@0
|
64 |
void doThreadFunctionL(TInt aIdx);
|
sl@0
|
65 |
};
|
sl@0
|
66 |
|
sl@0
|
67 |
|
sl@0
|
68 |
// Multi Process
|
sl@0
|
69 |
_LIT(KNativePixmapType_MultiProcess_Both_RSgImage, "NativePixmapType_MultiProcess_Both_RSgImage");
|
sl@0
|
70 |
NONSHARABLE_CLASS(CEglTest_NativePixmapType_MultiProcess_Both_RSgImage) : public CEglTestStep
|
sl@0
|
71 |
{
|
sl@0
|
72 |
public:
|
sl@0
|
73 |
TVerdict doTestStepL();
|
sl@0
|
74 |
protected:
|
sl@0
|
75 |
// from CEglTestStep
|
sl@0
|
76 |
void doProcessFunctionL(TInt aIdx);
|
sl@0
|
77 |
};
|
sl@0
|
78 |
|
sl@0
|
79 |
_LIT(KChooseConfig_EGL_MATCH_NATIVE_PIXMAP_KHR, "ChooseConfig_EGL_MATCH_NATIVE_PIXMAP_KHR");
|
sl@0
|
80 |
NONSHARABLE_CLASS(CEglTest_ChooseConfig_EGL_MATCH_NATIVE_PIXMAP_KHR) : public CEglTestStep
|
sl@0
|
81 |
{
|
sl@0
|
82 |
public:
|
sl@0
|
83 |
TVerdict doTestStepL();
|
sl@0
|
84 |
TVerdict doTestPartialStepL();
|
sl@0
|
85 |
private:
|
sl@0
|
86 |
TUint32 iSgImageSurfaceUsage;
|
sl@0
|
87 |
};
|
sl@0
|
88 |
|
sl@0
|
89 |
_LIT(KCFbsBitmap_EGL_MATCH_NATIVE_PIXMAP_KHR, "CFbsBitmap_EGL_MATCH_NATIVE_PIXMAP_KHR");
|
sl@0
|
90 |
NONSHARABLE_CLASS(CEglTest_CFbsBitmap_EGL_MATCH_NATIVE_PIXMAP_KHR) : public CEglTestStep
|
sl@0
|
91 |
{
|
sl@0
|
92 |
public:
|
sl@0
|
93 |
TVerdict doTestStepL();
|
sl@0
|
94 |
TVerdict doTestPartialStepL();
|
sl@0
|
95 |
};
|
sl@0
|
96 |
|
sl@0
|
97 |
#endif // __EGLTEST_SETNATIVEPIXMAPTYPE_H__
|