1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/egl/egltest/inc/egltest_image_multithread.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,98 @@
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_IMAGE_MULTITHREAD_H__
1.25 +#define __EGLTEST_IMAGE_MULTITHREAD_H__
1.26 +
1.27 +#include "eglteststep.h"
1.28 +
1.29 +NONSHARABLE_CLASS(CEglTest_MThread_Image_Base) : public CEglTestStep
1.30 + {
1.31 +public:
1.32 + CEglTest_MThread_Image_Base();
1.33 + ~CEglTest_MThread_Image_Base();
1.34 +
1.35 +protected:
1.36 + RSgImage iSgImageShared;
1.37 + EGLImageKHR iEGLImageShared;
1.38 + };
1.39 +
1.40 +
1.41 +_LIT(KEGL_Image_Multi_Thread_Parallel, "EGL_Image_Multi_Thread_Parallel");
1.42 +NONSHARABLE_CLASS(CEglTest_EGL_Image_Multi_Thread_Parallel) : public CEglTest_MThread_Image_Base
1.43 + {
1.44 +public:
1.45 + TVerdict doTestStepL();
1.46 +protected:
1.47 + // from CEglTestStep
1.48 + void doThreadFunctionL(TInt aIdx);
1.49 + };
1.50 +
1.51 +_LIT(KEGL_Image_Multi_Thread_Sibling_Basic, "EGL_Image_Multi_Thread_Sibling_Basic");
1.52 +NONSHARABLE_CLASS(CEglTest_EGL_Image_Multi_Thread_Sibling_Basic) : public CEglTest_MThread_Image_Base
1.53 + {
1.54 +public:
1.55 + TVerdict doTestStepL();
1.56 +protected:
1.57 + // from CEglTestStep
1.58 + void doThreadFunctionL(TInt aIdx);
1.59 + };
1.60 +
1.61 +_LIT(KEGL_Image_Multi_Thread_Sibling_VGImage, "EGL_Image_Multi_Thread_Sibling_VGImage");
1.62 +NONSHARABLE_CLASS(CEglTest_EGL_Image_Multi_Thread_Sibling_VGImage) : public CEglTest_MThread_Image_Base
1.63 + {
1.64 +public:
1.65 + TVerdict doTestStepL();
1.66 +protected:
1.67 + // from CEglTestStep
1.68 + void doThreadFunctionL(TInt aIdx);
1.69 + };
1.70 +
1.71 +_LIT(KEGL_Image_Multi_Thread_Sibling_VGImage_PassingEGLImage, "EGL_Image_Multi_Thread_Sibling_VGImage_PassingEGLImage");
1.72 +NONSHARABLE_CLASS(CEglTest_EGL_Image_Multi_Thread_Sibling_VGImage_PassingEGLImage) : public CEglTest_MThread_Image_Base
1.73 + {
1.74 +public:
1.75 + TVerdict doTestStepL();
1.76 +protected:
1.77 + // from CEglTestStep
1.78 + void doThreadFunctionL(TInt aIdx);
1.79 + };
1.80 +
1.81 +_LIT(KEGL_Image_Multi_Thread_Exit_Thread, "EGL_Image_Multi_Thread_Exit_Thread");
1.82 +NONSHARABLE_CLASS(CEglTest_EGL_Image_Multi_Thread_Exit_Thread) : public CEglTest_MThread_Image_Base
1.83 + {
1.84 +public:
1.85 + TVerdict doTestStepL();
1.86 +protected:
1.87 + // from CEglTestStep
1.88 + void doThreadFunctionL(TInt aIdx);
1.89 + };
1.90 +
1.91 +_LIT(KEGL_Image_Multi_Thread_DrawAfterTerminate, "EGL_Image_Multi_Thread_DrawAfterTerminate");
1.92 +NONSHARABLE_CLASS(CEglTest_EGL_Image_Multi_Thread_DrawAfterTerminate) : public CEglTest_MThread_Image_Base
1.93 + {
1.94 +public:
1.95 + TVerdict doTestStepL();
1.96 +protected:
1.97 + // from CEglTestStep
1.98 + void doThreadFunctionL(TInt aIdx);
1.99 + };
1.100 +
1.101 +#endif