graphicstest/uibench/s60/src/surfaceutility.cpp
changeset 36 01a6848ebfd7
parent 0 5d03bc08d59c
child 164 25ffed67c7ef
--- a/graphicstest/uibench/s60/src/surfaceutility.cpp	Tue Feb 02 01:47:50 2010 +0200
+++ b/graphicstest/uibench/s60/src/surfaceutility.cpp	Fri Apr 16 16:21:04 2010 +0300
@@ -603,7 +603,7 @@
 
 	chunk.Close();
 
-	TInt err = iSurfaceUpdateSession.SubmitUpdate(0, aSurface, 0, NULL);
+	TInt err = iSurfaceUpdateSession.SubmitUpdate(KAllScreens, aSurface, 0, NULL);
 	if (err!=KErrNone)
 		LOG(("Error submitting update: 0x%X\n", err));
 	}
@@ -866,7 +866,7 @@
 
 	chunk.Close();
 
-	TInt err = iSurfaceUpdateSession.SubmitUpdate(0, aSurface, 0, NULL);
+	TInt err = iSurfaceUpdateSession.SubmitUpdate(KAllScreens, aSurface, 0, NULL);
 	if (err!=KErrNone)
 		LOG(("Error submitting update: 0x%X\n", err));
 	}
@@ -1158,7 +1158,7 @@
 		}
 	chunk.Close();
 
-	TInt err =iSurfaceUpdateSession.SubmitUpdate(0, aSurface, 0, NULL);
+	TInt err =iSurfaceUpdateSession.SubmitUpdate(KAllScreens, aSurface, 0, NULL);
 	if (err!=KErrNone)
 		LOG(("Error submitting update: 0x%X\n", err));
 
@@ -1430,7 +1430,7 @@
 	
 	chunk.Close();
 
-	iSurfaceUpdateSession.SubmitUpdate(0, aSurface, 0, NULL);
+	iSurfaceUpdateSession.SubmitUpdate(KAllScreens, aSurface, 0, NULL);
 	}
 /**
 Fill the given surface with vertical line at the given position
@@ -1511,7 +1511,7 @@
 				info.iSize.iHeight-1,info.iStride/4,(TUint*)surfacePtr,lineColor);
 		}
 	chunk.Close();
-	iSurfaceUpdateSession.SubmitUpdate(0, aSurface, 0, NULL);
+	iSurfaceUpdateSession.SubmitUpdate(KAllScreens, aSurface, 0, NULL);
 	}
 /**
  * Generates a bitmap equivalent to the surface.
@@ -1627,9 +1627,9 @@
 @param aScreenNumber	The screen to be updated where the surface is shown.
 @param aSurface	The surface which has been updated.
 @param aRegion	The area of the surface affected, or NULL for all of it.*/
-void CSurfaceUtility::SubmitUpdate(TInt aScreenNumber, const TSurfaceId& aSurface, const TRegion* aRegion,TInt aBufferNumber)
+void CSurfaceUtility::SubmitUpdate(TInt /* aScreenNumber */, const TSurfaceId& aSurface, const TRegion* aRegion,TInt aBufferNumber)
 	{
-	TInt err =iSurfaceUpdateSession.SubmitUpdate(aScreenNumber, aSurface, aBufferNumber, aRegion); 
+	TInt err =iSurfaceUpdateSession.SubmitUpdate(KAllScreens, aSurface, aBufferNumber, aRegion); 
 	if (err!=KErrNone)
 		LOG(("Error submitting update: 0x%X\n", err));
 	}
@@ -1642,13 +1642,13 @@
 @param aSurface	The surface which has been updated.
 @param aRegion	The area of the surface affected, or NULL for all of it.*/
 void CSurfaceUtility::MapAndSubmitUpdateL(RChunk& aChunk, 
-		                                TInt aScreenNumber, 
+		                                TInt /* aScreenNumber */, 
 		                                const TSurfaceId& aSurface, 
 		                                const TRegion* aRegion)
 	{
 	User::LeaveIfError(iManager.MapSurface(aSurface, aChunk));
 	aChunk.Close();
-	TInt err =iSurfaceUpdateSession.SubmitUpdate(aScreenNumber, aSurface, 0, aRegion); 
+	TInt err =iSurfaceUpdateSession.SubmitUpdate(KAllScreens, aSurface, 0, aRegion); 
 	if (err!=KErrNone)
 		LOG(("Error submitting update: 0x%X\n", err));
 	}
@@ -1678,7 +1678,7 @@
 		aBitmap.GetScanLine(ptr, start, size.iWidth, bmpFormat);
 		}
 
-	TInt err =iSurfaceUpdateSession.SubmitUpdate(0, aSurface, 0, NULL);
+	TInt err =iSurfaceUpdateSession.SubmitUpdate(KAllScreens, aSurface, 0, NULL);
 	if (err!=KErrNone)
 		{
 		LOG(("Error submitting update: 0x%X\n", err));