egl/egltest/endpointtestsuite/automated/tsrc/egltest_endpointstreamingtests_local.cpp
equal
deleted
inserted
replaced
220 |
220 |
221 TRequestStatus dispXTimesRs; |
221 TRequestStatus dispXTimesRs; |
222 User::LeaveIfError(aSurface->Notify(ENotifyWhenDispXTimes, dispXTimesRs, aNumTimes)); |
222 User::LeaveIfError(aSurface->Notify(ENotifyWhenDispXTimes, dispXTimesRs, aNumTimes)); |
223 |
223 |
224 TUint startTickCount = User::TickCount(); |
224 TUint startTickCount = User::TickCount(); |
225 aSurface->SubmitContentL(EFalse); |
225 User::LeaveIfError(aSurface->SubmitContent(EFalse)); |
226 |
226 |
227 TUint32 dummyTimeStamp; |
227 TUint32 dummyTimeStamp; |
228 TInt err = aSurface->WaitFor(ENotifyWhenDispXTimes, dispXTimesRs, timeout, dummyTimeStamp); |
228 TInt err = aSurface->WaitFor(ENotifyWhenDispXTimes, dispXTimesRs, timeout, dummyTimeStamp); |
229 if(err != KErrNone) |
229 if(err != KErrNone) |
230 { |
230 { |
252 }; |
252 }; |
253 RunScript(createEndpointSteps, iParams); |
253 RunScript(createEndpointSteps, iParams); |
254 CleanupStack::PushL(TCleanupItem(CleanupRemoteTestStep, this)); |
254 CleanupStack::PushL(TCleanupItem(CleanupRemoteTestStep, this)); |
255 |
255 |
256 //Local: Submit update for the surface so that the endpoint enters the ready state. |
256 //Local: Submit update for the surface so that the endpoint enters the ready state. |
257 surface->SubmitContentL(EFalse); |
257 User::LeaveIfError(surface->SubmitContent(ETrue)); |
258 |
258 |
259 //Remote: Set the EGL_DELAY_NOK value and begin streaming on the endpoint. |
259 //Remote: Set the EGL_DELAY_NOK value and begin streaming on the endpoint. |
260 static const TEngineTestCase setDelayAndBeginStreamingSteps[] = |
260 static const TEngineTestCase setDelayAndBeginStreamingSteps[] = |
261 { |
261 { |
262 { ESetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 5000 }, |
262 { ESetAttribCase, 0, EGL_SUCCESS, 0, 0, EGL_DELAY_NOK, 5000 }, |