os/graphics/egl/egltest/inc/egltestcommonprocess.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 EGLTESTCOMMONPROCESS_H
    22 #define EGLTESTCOMMONPROCESS_H
    23 
    24 #include <e32base.h>
    25 #ifdef SYMBIAN_GRAPHICS_EGL_SGIMAGELITE
    26 #include <sgresource/sgresource.h>
    27 #else
    28 #include <graphics/sgresource.h>
    29 #endif //SYMBIAN_GRAPHICS_EGL_SGIMAGELITE
    30 
    31 _LIT(KEglTestServerWrapperProcess, "egltestcommonprocess.exe");
    32 
    33 struct TProcessInfo
    34 	{
    35 	TInt 					 iIdx; // << index for example used to identify the thread to semaphores
    36 	TSgDrawableId			 iSgId;
    37 	};
    38 
    39 enum TEglTestProcessSlots
    40 	{
    41 	EProcSlotTestDllName=1, // can't use slot 0
    42 	EProcSlotTestStepName,
    43 	EProcSlotParams,
    44 	EProcSlotSemaphore0,
    45 	EProcSlotSemaphore1,
    46 	EProcSlotMsgQueueSgId,
    47 	EProcSlotMsgQueueProcId,
    48 	EProcSlotSourceFormat,
    49 	EProcSlotSurfaceFormat,
    50 	EProcSlotCustomClientParam //data that could be sent from client to main process. Concrete implementation will need to specify the format
    51 	};
    52 
    53 class EglTestCommonProcess
    54 	{
    55 	public:
    56 		static void MainL();
    57 	};
    58 
    59 #endif // EGLTESTCOMMOMPROCESS_H