diff -r 57c618273d5c -r bbf46f59e123 graphicstest/uibench/s60/src/surfaceutility.cpp --- a/graphicstest/uibench/s60/src/surfaceutility.cpp Thu Aug 19 11:11:18 2010 +0300 +++ b/graphicstest/uibench/s60/src/surfaceutility.cpp Tue Aug 31 16:31:06 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));