graphicscomposition/openwfsupport/test/tstreamoperation/surfaceutility.h
changeset 36 01a6848ebfd7
parent 0 5d03bc08d59c
child 164 25ffed67c7ef
equal deleted inserted replaced
0:5d03bc08d59c 36:01a6848ebfd7
    60     void NotifyWhenDisplayedXTimes(TInt aCount, TRequestStatus& aStatusDisplayedX);
    60     void NotifyWhenDisplayedXTimes(TInt aCount, TRequestStatus& aStatusDisplayedX);
    61     void NotifyWhenAvailable(TRequestStatus& aStatusAvailable);	
    61     void NotifyWhenAvailable(TRequestStatus& aStatusAvailable);	
    62 	//Native Stream
    62 	//Native Stream
    63 	void FillNativeStreamSurfaceL(TSurfaceId& aSurface, TUint8* aBufferPtr, const TRgb& aColor);
    63 	void FillNativeStreamSurfaceL(TSurfaceId& aSurface, TUint8* aBufferPtr, const TRgb& aColor);
    64 	TBool CompareSurfacesL(TSurfaceId& aSurface, TInt aBuffer, TSurfaceId& aStreamSurface, TUint8* aBufferPtr);
    64 	TBool CompareSurfacesL(TSurfaceId& aSurface, TInt aBuffer, TSurfaceId& aStreamSurface, TUint8* aBufferPtr);
    65 	
       
    66 	void SetAutoUpdateScreenNum(TInt aScreenNum);
       
    67 	RSurfaceManager& Manager()	{return iManager;}
    65 	RSurfaceManager& Manager()	{return iManager;}
    68 	RSurfaceUpdateSession& Session()	{return iSurfaceUpdateSession;}
    66 	RSurfaceUpdateSession& Session()	{return iSurfaceUpdateSession;}
    69 private:
    67 private:
    70 	CSurfaceUtility(CSurfaceUtility* aClone);
    68 	CSurfaceUtility(CSurfaceUtility* aClone);
    71 	void ConstructL();
    69 	void ConstructL();
    72 
    70 
    73 private:
    71 private:
    74 	RSurfaceManager iManager;
    72 	RSurfaceManager iManager;
    75 	RSurfaceUpdateSession iSurfaceUpdateSession;
    73 	RSurfaceUpdateSession iSurfaceUpdateSession;
    76     TInt    iScreenNum;
       
    77 	//This local object wraps the array operations in a heap switch
    74 	//This local object wraps the array operations in a heap switch
    78 	//The reason for providing this wrapper is to allow threads to share the surface manager surface ID list.
    75 	//The reason for providing this wrapper is to allow threads to share the surface manager surface ID list.
    79 	//In particular, the next test can attempt to release the previous test's surfaces if it paniced. 
    76 	//In particular, the next test can attempt to release the previous test's surfaces if it paniced. 
    80 	//Note that the presumption is that the owning thread will be paused, 
    77 	//Note that the presumption is that the owning thread will be paused, 
    81 	//so there will be no thread interlock issues with it's heap manager.
    78 	//so there will be no thread interlock issues with it's heap manager.