Home | History | Annotate | Download | only in egl
      1 /* WARNING: This is auto-generated file. Do not modify, since changes will
      2  * be lost! Modify the generating script instead.
      3  *
      4  * Generated from Khronos EGL API description (egl.xml) revision 31042.
      5  */
      6 
      7 eglw::EGLBoolean CallLogWrapper::eglBindAPI (eglw::EGLenum api)
      8 {
      9 	if (m_enableLog)
     10 		m_log << TestLog::Message << "eglBindAPI(" << getAPIStr(api) << ");" << TestLog::EndMessage;
     11 	eglw::EGLBoolean returnValue = m_egl.bindAPI(api);
     12 	if (m_enableLog)
     13 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
     14 	return returnValue;
     15 }
     16 
     17 eglw::EGLBoolean CallLogWrapper::eglBindTexImage (eglw::EGLDisplay dpy, eglw::EGLSurface surface, eglw::EGLint buffer)
     18 {
     19 	if (m_enableLog)
     20 		m_log << TestLog::Message << "eglBindTexImage(" << dpy << ", " << toHex(surface) << ", " << buffer << ");" << TestLog::EndMessage;
     21 	eglw::EGLBoolean returnValue = m_egl.bindTexImage(dpy, surface, buffer);
     22 	if (m_enableLog)
     23 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
     24 	return returnValue;
     25 }
     26 
     27 eglw::EGLBoolean CallLogWrapper::eglChooseConfig (eglw::EGLDisplay dpy, const eglw::EGLint *attrib_list, eglw::EGLConfig *configs, eglw::EGLint config_size, eglw::EGLint *num_config)
     28 {
     29 	if (m_enableLog)
     30 		m_log << TestLog::Message << "eglChooseConfig(" << dpy << ", " << getConfigAttribListStr(attrib_list) << ", " << configs << ", " << config_size << ", " << num_config << ");" << TestLog::EndMessage;
     31 	eglw::EGLBoolean returnValue = m_egl.chooseConfig(dpy, attrib_list, configs, config_size, num_config);
     32 	if (m_enableLog)
     33 	{
     34 		m_log << TestLog::Message << "// configs = " << getPointerStr(configs, (num_config && returnValue) ? deMin32(config_size, *num_config) : 0) << TestLog::EndMessage;
     35 		m_log << TestLog::Message << "// num_config = " << (num_config ? de::toString(*num_config) : "NULL") << TestLog::EndMessage;
     36 	}
     37 	if (m_enableLog)
     38 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
     39 	return returnValue;
     40 }
     41 
     42 eglw::EGLint CallLogWrapper::eglClientWaitSync (eglw::EGLDisplay dpy, eglw::EGLSync sync, eglw::EGLint flags, eglw::EGLTime timeout)
     43 {
     44 	if (m_enableLog)
     45 		m_log << TestLog::Message << "eglClientWaitSync(" << dpy << ", " << sync << ", " << flags << ", " << timeout << ");" << TestLog::EndMessage;
     46 	eglw::EGLint returnValue = m_egl.clientWaitSync(dpy, sync, flags, timeout);
     47 	if (m_enableLog)
     48 		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
     49 	return returnValue;
     50 }
     51 
     52 eglw::EGLBoolean CallLogWrapper::eglCopyBuffers (eglw::EGLDisplay dpy, eglw::EGLSurface surface, eglw::EGLNativePixmapType target)
     53 {
     54 	if (m_enableLog)
     55 		m_log << TestLog::Message << "eglCopyBuffers(" << dpy << ", " << toHex(surface) << ", " << toHex(target) << ");" << TestLog::EndMessage;
     56 	eglw::EGLBoolean returnValue = m_egl.copyBuffers(dpy, surface, target);
     57 	if (m_enableLog)
     58 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
     59 	return returnValue;
     60 }
     61 
     62 eglw::EGLContext CallLogWrapper::eglCreateContext (eglw::EGLDisplay dpy, eglw::EGLConfig config, eglw::EGLContext share_context, const eglw::EGLint *attrib_list)
     63 {
     64 	if (m_enableLog)
     65 		m_log << TestLog::Message << "eglCreateContext(" << dpy << ", " << toHex(config) << ", " << share_context << ", " << getContextAttribListStr(attrib_list) << ");" << TestLog::EndMessage;
     66 	eglw::EGLContext returnValue = m_egl.createContext(dpy, config, share_context, attrib_list);
     67 	if (m_enableLog)
     68 		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
     69 	return returnValue;
     70 }
     71 
     72 eglw::EGLImage CallLogWrapper::eglCreateImage (eglw::EGLDisplay dpy, eglw::EGLContext ctx, eglw::EGLenum target, eglw::EGLClientBuffer buffer, const eglw::EGLAttrib *attrib_list)
     73 {
     74 	if (m_enableLog)
     75 		m_log << TestLog::Message << "eglCreateImage(" << dpy << ", " << ctx << ", " << toHex(target) << ", " << toHex(buffer) << ", " << attrib_list << ");" << TestLog::EndMessage;
     76 	eglw::EGLImage returnValue = m_egl.createImage(dpy, ctx, target, buffer, attrib_list);
     77 	if (m_enableLog)
     78 		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
     79 	return returnValue;
     80 }
     81 
     82 eglw::EGLSurface CallLogWrapper::eglCreatePbufferFromClientBuffer (eglw::EGLDisplay dpy, eglw::EGLenum buftype, eglw::EGLClientBuffer buffer, eglw::EGLConfig config, const eglw::EGLint *attrib_list)
     83 {
     84 	if (m_enableLog)
     85 		m_log << TestLog::Message << "eglCreatePbufferFromClientBuffer(" << dpy << ", " << toHex(buftype) << ", " << toHex(buffer) << ", " << toHex(config) << ", " << attrib_list << ");" << TestLog::EndMessage;
     86 	eglw::EGLSurface returnValue = m_egl.createPbufferFromClientBuffer(dpy, buftype, buffer, config, attrib_list);
     87 	if (m_enableLog)
     88 		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
     89 	return returnValue;
     90 }
     91 
     92 eglw::EGLSurface CallLogWrapper::eglCreatePbufferSurface (eglw::EGLDisplay dpy, eglw::EGLConfig config, const eglw::EGLint *attrib_list)
     93 {
     94 	if (m_enableLog)
     95 		m_log << TestLog::Message << "eglCreatePbufferSurface(" << dpy << ", " << toHex(config) << ", " << getSurfaceAttribListStr(attrib_list) << ");" << TestLog::EndMessage;
     96 	eglw::EGLSurface returnValue = m_egl.createPbufferSurface(dpy, config, attrib_list);
     97 	if (m_enableLog)
     98 		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
     99 	return returnValue;
    100 }
    101 
    102 eglw::EGLSurface CallLogWrapper::eglCreatePixmapSurface (eglw::EGLDisplay dpy, eglw::EGLConfig config, eglw::EGLNativePixmapType pixmap, const eglw::EGLint *attrib_list)
    103 {
    104 	if (m_enableLog)
    105 		m_log << TestLog::Message << "eglCreatePixmapSurface(" << dpy << ", " << toHex(config) << ", " << toHex(pixmap) << ", " << getSurfaceAttribListStr(attrib_list) << ");" << TestLog::EndMessage;
    106 	eglw::EGLSurface returnValue = m_egl.createPixmapSurface(dpy, config, pixmap, attrib_list);
    107 	if (m_enableLog)
    108 		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
    109 	return returnValue;
    110 }
    111 
    112 eglw::EGLSurface CallLogWrapper::eglCreatePlatformPixmapSurface (eglw::EGLDisplay dpy, eglw::EGLConfig config, void *native_pixmap, const eglw::EGLAttrib *attrib_list)
    113 {
    114 	if (m_enableLog)
    115 		m_log << TestLog::Message << "eglCreatePlatformPixmapSurface(" << dpy << ", " << toHex(config) << ", " << native_pixmap << ", " << attrib_list << ");" << TestLog::EndMessage;
    116 	eglw::EGLSurface returnValue = m_egl.createPlatformPixmapSurface(dpy, config, native_pixmap, attrib_list);
    117 	if (m_enableLog)
    118 		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
    119 	return returnValue;
    120 }
    121 
    122 eglw::EGLSurface CallLogWrapper::eglCreatePlatformWindowSurface (eglw::EGLDisplay dpy, eglw::EGLConfig config, void *native_window, const eglw::EGLAttrib *attrib_list)
    123 {
    124 	if (m_enableLog)
    125 		m_log << TestLog::Message << "eglCreatePlatformWindowSurface(" << dpy << ", " << toHex(config) << ", " << native_window << ", " << attrib_list << ");" << TestLog::EndMessage;
    126 	eglw::EGLSurface returnValue = m_egl.createPlatformWindowSurface(dpy, config, native_window, attrib_list);
    127 	if (m_enableLog)
    128 		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
    129 	return returnValue;
    130 }
    131 
    132 eglw::EGLSync CallLogWrapper::eglCreateSync (eglw::EGLDisplay dpy, eglw::EGLenum type, const eglw::EGLAttrib *attrib_list)
    133 {
    134 	if (m_enableLog)
    135 		m_log << TestLog::Message << "eglCreateSync(" << dpy << ", " << toHex(type) << ", " << attrib_list << ");" << TestLog::EndMessage;
    136 	eglw::EGLSync returnValue = m_egl.createSync(dpy, type, attrib_list);
    137 	if (m_enableLog)
    138 		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
    139 	return returnValue;
    140 }
    141 
    142 eglw::EGLSurface CallLogWrapper::eglCreateWindowSurface (eglw::EGLDisplay dpy, eglw::EGLConfig config, eglw::EGLNativeWindowType win, const eglw::EGLint *attrib_list)
    143 {
    144 	if (m_enableLog)
    145 		m_log << TestLog::Message << "eglCreateWindowSurface(" << dpy << ", " << toHex(config) << ", " << toHex(win) << ", " << getSurfaceAttribListStr(attrib_list) << ");" << TestLog::EndMessage;
    146 	eglw::EGLSurface returnValue = m_egl.createWindowSurface(dpy, config, win, attrib_list);
    147 	if (m_enableLog)
    148 		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
    149 	return returnValue;
    150 }
    151 
    152 eglw::EGLBoolean CallLogWrapper::eglDestroyContext (eglw::EGLDisplay dpy, eglw::EGLContext ctx)
    153 {
    154 	if (m_enableLog)
    155 		m_log << TestLog::Message << "eglDestroyContext(" << dpy << ", " << ctx << ");" << TestLog::EndMessage;
    156 	eglw::EGLBoolean returnValue = m_egl.destroyContext(dpy, ctx);
    157 	if (m_enableLog)
    158 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    159 	return returnValue;
    160 }
    161 
    162 eglw::EGLBoolean CallLogWrapper::eglDestroyImage (eglw::EGLDisplay dpy, eglw::EGLImage image)
    163 {
    164 	if (m_enableLog)
    165 		m_log << TestLog::Message << "eglDestroyImage(" << dpy << ", " << image << ");" << TestLog::EndMessage;
    166 	eglw::EGLBoolean returnValue = m_egl.destroyImage(dpy, image);
    167 	if (m_enableLog)
    168 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    169 	return returnValue;
    170 }
    171 
    172 eglw::EGLBoolean CallLogWrapper::eglDestroySurface (eglw::EGLDisplay dpy, eglw::EGLSurface surface)
    173 {
    174 	if (m_enableLog)
    175 		m_log << TestLog::Message << "eglDestroySurface(" << dpy << ", " << toHex(surface) << ");" << TestLog::EndMessage;
    176 	eglw::EGLBoolean returnValue = m_egl.destroySurface(dpy, surface);
    177 	if (m_enableLog)
    178 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    179 	return returnValue;
    180 }
    181 
    182 eglw::EGLBoolean CallLogWrapper::eglDestroySync (eglw::EGLDisplay dpy, eglw::EGLSync sync)
    183 {
    184 	if (m_enableLog)
    185 		m_log << TestLog::Message << "eglDestroySync(" << dpy << ", " << sync << ");" << TestLog::EndMessage;
    186 	eglw::EGLBoolean returnValue = m_egl.destroySync(dpy, sync);
    187 	if (m_enableLog)
    188 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    189 	return returnValue;
    190 }
    191 
    192 eglw::EGLBoolean CallLogWrapper::eglGetConfigAttrib (eglw::EGLDisplay dpy, eglw::EGLConfig config, eglw::EGLint attribute, eglw::EGLint *value)
    193 {
    194 	if (m_enableLog)
    195 		m_log << TestLog::Message << "eglGetConfigAttrib(" << dpy << ", " << toHex(config) << ", " << getConfigAttribStr(attribute) << ", " << value << ");" << TestLog::EndMessage;
    196 	eglw::EGLBoolean returnValue = m_egl.getConfigAttrib(dpy, config, attribute, value);
    197 	if (m_enableLog)
    198 	{
    199 		m_log << TestLog::Message << "// value = " << getConfigAttribValuePointerStr(attribute, value) << TestLog::EndMessage;
    200 	}
    201 	if (m_enableLog)
    202 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    203 	return returnValue;
    204 }
    205 
    206 eglw::EGLBoolean CallLogWrapper::eglGetConfigs (eglw::EGLDisplay dpy, eglw::EGLConfig *configs, eglw::EGLint config_size, eglw::EGLint *num_config)
    207 {
    208 	if (m_enableLog)
    209 		m_log << TestLog::Message << "eglGetConfigs(" << dpy << ", " << configs << ", " << config_size << ", " << num_config << ");" << TestLog::EndMessage;
    210 	eglw::EGLBoolean returnValue = m_egl.getConfigs(dpy, configs, config_size, num_config);
    211 	if (m_enableLog)
    212 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    213 	return returnValue;
    214 }
    215 
    216 eglw::EGLContext CallLogWrapper::eglGetCurrentContext ()
    217 {
    218 	if (m_enableLog)
    219 		m_log << TestLog::Message << "eglGetCurrentContext(" << ");" << TestLog::EndMessage;
    220 	eglw::EGLContext returnValue = m_egl.getCurrentContext();
    221 	if (m_enableLog)
    222 		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
    223 	return returnValue;
    224 }
    225 
    226 eglw::EGLDisplay CallLogWrapper::eglGetCurrentDisplay ()
    227 {
    228 	if (m_enableLog)
    229 		m_log << TestLog::Message << "eglGetCurrentDisplay(" << ");" << TestLog::EndMessage;
    230 	eglw::EGLDisplay returnValue = m_egl.getCurrentDisplay();
    231 	if (m_enableLog)
    232 		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
    233 	return returnValue;
    234 }
    235 
    236 eglw::EGLSurface CallLogWrapper::eglGetCurrentSurface (eglw::EGLint readdraw)
    237 {
    238 	if (m_enableLog)
    239 		m_log << TestLog::Message << "eglGetCurrentSurface(" << getSurfaceTargetStr(readdraw) << ");" << TestLog::EndMessage;
    240 	eglw::EGLSurface returnValue = m_egl.getCurrentSurface(readdraw);
    241 	if (m_enableLog)
    242 		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
    243 	return returnValue;
    244 }
    245 
    246 eglw::EGLDisplay CallLogWrapper::eglGetDisplay (eglw::EGLNativeDisplayType display_id)
    247 {
    248 	if (m_enableLog)
    249 		m_log << TestLog::Message << "eglGetDisplay(" << toHex(display_id) << ");" << TestLog::EndMessage;
    250 	eglw::EGLDisplay returnValue = m_egl.getDisplay(display_id);
    251 	if (m_enableLog)
    252 		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
    253 	return returnValue;
    254 }
    255 
    256 eglw::EGLint CallLogWrapper::eglGetError ()
    257 {
    258 	if (m_enableLog)
    259 		m_log << TestLog::Message << "eglGetError(" << ");" << TestLog::EndMessage;
    260 	eglw::EGLint returnValue = m_egl.getError();
    261 	if (m_enableLog)
    262 		m_log << TestLog::Message << "// " << getErrorStr(returnValue) << " returned" << TestLog::EndMessage;
    263 	return returnValue;
    264 }
    265 
    266 eglw::EGLDisplay CallLogWrapper::eglGetPlatformDisplay (eglw::EGLenum platform, void *native_display, const eglw::EGLAttrib *attrib_list)
    267 {
    268 	if (m_enableLog)
    269 		m_log << TestLog::Message << "eglGetPlatformDisplay(" << toHex(platform) << ", " << native_display << ", " << attrib_list << ");" << TestLog::EndMessage;
    270 	eglw::EGLDisplay returnValue = m_egl.getPlatformDisplay(platform, native_display, attrib_list);
    271 	if (m_enableLog)
    272 		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
    273 	return returnValue;
    274 }
    275 
    276 eglw::__eglMustCastToProperFunctionPointerType CallLogWrapper::eglGetProcAddress (const char *procname)
    277 {
    278 	if (m_enableLog)
    279 		m_log << TestLog::Message << "eglGetProcAddress(" << getStringStr(procname) << ");" << TestLog::EndMessage;
    280 	eglw::__eglMustCastToProperFunctionPointerType returnValue = m_egl.getProcAddress(procname);
    281 	if (m_enableLog)
    282 		m_log << TestLog::Message << "// " << tcu::toHex(returnValue) << " returned" << TestLog::EndMessage;
    283 	return returnValue;
    284 }
    285 
    286 eglw::EGLBoolean CallLogWrapper::eglGetSyncAttrib (eglw::EGLDisplay dpy, eglw::EGLSync sync, eglw::EGLint attribute, eglw::EGLAttrib *value)
    287 {
    288 	if (m_enableLog)
    289 		m_log << TestLog::Message << "eglGetSyncAttrib(" << dpy << ", " << sync << ", " << attribute << ", " << value << ");" << TestLog::EndMessage;
    290 	eglw::EGLBoolean returnValue = m_egl.getSyncAttrib(dpy, sync, attribute, value);
    291 	if (m_enableLog)
    292 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    293 	return returnValue;
    294 }
    295 
    296 eglw::EGLBoolean CallLogWrapper::eglInitialize (eglw::EGLDisplay dpy, eglw::EGLint *major, eglw::EGLint *minor)
    297 {
    298 	if (m_enableLog)
    299 		m_log << TestLog::Message << "eglInitialize(" << dpy << ", " << major << ", " << minor << ");" << TestLog::EndMessage;
    300 	eglw::EGLBoolean returnValue = m_egl.initialize(dpy, major, minor);
    301 	if (m_enableLog)
    302 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    303 	return returnValue;
    304 }
    305 
    306 eglw::EGLBoolean CallLogWrapper::eglMakeCurrent (eglw::EGLDisplay dpy, eglw::EGLSurface draw, eglw::EGLSurface read, eglw::EGLContext ctx)
    307 {
    308 	if (m_enableLog)
    309 		m_log << TestLog::Message << "eglMakeCurrent(" << dpy << ", " << toHex(draw) << ", " << toHex(read) << ", " << ctx << ");" << TestLog::EndMessage;
    310 	eglw::EGLBoolean returnValue = m_egl.makeCurrent(dpy, draw, read, ctx);
    311 	if (m_enableLog)
    312 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    313 	return returnValue;
    314 }
    315 
    316 eglw::EGLenum CallLogWrapper::eglQueryAPI ()
    317 {
    318 	if (m_enableLog)
    319 		m_log << TestLog::Message << "eglQueryAPI(" << ");" << TestLog::EndMessage;
    320 	eglw::EGLenum returnValue = m_egl.queryAPI();
    321 	if (m_enableLog)
    322 		m_log << TestLog::Message << "// " << getAPIStr(returnValue) << " returned" << TestLog::EndMessage;
    323 	return returnValue;
    324 }
    325 
    326 eglw::EGLBoolean CallLogWrapper::eglQueryContext (eglw::EGLDisplay dpy, eglw::EGLContext ctx, eglw::EGLint attribute, eglw::EGLint *value)
    327 {
    328 	if (m_enableLog)
    329 		m_log << TestLog::Message << "eglQueryContext(" << dpy << ", " << ctx << ", " << getContextAttribStr(attribute) << ", " << value << ");" << TestLog::EndMessage;
    330 	eglw::EGLBoolean returnValue = m_egl.queryContext(dpy, ctx, attribute, value);
    331 	if (m_enableLog)
    332 	{
    333 		m_log << TestLog::Message << "// value = " << getContextAttribValuePointerStr(attribute, value) << TestLog::EndMessage;
    334 	}
    335 	if (m_enableLog)
    336 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    337 	return returnValue;
    338 }
    339 
    340 const char * CallLogWrapper::eglQueryString (eglw::EGLDisplay dpy, eglw::EGLint name)
    341 {
    342 	if (m_enableLog)
    343 		m_log << TestLog::Message << "eglQueryString(" << dpy << ", " << name << ");" << TestLog::EndMessage;
    344 	const char * returnValue = m_egl.queryString(dpy, name);
    345 	if (m_enableLog)
    346 		m_log << TestLog::Message << "// " << getStringStr(returnValue) << " returned" << TestLog::EndMessage;
    347 	return returnValue;
    348 }
    349 
    350 eglw::EGLBoolean CallLogWrapper::eglQuerySurface (eglw::EGLDisplay dpy, eglw::EGLSurface surface, eglw::EGLint attribute, eglw::EGLint *value)
    351 {
    352 	if (m_enableLog)
    353 		m_log << TestLog::Message << "eglQuerySurface(" << dpy << ", " << toHex(surface) << ", " << getSurfaceAttribStr(attribute) << ", " << value << ");" << TestLog::EndMessage;
    354 	eglw::EGLBoolean returnValue = m_egl.querySurface(dpy, surface, attribute, value);
    355 	if (m_enableLog)
    356 	{
    357 		m_log << TestLog::Message << "// value = " << getSurfaceAttribValuePointerStr(attribute, value) << TestLog::EndMessage;
    358 	}
    359 	if (m_enableLog)
    360 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    361 	return returnValue;
    362 }
    363 
    364 eglw::EGLBoolean CallLogWrapper::eglReleaseTexImage (eglw::EGLDisplay dpy, eglw::EGLSurface surface, eglw::EGLint buffer)
    365 {
    366 	if (m_enableLog)
    367 		m_log << TestLog::Message << "eglReleaseTexImage(" << dpy << ", " << toHex(surface) << ", " << buffer << ");" << TestLog::EndMessage;
    368 	eglw::EGLBoolean returnValue = m_egl.releaseTexImage(dpy, surface, buffer);
    369 	if (m_enableLog)
    370 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    371 	return returnValue;
    372 }
    373 
    374 eglw::EGLBoolean CallLogWrapper::eglReleaseThread ()
    375 {
    376 	if (m_enableLog)
    377 		m_log << TestLog::Message << "eglReleaseThread(" << ");" << TestLog::EndMessage;
    378 	eglw::EGLBoolean returnValue = m_egl.releaseThread();
    379 	if (m_enableLog)
    380 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    381 	return returnValue;
    382 }
    383 
    384 eglw::EGLBoolean CallLogWrapper::eglSurfaceAttrib (eglw::EGLDisplay dpy, eglw::EGLSurface surface, eglw::EGLint attribute, eglw::EGLint value)
    385 {
    386 	if (m_enableLog)
    387 		m_log << TestLog::Message << "eglSurfaceAttrib(" << dpy << ", " << toHex(surface) << ", " << getSurfaceAttribStr(attribute) << ", " << getSurfaceAttribValueStr(attribute, value) << ");" << TestLog::EndMessage;
    388 	eglw::EGLBoolean returnValue = m_egl.surfaceAttrib(dpy, surface, attribute, value);
    389 	if (m_enableLog)
    390 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    391 	return returnValue;
    392 }
    393 
    394 eglw::EGLBoolean CallLogWrapper::eglSwapBuffers (eglw::EGLDisplay dpy, eglw::EGLSurface surface)
    395 {
    396 	if (m_enableLog)
    397 		m_log << TestLog::Message << "eglSwapBuffers(" << dpy << ", " << toHex(surface) << ");" << TestLog::EndMessage;
    398 	eglw::EGLBoolean returnValue = m_egl.swapBuffers(dpy, surface);
    399 	if (m_enableLog)
    400 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    401 	return returnValue;
    402 }
    403 
    404 eglw::EGLBoolean CallLogWrapper::eglSwapInterval (eglw::EGLDisplay dpy, eglw::EGLint interval)
    405 {
    406 	if (m_enableLog)
    407 		m_log << TestLog::Message << "eglSwapInterval(" << dpy << ", " << interval << ");" << TestLog::EndMessage;
    408 	eglw::EGLBoolean returnValue = m_egl.swapInterval(dpy, interval);
    409 	if (m_enableLog)
    410 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    411 	return returnValue;
    412 }
    413 
    414 eglw::EGLBoolean CallLogWrapper::eglTerminate (eglw::EGLDisplay dpy)
    415 {
    416 	if (m_enableLog)
    417 		m_log << TestLog::Message << "eglTerminate(" << dpy << ");" << TestLog::EndMessage;
    418 	eglw::EGLBoolean returnValue = m_egl.terminate(dpy);
    419 	if (m_enableLog)
    420 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    421 	return returnValue;
    422 }
    423 
    424 eglw::EGLBoolean CallLogWrapper::eglWaitClient ()
    425 {
    426 	if (m_enableLog)
    427 		m_log << TestLog::Message << "eglWaitClient(" << ");" << TestLog::EndMessage;
    428 	eglw::EGLBoolean returnValue = m_egl.waitClient();
    429 	if (m_enableLog)
    430 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    431 	return returnValue;
    432 }
    433 
    434 eglw::EGLBoolean CallLogWrapper::eglWaitGL ()
    435 {
    436 	if (m_enableLog)
    437 		m_log << TestLog::Message << "eglWaitGL(" << ");" << TestLog::EndMessage;
    438 	eglw::EGLBoolean returnValue = m_egl.waitGL();
    439 	if (m_enableLog)
    440 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    441 	return returnValue;
    442 }
    443 
    444 eglw::EGLBoolean CallLogWrapper::eglWaitNative (eglw::EGLint engine)
    445 {
    446 	if (m_enableLog)
    447 		m_log << TestLog::Message << "eglWaitNative(" << engine << ");" << TestLog::EndMessage;
    448 	eglw::EGLBoolean returnValue = m_egl.waitNative(engine);
    449 	if (m_enableLog)
    450 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    451 	return returnValue;
    452 }
    453 
    454 eglw::EGLBoolean CallLogWrapper::eglWaitSync (eglw::EGLDisplay dpy, eglw::EGLSync sync, eglw::EGLint flags)
    455 {
    456 	if (m_enableLog)
    457 		m_log << TestLog::Message << "eglWaitSync(" << dpy << ", " << sync << ", " << flags << ");" << TestLog::EndMessage;
    458 	eglw::EGLBoolean returnValue = m_egl.waitSync(dpy, sync, flags);
    459 	if (m_enableLog)
    460 		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
    461 	return returnValue;
    462 }
    463