windowing/windowserver/nga/SERVER/SERVER.CPP
branchRCL_3
changeset 164 25ffed67c7ef
parent 163 bbf46f59e123
equal deleted inserted replaced
163:bbf46f59e123 164:25ffed67c7ef
   358 	{
   358 	{
   359 	const TInt count = iWaitingClients.Count();
   359 	const TInt count = iWaitingClients.Count();
   360 	for(TInt i = count-1; i >= 0; i--)
   360 	for(TInt i = count-1; i >= 0; i--)
   361 		{
   361 		{
   362 		TWaitingClient& client = iWaitingClients[i];
   362 		TWaitingClient& client = iWaitingClients[i];
   363 		if(aCurrentFrame == client.iTargetFrame)
   363 		if(aCurrentFrame >= client.iTargetFrame)
   364 			{
   364 			{
   365 			client.iObserver.ScreenUpdateComplete(KErrNone);
   365 			client.iObserver.ScreenUpdateComplete(KErrNone);
   366 			iWaitingClients.Remove(i);
   366 			iWaitingClients.Remove(i);
   367 			}
   367 			}
   368 		}
   368 		}
   369 	}
   369 	}
   370 
   370 
   371 /** 
   371 /** 
   372 Invoked when the rendering pipline signals that it is ready to receive updates.
   372 Invoked when the rendering pipline signals that it is ready to recieve updates.
   373 */
   373 */
   374 void CWindowServer::CDefaultAnimationScheduler::CScreenState::RunL() 
   374 void CWindowServer::CDefaultAnimationScheduler::CScreenState::RunL() 
   375 	{
   375 	{
   376 	iFrameCount++;
   376 	iFrameCount++;
   377 	
   377 	
   490 	}
   490 	}
   491 
   491 
   492 /**
   492 /**
   493 Perform redraw and return only when completed.
   493 Perform redraw and return only when completed.
   494 NOTE: This method uses CActiveSchedulerWait to run a "modal wait loop" while the
   494 NOTE: This method uses CActiveSchedulerWait to run a "modal wait loop" while the
   495 		redraw complete signal is pending. When the signal is received, AsyncStop() is
   495 		redraw complete signal is pending. When the signal is recieved, AsyncStop() is
   496 		invoked on all active wait loops for the signalling screen. 
   496 		invoked on all active wait loops for the signalling screen. 
   497 */
   497 */
   498 void CWindowServer::CDefaultAnimationScheduler::DoRedrawNow(MWsScreen& aScreen)
   498 void CWindowServer::CDefaultAnimationScheduler::DoRedrawNow(MWsScreen& aScreen)
   499 	{	
   499 	{	
   500 	TInt screenNumber = ScreenNumber (aScreen);
   500 	TInt screenNumber = ScreenNumber (aScreen);