equal
deleted
inserted
replaced
1116 return EGL_FALSE; |
1116 return EGL_FALSE; |
1117 } |
1117 } |
1118 EGL_TRACE("CGuestEGL::eglMakeCurrent call host"); |
1118 EGL_TRACE("CGuestEGL::eglMakeCurrent call host"); |
1119 RemoteFunctionCallData rfcdata; EglRFC eglApiData( rfcdata ); |
1119 RemoteFunctionCallData rfcdata; EglRFC eglApiData( rfcdata ); |
1120 eglApiData.Init( EglRFC::EeglMakeCurrent ); |
1120 eglApiData.Init( EglRFC::EeglMakeCurrent ); |
1121 eglApiData.AppendEGLDisplay(aDisplay); |
1121 eglApiData.AppendEGLDisplay(EGL_NO_DISPLAY); |
1122 eglApiData.AppendEGLSurface(aDraw); |
1122 eglApiData.AppendEGLSurface(EGL_NO_SURFACE); |
1123 eglApiData.AppendEGLSurface(aRead); |
1123 eglApiData.AppendEGLSurface(EGL_NO_SURFACE); |
1124 eglApiData.AppendEGLContext(aContext); |
1124 eglApiData.AppendEGLContext(EGL_NO_CONTEXT); |
1125 |
1125 |
1126 EGLBoolean ret = aThreadState.ExecEglBooleanCmd(eglApiData); |
1126 EGLBoolean ret = aThreadState.ExecEglBooleanCmd(eglApiData); |
1127 EGL_TRACE("CGuestEGL::eglMakeCurrent end success=%d", ret); |
1127 EGL_TRACE("CGuestEGL::eglMakeCurrent end success=%d", ret); |
1128 return (EGLBoolean)ret; |
1128 return (EGLBoolean)ret; |
1129 } |
1129 } |
1152 { |
1152 { |
1153 if ( EGL_NO_SURFACE != surfaces[i] ) |
1153 if ( EGL_NO_SURFACE != surfaces[i] ) |
1154 { |
1154 { |
1155 EGL_TRACE("CGuestEGL::eglMakeCurrent check surface %d", surfaces[i] ); |
1155 EGL_TRACE("CGuestEGL::eglMakeCurrent check surface %d", surfaces[i] ); |
1156 surfaceInfo[i] = EglInternalFunction_GetPlatformSurface( aDisplay, surfaces[i] ); |
1156 surfaceInfo[i] = EglInternalFunction_GetPlatformSurface( aDisplay, surfaces[i] ); |
|
1157 EGL_TRACE("CGuestEGL::eglMakeCurrent surfaces[%d] is %x", i, surfaces[i]); |
1157 //EGL_CHECK_ERROR( surfaceInfo, EGL_BAD_SURFACE , EGL_FALSE ); |
1158 //EGL_CHECK_ERROR( surfaceInfo, EGL_BAD_SURFACE , EGL_FALSE ); |
1158 if ( surfaceInfo[i] ) |
1159 if ( surfaceInfo[i] ) |
1159 { |
1160 { |
1160 TSize newSize; |
1161 TSize newSize; |
1161 switch (surfaceInfo[i]->iSurfaceType) |
1162 switch (surfaceInfo[i]->iSurfaceType) |
1214 EGL_TRACE(" eglApiData.AppendEGLSurface(readId = 0x%x);", readId); |
1215 EGL_TRACE(" eglApiData.AppendEGLSurface(readId = 0x%x);", readId); |
1215 eglApiData.AppendEGLSurface(readId); |
1216 eglApiData.AppendEGLSurface(readId); |
1216 |
1217 |
1217 eglApiData.AppendEGLContext(aContext); |
1218 eglApiData.AppendEGLContext(aContext); |
1218 EGLBoolean ret = aThreadState.ExecEglBooleanCmd(eglApiData); |
1219 EGLBoolean ret = aThreadState.ExecEglBooleanCmd(eglApiData); |
1219 EGL_TRACE("CGuestEGL::eglMakeCurrent end success=%d", ret); |
1220 EGL_TRACE("CGuestEGL::eglMakeCurrent last end success=%d", ret); |
1220 return (EGLBoolean)ret; |
1221 return (EGLBoolean)ret; |
1221 } |
1222 } |
1222 } |
1223 } |
1223 |
1224 |
1224 // FAISALMEMON HOLE 0.1 |
1225 // FAISALMEMON HOLE 0.1 |