1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/egl/egltest/inc/egltest_nativepixmaptype.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,97 @@
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 +*/
1.23 +
1.24 +#ifndef __EGLTEST_NATIVEPIXMAPTYPE_H__
1.25 +#define __EGLTEST_NATIVEPIXMAPTYPE_H__
1.26 +
1.27 +#include "eglteststep.h"
1.28 +
1.29 +// Concrete tests for testing use of eglSetNativePixmap()
1.30 +
1.31 +// Multi Threaded
1.32 +
1.33 +_LIT(KNativePixmapType_SingleThread_Positive_RSgImage, "NativePixmapType_SingleThread_Positive_RSgImage");
1.34 +NONSHARABLE_CLASS(CEglTest_NativePixmapType_SingleThread_Positive_RSgImage) : public CEglTestStep
1.35 + {
1.36 +public:
1.37 + TVerdict doTestStepL();
1.38 + };
1.39 +
1.40 +_LIT(KNativePixmapType_MultiThread_Positive_RSgImage_InitTwice, "NativePixmapType_MultiThread_Positive_RSgImage_InitTwice");
1.41 +NONSHARABLE_CLASS(CEglTest_NativePixmapType_MultiThread_Positive_RSgImage_InitTwice) : public CEglTestStep
1.42 + {
1.43 +public:
1.44 + TVerdict doTestStepL();
1.45 +protected:
1.46 + // from CEglTestStep
1.47 + void doThreadFunctionL(TInt aIdx);
1.48 + };
1.49 +
1.50 +_LIT(KNativePixmapType_MultiThread_Positive_RSgImage_InitTwice_NoRendezvous, "NativePixmapType_MultiThread_Positive_RSgImage_InitTwice_NoRendezvous");
1.51 +NONSHARABLE_CLASS(CEglTest_NativePixmapType_MultiThread_Positive_RSgImage_InitTwice_NoRendezvous) : public CEglTestStep
1.52 + {
1.53 +public:
1.54 + TVerdict doTestStepL();
1.55 +protected:
1.56 + // from CEglTestStep
1.57 + void doThreadFunctionL(TInt aIdx);
1.58 + };
1.59 +
1.60 +_LIT(KNativePixmapType_MultiThread_Positive_RSgImage_InitOneThreadOnly, "NativePixmapType_MultiThread_Positive_RSgImage_InitOneThreadOnly");
1.61 +NONSHARABLE_CLASS(CEglTest_NativePixmapType_MultiThread_Positive_RSgImage_InitOneThreadOnly) : public CEglTestStep
1.62 + {
1.63 +public:
1.64 + TVerdict doTestStepL();
1.65 +protected:
1.66 + // from CEglTestStep
1.67 + void doThreadFunctionL(TInt aIdx);
1.68 + };
1.69 +
1.70 +
1.71 +// Multi Process
1.72 +_LIT(KNativePixmapType_MultiProcess_Both_RSgImage, "NativePixmapType_MultiProcess_Both_RSgImage");
1.73 +NONSHARABLE_CLASS(CEglTest_NativePixmapType_MultiProcess_Both_RSgImage) : public CEglTestStep
1.74 + {
1.75 +public:
1.76 + TVerdict doTestStepL();
1.77 +protected:
1.78 + // from CEglTestStep
1.79 + void doProcessFunctionL(TInt aIdx);
1.80 + };
1.81 +
1.82 +_LIT(KChooseConfig_EGL_MATCH_NATIVE_PIXMAP_KHR, "ChooseConfig_EGL_MATCH_NATIVE_PIXMAP_KHR");
1.83 +NONSHARABLE_CLASS(CEglTest_ChooseConfig_EGL_MATCH_NATIVE_PIXMAP_KHR) : public CEglTestStep
1.84 + {
1.85 +public:
1.86 + TVerdict doTestStepL();
1.87 + TVerdict doTestPartialStepL();
1.88 +private:
1.89 + TUint32 iSgImageSurfaceUsage;
1.90 + };
1.91 +
1.92 +_LIT(KCFbsBitmap_EGL_MATCH_NATIVE_PIXMAP_KHR, "CFbsBitmap_EGL_MATCH_NATIVE_PIXMAP_KHR");
1.93 +NONSHARABLE_CLASS(CEglTest_CFbsBitmap_EGL_MATCH_NATIVE_PIXMAP_KHR) : public CEglTestStep
1.94 + {
1.95 +public:
1.96 + TVerdict doTestStepL();
1.97 + TVerdict doTestPartialStepL();
1.98 + };
1.99 +
1.100 +#endif // __EGLTEST_SETNATIVEPIXMAPTYPE_H__