xref: /aosp_15_r20/external/deqp/framework/egl/egluCallLogWrapper.inl (revision 35238bce31c2a825756842865a792f8cf7f89930)
1*35238bceSAndroid Build Coastguard Worker/* WARNING: This is auto-generated file. Do not modify, since changes will
2*35238bceSAndroid Build Coastguard Worker * be lost! Modify the generating script instead.
3*35238bceSAndroid Build Coastguard Worker *
4*35238bceSAndroid Build Coastguard Worker * Generated from Khronos EGL API description (egl.xml) revision 6550e9b12e0b4f11182bda30ae2a8dd56d0b02c8.
5*35238bceSAndroid Build Coastguard Worker */
6*35238bceSAndroid Build Coastguard Worker
7*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglBindAPI (eglw::EGLenum api)
8*35238bceSAndroid Build Coastguard Worker{
9*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
10*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglBindAPI(" << getAPIStr(api) << ");" << TestLog::EndMessage;
11*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.bindAPI(api);
12*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
13*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
14*35238bceSAndroid Build Coastguard Worker	return returnValue;
15*35238bceSAndroid Build Coastguard Worker}
16*35238bceSAndroid Build Coastguard Worker
17*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglBindTexImage (eglw::EGLDisplay dpy, eglw::EGLSurface surface, eglw::EGLint buffer)
18*35238bceSAndroid Build Coastguard Worker{
19*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
20*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglBindTexImage(" << dpy << ", " << toHex(surface) << ", " << buffer << ");" << TestLog::EndMessage;
21*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.bindTexImage(dpy, surface, buffer);
22*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
23*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
24*35238bceSAndroid Build Coastguard Worker	return returnValue;
25*35238bceSAndroid Build Coastguard Worker}
26*35238bceSAndroid Build Coastguard Worker
27*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglChooseConfig (eglw::EGLDisplay dpy, const eglw::EGLint *attrib_list, eglw::EGLConfig *configs, eglw::EGLint config_size, eglw::EGLint *num_config)
28*35238bceSAndroid Build Coastguard Worker{
29*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
30*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglChooseConfig(" << dpy << ", " << getConfigAttribListStr(attrib_list) << ", " << configs << ", " << config_size << ", " << num_config << ");" << TestLog::EndMessage;
31*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.chooseConfig(dpy, attrib_list, configs, config_size, num_config);
32*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
33*35238bceSAndroid Build Coastguard Worker	{
34*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// configs = " << getPointerStr(configs, (num_config && returnValue) ? deMin32(config_size, *num_config) : 0) << TestLog::EndMessage;
35*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// num_config = " << (num_config ? de::toString(*num_config) : "NULL") << TestLog::EndMessage;
36*35238bceSAndroid Build Coastguard Worker	}
37*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
38*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
39*35238bceSAndroid Build Coastguard Worker	return returnValue;
40*35238bceSAndroid Build Coastguard Worker}
41*35238bceSAndroid Build Coastguard Worker
42*35238bceSAndroid Build Coastguard Workereglw::EGLint CallLogWrapper::eglClientWaitSync (eglw::EGLDisplay dpy, eglw::EGLSync sync, eglw::EGLint flags, eglw::EGLTime timeout)
43*35238bceSAndroid Build Coastguard Worker{
44*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
45*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglClientWaitSync(" << dpy << ", " << sync << ", " << flags << ", " << timeout << ");" << TestLog::EndMessage;
46*35238bceSAndroid Build Coastguard Worker	eglw::EGLint returnValue = m_egl.clientWaitSync(dpy, sync, flags, timeout);
47*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
48*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
49*35238bceSAndroid Build Coastguard Worker	return returnValue;
50*35238bceSAndroid Build Coastguard Worker}
51*35238bceSAndroid Build Coastguard Worker
52*35238bceSAndroid Build Coastguard Workereglw::EGLint CallLogWrapper::eglClientWaitSyncKHR (eglw::EGLDisplay dpy, eglw::EGLSyncKHR sync, eglw::EGLint flags, eglw::EGLTimeKHR timeout)
53*35238bceSAndroid Build Coastguard Worker{
54*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
55*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglClientWaitSyncKHR(" << dpy << ", " << sync << ", " << flags << ", " << timeout << ");" << TestLog::EndMessage;
56*35238bceSAndroid Build Coastguard Worker	eglw::EGLint returnValue = m_egl.clientWaitSyncKHR(dpy, sync, flags, timeout);
57*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
58*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
59*35238bceSAndroid Build Coastguard Worker	return returnValue;
60*35238bceSAndroid Build Coastguard Worker}
61*35238bceSAndroid Build Coastguard Worker
62*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglCopyBuffers (eglw::EGLDisplay dpy, eglw::EGLSurface surface, eglw::EGLNativePixmapType target)
63*35238bceSAndroid Build Coastguard Worker{
64*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
65*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglCopyBuffers(" << dpy << ", " << toHex(surface) << ", " << toHex(target) << ");" << TestLog::EndMessage;
66*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.copyBuffers(dpy, surface, target);
67*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
68*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
69*35238bceSAndroid Build Coastguard Worker	return returnValue;
70*35238bceSAndroid Build Coastguard Worker}
71*35238bceSAndroid Build Coastguard Worker
72*35238bceSAndroid Build Coastguard Workereglw::EGLContext CallLogWrapper::eglCreateContext (eglw::EGLDisplay dpy, eglw::EGLConfig config, eglw::EGLContext share_context, const eglw::EGLint *attrib_list)
73*35238bceSAndroid Build Coastguard Worker{
74*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
75*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglCreateContext(" << dpy << ", " << toHex(config) << ", " << share_context << ", " << getContextAttribListStr(attrib_list) << ");" << TestLog::EndMessage;
76*35238bceSAndroid Build Coastguard Worker	eglw::EGLContext returnValue = m_egl.createContext(dpy, config, share_context, attrib_list);
77*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
78*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
79*35238bceSAndroid Build Coastguard Worker	return returnValue;
80*35238bceSAndroid Build Coastguard Worker}
81*35238bceSAndroid Build Coastguard Worker
82*35238bceSAndroid Build Coastguard Workereglw::EGLImage CallLogWrapper::eglCreateImage (eglw::EGLDisplay dpy, eglw::EGLContext ctx, eglw::EGLenum target, eglw::EGLClientBuffer buffer, const eglw::EGLAttrib *attrib_list)
83*35238bceSAndroid Build Coastguard Worker{
84*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
85*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglCreateImage(" << dpy << ", " << ctx << ", " << toHex(target) << ", " << toHex(buffer) << ", " << attrib_list << ");" << TestLog::EndMessage;
86*35238bceSAndroid Build Coastguard Worker	eglw::EGLImage returnValue = m_egl.createImage(dpy, ctx, target, buffer, attrib_list);
87*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
88*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
89*35238bceSAndroid Build Coastguard Worker	return returnValue;
90*35238bceSAndroid Build Coastguard Worker}
91*35238bceSAndroid Build Coastguard Worker
92*35238bceSAndroid Build Coastguard Workereglw::EGLImageKHR CallLogWrapper::eglCreateImageKHR (eglw::EGLDisplay dpy, eglw::EGLContext ctx, eglw::EGLenum target, eglw::EGLClientBuffer buffer, const eglw::EGLint *attrib_list)
93*35238bceSAndroid Build Coastguard Worker{
94*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
95*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglCreateImageKHR(" << dpy << ", " << ctx << ", " << toHex(target) << ", " << toHex(buffer) << ", " << attrib_list << ");" << TestLog::EndMessage;
96*35238bceSAndroid Build Coastguard Worker	eglw::EGLImageKHR returnValue = m_egl.createImageKHR(dpy, ctx, target, buffer, attrib_list);
97*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
98*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
99*35238bceSAndroid Build Coastguard Worker	return returnValue;
100*35238bceSAndroid Build Coastguard Worker}
101*35238bceSAndroid Build Coastguard Worker
102*35238bceSAndroid Build Coastguard Workereglw::EGLSurface CallLogWrapper::eglCreatePbufferFromClientBuffer (eglw::EGLDisplay dpy, eglw::EGLenum buftype, eglw::EGLClientBuffer buffer, eglw::EGLConfig config, const eglw::EGLint *attrib_list)
103*35238bceSAndroid Build Coastguard Worker{
104*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
105*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglCreatePbufferFromClientBuffer(" << dpy << ", " << toHex(buftype) << ", " << toHex(buffer) << ", " << toHex(config) << ", " << attrib_list << ");" << TestLog::EndMessage;
106*35238bceSAndroid Build Coastguard Worker	eglw::EGLSurface returnValue = m_egl.createPbufferFromClientBuffer(dpy, buftype, buffer, config, attrib_list);
107*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
108*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
109*35238bceSAndroid Build Coastguard Worker	return returnValue;
110*35238bceSAndroid Build Coastguard Worker}
111*35238bceSAndroid Build Coastguard Worker
112*35238bceSAndroid Build Coastguard Workereglw::EGLSurface CallLogWrapper::eglCreatePbufferSurface (eglw::EGLDisplay dpy, eglw::EGLConfig config, const eglw::EGLint *attrib_list)
113*35238bceSAndroid Build Coastguard Worker{
114*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
115*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglCreatePbufferSurface(" << dpy << ", " << toHex(config) << ", " << getSurfaceAttribListStr(attrib_list) << ");" << TestLog::EndMessage;
116*35238bceSAndroid Build Coastguard Worker	eglw::EGLSurface returnValue = m_egl.createPbufferSurface(dpy, config, attrib_list);
117*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
118*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
119*35238bceSAndroid Build Coastguard Worker	return returnValue;
120*35238bceSAndroid Build Coastguard Worker}
121*35238bceSAndroid Build Coastguard Worker
122*35238bceSAndroid Build Coastguard Workereglw::EGLSurface CallLogWrapper::eglCreatePixmapSurface (eglw::EGLDisplay dpy, eglw::EGLConfig config, eglw::EGLNativePixmapType pixmap, const eglw::EGLint *attrib_list)
123*35238bceSAndroid Build Coastguard Worker{
124*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
125*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglCreatePixmapSurface(" << dpy << ", " << toHex(config) << ", " << toHex(pixmap) << ", " << getSurfaceAttribListStr(attrib_list) << ");" << TestLog::EndMessage;
126*35238bceSAndroid Build Coastguard Worker	eglw::EGLSurface returnValue = m_egl.createPixmapSurface(dpy, config, pixmap, attrib_list);
127*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
128*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
129*35238bceSAndroid Build Coastguard Worker	return returnValue;
130*35238bceSAndroid Build Coastguard Worker}
131*35238bceSAndroid Build Coastguard Worker
132*35238bceSAndroid Build Coastguard Workereglw::EGLSurface CallLogWrapper::eglCreatePlatformPixmapSurface (eglw::EGLDisplay dpy, eglw::EGLConfig config, void *native_pixmap, const eglw::EGLAttrib *attrib_list)
133*35238bceSAndroid Build Coastguard Worker{
134*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
135*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglCreatePlatformPixmapSurface(" << dpy << ", " << toHex(config) << ", " << native_pixmap << ", " << attrib_list << ");" << TestLog::EndMessage;
136*35238bceSAndroid Build Coastguard Worker	eglw::EGLSurface returnValue = m_egl.createPlatformPixmapSurface(dpy, config, native_pixmap, attrib_list);
137*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
138*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
139*35238bceSAndroid Build Coastguard Worker	return returnValue;
140*35238bceSAndroid Build Coastguard Worker}
141*35238bceSAndroid Build Coastguard Worker
142*35238bceSAndroid Build Coastguard Workereglw::EGLSurface CallLogWrapper::eglCreatePlatformPixmapSurfaceEXT (eglw::EGLDisplay dpy, eglw::EGLConfig config, void *native_pixmap, const eglw::EGLint *attrib_list)
143*35238bceSAndroid Build Coastguard Worker{
144*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
145*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglCreatePlatformPixmapSurfaceEXT(" << dpy << ", " << toHex(config) << ", " << native_pixmap << ", " << attrib_list << ");" << TestLog::EndMessage;
146*35238bceSAndroid Build Coastguard Worker	eglw::EGLSurface returnValue = m_egl.createPlatformPixmapSurfaceEXT(dpy, config, native_pixmap, attrib_list);
147*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
148*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
149*35238bceSAndroid Build Coastguard Worker	return returnValue;
150*35238bceSAndroid Build Coastguard Worker}
151*35238bceSAndroid Build Coastguard Worker
152*35238bceSAndroid Build Coastguard Workereglw::EGLSurface CallLogWrapper::eglCreatePlatformWindowSurface (eglw::EGLDisplay dpy, eglw::EGLConfig config, void *native_window, const eglw::EGLAttrib *attrib_list)
153*35238bceSAndroid Build Coastguard Worker{
154*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
155*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglCreatePlatformWindowSurface(" << dpy << ", " << toHex(config) << ", " << native_window << ", " << attrib_list << ");" << TestLog::EndMessage;
156*35238bceSAndroid Build Coastguard Worker	eglw::EGLSurface returnValue = m_egl.createPlatformWindowSurface(dpy, config, native_window, attrib_list);
157*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
158*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
159*35238bceSAndroid Build Coastguard Worker	return returnValue;
160*35238bceSAndroid Build Coastguard Worker}
161*35238bceSAndroid Build Coastguard Worker
162*35238bceSAndroid Build Coastguard Workereglw::EGLSurface CallLogWrapper::eglCreatePlatformWindowSurfaceEXT (eglw::EGLDisplay dpy, eglw::EGLConfig config, void *native_window, const eglw::EGLint *attrib_list)
163*35238bceSAndroid Build Coastguard Worker{
164*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
165*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglCreatePlatformWindowSurfaceEXT(" << dpy << ", " << toHex(config) << ", " << native_window << ", " << attrib_list << ");" << TestLog::EndMessage;
166*35238bceSAndroid Build Coastguard Worker	eglw::EGLSurface returnValue = m_egl.createPlatformWindowSurfaceEXT(dpy, config, native_window, attrib_list);
167*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
168*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
169*35238bceSAndroid Build Coastguard Worker	return returnValue;
170*35238bceSAndroid Build Coastguard Worker}
171*35238bceSAndroid Build Coastguard Worker
172*35238bceSAndroid Build Coastguard Workereglw::EGLSync CallLogWrapper::eglCreateSync (eglw::EGLDisplay dpy, eglw::EGLenum type, const eglw::EGLAttrib *attrib_list)
173*35238bceSAndroid Build Coastguard Worker{
174*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
175*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglCreateSync(" << dpy << ", " << toHex(type) << ", " << attrib_list << ");" << TestLog::EndMessage;
176*35238bceSAndroid Build Coastguard Worker	eglw::EGLSync returnValue = m_egl.createSync(dpy, type, attrib_list);
177*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
178*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
179*35238bceSAndroid Build Coastguard Worker	return returnValue;
180*35238bceSAndroid Build Coastguard Worker}
181*35238bceSAndroid Build Coastguard Worker
182*35238bceSAndroid Build Coastguard Workereglw::EGLSyncKHR CallLogWrapper::eglCreateSyncKHR (eglw::EGLDisplay dpy, eglw::EGLenum type, const eglw::EGLint *attrib_list)
183*35238bceSAndroid Build Coastguard Worker{
184*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
185*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglCreateSyncKHR(" << dpy << ", " << toHex(type) << ", " << attrib_list << ");" << TestLog::EndMessage;
186*35238bceSAndroid Build Coastguard Worker	eglw::EGLSyncKHR returnValue = m_egl.createSyncKHR(dpy, type, attrib_list);
187*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
188*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
189*35238bceSAndroid Build Coastguard Worker	return returnValue;
190*35238bceSAndroid Build Coastguard Worker}
191*35238bceSAndroid Build Coastguard Worker
192*35238bceSAndroid Build Coastguard Workereglw::EGLSurface CallLogWrapper::eglCreateWindowSurface (eglw::EGLDisplay dpy, eglw::EGLConfig config, eglw::EGLNativeWindowType win, const eglw::EGLint *attrib_list)
193*35238bceSAndroid Build Coastguard Worker{
194*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
195*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglCreateWindowSurface(" << dpy << ", " << toHex(config) << ", " << toHex(win) << ", " << getSurfaceAttribListStr(attrib_list) << ");" << TestLog::EndMessage;
196*35238bceSAndroid Build Coastguard Worker	eglw::EGLSurface returnValue = m_egl.createWindowSurface(dpy, config, win, attrib_list);
197*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
198*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
199*35238bceSAndroid Build Coastguard Worker	return returnValue;
200*35238bceSAndroid Build Coastguard Worker}
201*35238bceSAndroid Build Coastguard Worker
202*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglDestroyContext (eglw::EGLDisplay dpy, eglw::EGLContext ctx)
203*35238bceSAndroid Build Coastguard Worker{
204*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
205*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglDestroyContext(" << dpy << ", " << ctx << ");" << TestLog::EndMessage;
206*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.destroyContext(dpy, ctx);
207*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
208*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
209*35238bceSAndroid Build Coastguard Worker	return returnValue;
210*35238bceSAndroid Build Coastguard Worker}
211*35238bceSAndroid Build Coastguard Worker
212*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglDestroyImage (eglw::EGLDisplay dpy, eglw::EGLImage image)
213*35238bceSAndroid Build Coastguard Worker{
214*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
215*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglDestroyImage(" << dpy << ", " << image << ");" << TestLog::EndMessage;
216*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.destroyImage(dpy, image);
217*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
218*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
219*35238bceSAndroid Build Coastguard Worker	return returnValue;
220*35238bceSAndroid Build Coastguard Worker}
221*35238bceSAndroid Build Coastguard Worker
222*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglDestroyImageKHR (eglw::EGLDisplay dpy, eglw::EGLImageKHR image)
223*35238bceSAndroid Build Coastguard Worker{
224*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
225*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglDestroyImageKHR(" << dpy << ", " << image << ");" << TestLog::EndMessage;
226*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.destroyImageKHR(dpy, image);
227*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
228*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
229*35238bceSAndroid Build Coastguard Worker	return returnValue;
230*35238bceSAndroid Build Coastguard Worker}
231*35238bceSAndroid Build Coastguard Worker
232*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglDestroySurface (eglw::EGLDisplay dpy, eglw::EGLSurface surface)
233*35238bceSAndroid Build Coastguard Worker{
234*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
235*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglDestroySurface(" << dpy << ", " << toHex(surface) << ");" << TestLog::EndMessage;
236*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.destroySurface(dpy, surface);
237*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
238*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
239*35238bceSAndroid Build Coastguard Worker	return returnValue;
240*35238bceSAndroid Build Coastguard Worker}
241*35238bceSAndroid Build Coastguard Worker
242*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglDestroySync (eglw::EGLDisplay dpy, eglw::EGLSync sync)
243*35238bceSAndroid Build Coastguard Worker{
244*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
245*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglDestroySync(" << dpy << ", " << sync << ");" << TestLog::EndMessage;
246*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.destroySync(dpy, sync);
247*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
248*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
249*35238bceSAndroid Build Coastguard Worker	return returnValue;
250*35238bceSAndroid Build Coastguard Worker}
251*35238bceSAndroid Build Coastguard Worker
252*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglDestroySyncKHR (eglw::EGLDisplay dpy, eglw::EGLSyncKHR sync)
253*35238bceSAndroid Build Coastguard Worker{
254*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
255*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglDestroySyncKHR(" << dpy << ", " << sync << ");" << TestLog::EndMessage;
256*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.destroySyncKHR(dpy, sync);
257*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
258*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
259*35238bceSAndroid Build Coastguard Worker	return returnValue;
260*35238bceSAndroid Build Coastguard Worker}
261*35238bceSAndroid Build Coastguard Worker
262*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglGetConfigAttrib (eglw::EGLDisplay dpy, eglw::EGLConfig config, eglw::EGLint attribute, eglw::EGLint *value)
263*35238bceSAndroid Build Coastguard Worker{
264*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
265*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglGetConfigAttrib(" << dpy << ", " << toHex(config) << ", " << getConfigAttribStr(attribute) << ", " << value << ");" << TestLog::EndMessage;
266*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.getConfigAttrib(dpy, config, attribute, value);
267*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
268*35238bceSAndroid Build Coastguard Worker	{
269*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// value = " << getConfigAttribValuePointerStr(attribute, value) << TestLog::EndMessage;
270*35238bceSAndroid Build Coastguard Worker	}
271*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
272*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
273*35238bceSAndroid Build Coastguard Worker	return returnValue;
274*35238bceSAndroid Build Coastguard Worker}
275*35238bceSAndroid Build Coastguard Worker
276*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglGetConfigs (eglw::EGLDisplay dpy, eglw::EGLConfig *configs, eglw::EGLint config_size, eglw::EGLint *num_config)
277*35238bceSAndroid Build Coastguard Worker{
278*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
279*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglGetConfigs(" << dpy << ", " << configs << ", " << config_size << ", " << num_config << ");" << TestLog::EndMessage;
280*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.getConfigs(dpy, configs, config_size, num_config);
281*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
282*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
283*35238bceSAndroid Build Coastguard Worker	return returnValue;
284*35238bceSAndroid Build Coastguard Worker}
285*35238bceSAndroid Build Coastguard Worker
286*35238bceSAndroid Build Coastguard Workereglw::EGLContext CallLogWrapper::eglGetCurrentContext ()
287*35238bceSAndroid Build Coastguard Worker{
288*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
289*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglGetCurrentContext(" << ");" << TestLog::EndMessage;
290*35238bceSAndroid Build Coastguard Worker	eglw::EGLContext returnValue = m_egl.getCurrentContext();
291*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
292*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
293*35238bceSAndroid Build Coastguard Worker	return returnValue;
294*35238bceSAndroid Build Coastguard Worker}
295*35238bceSAndroid Build Coastguard Worker
296*35238bceSAndroid Build Coastguard Workereglw::EGLDisplay CallLogWrapper::eglGetCurrentDisplay ()
297*35238bceSAndroid Build Coastguard Worker{
298*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
299*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglGetCurrentDisplay(" << ");" << TestLog::EndMessage;
300*35238bceSAndroid Build Coastguard Worker	eglw::EGLDisplay returnValue = m_egl.getCurrentDisplay();
301*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
302*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
303*35238bceSAndroid Build Coastguard Worker	return returnValue;
304*35238bceSAndroid Build Coastguard Worker}
305*35238bceSAndroid Build Coastguard Worker
306*35238bceSAndroid Build Coastguard Workereglw::EGLSurface CallLogWrapper::eglGetCurrentSurface (eglw::EGLint readdraw)
307*35238bceSAndroid Build Coastguard Worker{
308*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
309*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglGetCurrentSurface(" << getSurfaceTargetStr(readdraw) << ");" << TestLog::EndMessage;
310*35238bceSAndroid Build Coastguard Worker	eglw::EGLSurface returnValue = m_egl.getCurrentSurface(readdraw);
311*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
312*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
313*35238bceSAndroid Build Coastguard Worker	return returnValue;
314*35238bceSAndroid Build Coastguard Worker}
315*35238bceSAndroid Build Coastguard Worker
316*35238bceSAndroid Build Coastguard Workereglw::EGLDisplay CallLogWrapper::eglGetDisplay (eglw::EGLNativeDisplayType display_id)
317*35238bceSAndroid Build Coastguard Worker{
318*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
319*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglGetDisplay(" << toHex(display_id) << ");" << TestLog::EndMessage;
320*35238bceSAndroid Build Coastguard Worker	eglw::EGLDisplay returnValue = m_egl.getDisplay(display_id);
321*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
322*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
323*35238bceSAndroid Build Coastguard Worker	return returnValue;
324*35238bceSAndroid Build Coastguard Worker}
325*35238bceSAndroid Build Coastguard Worker
326*35238bceSAndroid Build Coastguard Workereglw::EGLint CallLogWrapper::eglGetError ()
327*35238bceSAndroid Build Coastguard Worker{
328*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
329*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglGetError(" << ");" << TestLog::EndMessage;
330*35238bceSAndroid Build Coastguard Worker	eglw::EGLint returnValue = m_egl.getError();
331*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
332*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getErrorStr(returnValue) << " returned" << TestLog::EndMessage;
333*35238bceSAndroid Build Coastguard Worker	return returnValue;
334*35238bceSAndroid Build Coastguard Worker}
335*35238bceSAndroid Build Coastguard Worker
336*35238bceSAndroid Build Coastguard Workereglw::EGLDisplay CallLogWrapper::eglGetPlatformDisplay (eglw::EGLenum platform, void *native_display, const eglw::EGLAttrib *attrib_list)
337*35238bceSAndroid Build Coastguard Worker{
338*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
339*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglGetPlatformDisplay(" << toHex(platform) << ", " << native_display << ", " << attrib_list << ");" << TestLog::EndMessage;
340*35238bceSAndroid Build Coastguard Worker	eglw::EGLDisplay returnValue = m_egl.getPlatformDisplay(platform, native_display, attrib_list);
341*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
342*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
343*35238bceSAndroid Build Coastguard Worker	return returnValue;
344*35238bceSAndroid Build Coastguard Worker}
345*35238bceSAndroid Build Coastguard Worker
346*35238bceSAndroid Build Coastguard Workereglw::EGLDisplay CallLogWrapper::eglGetPlatformDisplayEXT (eglw::EGLenum platform, void *native_display, const eglw::EGLint *attrib_list)
347*35238bceSAndroid Build Coastguard Worker{
348*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
349*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglGetPlatformDisplayEXT(" << toHex(platform) << ", " << native_display << ", " << attrib_list << ");" << TestLog::EndMessage;
350*35238bceSAndroid Build Coastguard Worker	eglw::EGLDisplay returnValue = m_egl.getPlatformDisplayEXT(platform, native_display, attrib_list);
351*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
352*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
353*35238bceSAndroid Build Coastguard Worker	return returnValue;
354*35238bceSAndroid Build Coastguard Worker}
355*35238bceSAndroid Build Coastguard Worker
356*35238bceSAndroid Build Coastguard Workereglw::__eglMustCastToProperFunctionPointerType CallLogWrapper::eglGetProcAddress (const char *procname)
357*35238bceSAndroid Build Coastguard Worker{
358*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
359*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglGetProcAddress(" << getStringStr(procname) << ");" << TestLog::EndMessage;
360*35238bceSAndroid Build Coastguard Worker	eglw::__eglMustCastToProperFunctionPointerType returnValue = m_egl.getProcAddress(procname);
361*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
362*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << tcu::toHex(returnValue) << " returned" << TestLog::EndMessage;
363*35238bceSAndroid Build Coastguard Worker	return returnValue;
364*35238bceSAndroid Build Coastguard Worker}
365*35238bceSAndroid Build Coastguard Worker
366*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglGetSyncAttrib (eglw::EGLDisplay dpy, eglw::EGLSync sync, eglw::EGLint attribute, eglw::EGLAttrib *value)
367*35238bceSAndroid Build Coastguard Worker{
368*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
369*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglGetSyncAttrib(" << dpy << ", " << sync << ", " << attribute << ", " << value << ");" << TestLog::EndMessage;
370*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.getSyncAttrib(dpy, sync, attribute, value);
371*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
372*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
373*35238bceSAndroid Build Coastguard Worker	return returnValue;
374*35238bceSAndroid Build Coastguard Worker}
375*35238bceSAndroid Build Coastguard Worker
376*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglGetSyncAttribKHR (eglw::EGLDisplay dpy, eglw::EGLSyncKHR sync, eglw::EGLint attribute, eglw::EGLint *value)
377*35238bceSAndroid Build Coastguard Worker{
378*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
379*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglGetSyncAttribKHR(" << dpy << ", " << sync << ", " << attribute << ", " << value << ");" << TestLog::EndMessage;
380*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.getSyncAttribKHR(dpy, sync, attribute, value);
381*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
382*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
383*35238bceSAndroid Build Coastguard Worker	return returnValue;
384*35238bceSAndroid Build Coastguard Worker}
385*35238bceSAndroid Build Coastguard Worker
386*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglInitialize (eglw::EGLDisplay dpy, eglw::EGLint *major, eglw::EGLint *minor)
387*35238bceSAndroid Build Coastguard Worker{
388*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
389*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglInitialize(" << dpy << ", " << major << ", " << minor << ");" << TestLog::EndMessage;
390*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.initialize(dpy, major, minor);
391*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
392*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
393*35238bceSAndroid Build Coastguard Worker	return returnValue;
394*35238bceSAndroid Build Coastguard Worker}
395*35238bceSAndroid Build Coastguard Worker
396*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglLockSurfaceKHR (eglw::EGLDisplay dpy, eglw::EGLSurface surface, const eglw::EGLint *attrib_list)
397*35238bceSAndroid Build Coastguard Worker{
398*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
399*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglLockSurfaceKHR(" << dpy << ", " << toHex(surface) << ", " << attrib_list << ");" << TestLog::EndMessage;
400*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.lockSurfaceKHR(dpy, surface, attrib_list);
401*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
402*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
403*35238bceSAndroid Build Coastguard Worker	return returnValue;
404*35238bceSAndroid Build Coastguard Worker}
405*35238bceSAndroid Build Coastguard Worker
406*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglMakeCurrent (eglw::EGLDisplay dpy, eglw::EGLSurface draw, eglw::EGLSurface read, eglw::EGLContext ctx)
407*35238bceSAndroid Build Coastguard Worker{
408*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
409*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglMakeCurrent(" << dpy << ", " << toHex(draw) << ", " << toHex(read) << ", " << ctx << ");" << TestLog::EndMessage;
410*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.makeCurrent(dpy, draw, read, ctx);
411*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
412*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
413*35238bceSAndroid Build Coastguard Worker	return returnValue;
414*35238bceSAndroid Build Coastguard Worker}
415*35238bceSAndroid Build Coastguard Worker
416*35238bceSAndroid Build Coastguard Workereglw::EGLenum CallLogWrapper::eglQueryAPI ()
417*35238bceSAndroid Build Coastguard Worker{
418*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
419*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglQueryAPI(" << ");" << TestLog::EndMessage;
420*35238bceSAndroid Build Coastguard Worker	eglw::EGLenum returnValue = m_egl.queryAPI();
421*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
422*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getAPIStr(returnValue) << " returned" << TestLog::EndMessage;
423*35238bceSAndroid Build Coastguard Worker	return returnValue;
424*35238bceSAndroid Build Coastguard Worker}
425*35238bceSAndroid Build Coastguard Worker
426*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglQueryContext (eglw::EGLDisplay dpy, eglw::EGLContext ctx, eglw::EGLint attribute, eglw::EGLint *value)
427*35238bceSAndroid Build Coastguard Worker{
428*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
429*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglQueryContext(" << dpy << ", " << ctx << ", " << getContextAttribStr(attribute) << ", " << value << ");" << TestLog::EndMessage;
430*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.queryContext(dpy, ctx, attribute, value);
431*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
432*35238bceSAndroid Build Coastguard Worker	{
433*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// value = " << getContextAttribValuePointerStr(attribute, value) << TestLog::EndMessage;
434*35238bceSAndroid Build Coastguard Worker	}
435*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
436*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
437*35238bceSAndroid Build Coastguard Worker	return returnValue;
438*35238bceSAndroid Build Coastguard Worker}
439*35238bceSAndroid Build Coastguard Worker
440*35238bceSAndroid Build Coastguard Workerconst char * CallLogWrapper::eglQueryString (eglw::EGLDisplay dpy, eglw::EGLint name)
441*35238bceSAndroid Build Coastguard Worker{
442*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
443*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglQueryString(" << dpy << ", " << name << ");" << TestLog::EndMessage;
444*35238bceSAndroid Build Coastguard Worker	const char * returnValue = m_egl.queryString(dpy, name);
445*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
446*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getStringStr(returnValue) << " returned" << TestLog::EndMessage;
447*35238bceSAndroid Build Coastguard Worker	return returnValue;
448*35238bceSAndroid Build Coastguard Worker}
449*35238bceSAndroid Build Coastguard Worker
450*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglQuerySurface (eglw::EGLDisplay dpy, eglw::EGLSurface surface, eglw::EGLint attribute, eglw::EGLint *value)
451*35238bceSAndroid Build Coastguard Worker{
452*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
453*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglQuerySurface(" << dpy << ", " << toHex(surface) << ", " << getSurfaceAttribStr(attribute) << ", " << value << ");" << TestLog::EndMessage;
454*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.querySurface(dpy, surface, attribute, value);
455*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
456*35238bceSAndroid Build Coastguard Worker	{
457*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// value = " << getSurfaceAttribValuePointerStr(attribute, value) << TestLog::EndMessage;
458*35238bceSAndroid Build Coastguard Worker	}
459*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
460*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
461*35238bceSAndroid Build Coastguard Worker	return returnValue;
462*35238bceSAndroid Build Coastguard Worker}
463*35238bceSAndroid Build Coastguard Worker
464*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglReleaseTexImage (eglw::EGLDisplay dpy, eglw::EGLSurface surface, eglw::EGLint buffer)
465*35238bceSAndroid Build Coastguard Worker{
466*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
467*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglReleaseTexImage(" << dpy << ", " << toHex(surface) << ", " << buffer << ");" << TestLog::EndMessage;
468*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.releaseTexImage(dpy, surface, buffer);
469*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
470*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
471*35238bceSAndroid Build Coastguard Worker	return returnValue;
472*35238bceSAndroid Build Coastguard Worker}
473*35238bceSAndroid Build Coastguard Worker
474*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglReleaseThread ()
475*35238bceSAndroid Build Coastguard Worker{
476*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
477*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglReleaseThread(" << ");" << TestLog::EndMessage;
478*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.releaseThread();
479*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
480*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
481*35238bceSAndroid Build Coastguard Worker	return returnValue;
482*35238bceSAndroid Build Coastguard Worker}
483*35238bceSAndroid Build Coastguard Worker
484*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglSetDamageRegionKHR (eglw::EGLDisplay dpy, eglw::EGLSurface surface, eglw::EGLint *rects, eglw::EGLint n_rects)
485*35238bceSAndroid Build Coastguard Worker{
486*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
487*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglSetDamageRegionKHR(" << dpy << ", " << toHex(surface) << ", " << rects << ", " << n_rects << ");" << TestLog::EndMessage;
488*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.setDamageRegionKHR(dpy, surface, rects, n_rects);
489*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
490*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
491*35238bceSAndroid Build Coastguard Worker	return returnValue;
492*35238bceSAndroid Build Coastguard Worker}
493*35238bceSAndroid Build Coastguard Worker
494*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglSignalSyncKHR (eglw::EGLDisplay dpy, eglw::EGLSyncKHR sync, eglw::EGLenum mode)
495*35238bceSAndroid Build Coastguard Worker{
496*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
497*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglSignalSyncKHR(" << dpy << ", " << sync << ", " << toHex(mode) << ");" << TestLog::EndMessage;
498*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.signalSyncKHR(dpy, sync, mode);
499*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
500*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
501*35238bceSAndroid Build Coastguard Worker	return returnValue;
502*35238bceSAndroid Build Coastguard Worker}
503*35238bceSAndroid Build Coastguard Worker
504*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglSurfaceAttrib (eglw::EGLDisplay dpy, eglw::EGLSurface surface, eglw::EGLint attribute, eglw::EGLint value)
505*35238bceSAndroid Build Coastguard Worker{
506*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
507*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglSurfaceAttrib(" << dpy << ", " << toHex(surface) << ", " << getSurfaceAttribStr(attribute) << ", " << getSurfaceAttribValueStr(attribute, value) << ");" << TestLog::EndMessage;
508*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.surfaceAttrib(dpy, surface, attribute, value);
509*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
510*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
511*35238bceSAndroid Build Coastguard Worker	return returnValue;
512*35238bceSAndroid Build Coastguard Worker}
513*35238bceSAndroid Build Coastguard Worker
514*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglSwapBuffers (eglw::EGLDisplay dpy, eglw::EGLSurface surface)
515*35238bceSAndroid Build Coastguard Worker{
516*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
517*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglSwapBuffers(" << dpy << ", " << toHex(surface) << ");" << TestLog::EndMessage;
518*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.swapBuffers(dpy, surface);
519*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
520*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
521*35238bceSAndroid Build Coastguard Worker	return returnValue;
522*35238bceSAndroid Build Coastguard Worker}
523*35238bceSAndroid Build Coastguard Worker
524*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglSwapBuffersWithDamageKHR (eglw::EGLDisplay dpy, eglw::EGLSurface surface, const eglw::EGLint *rects, eglw::EGLint n_rects)
525*35238bceSAndroid Build Coastguard Worker{
526*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
527*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglSwapBuffersWithDamageKHR(" << dpy << ", " << toHex(surface) << ", " << rects << ", " << n_rects << ");" << TestLog::EndMessage;
528*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.swapBuffersWithDamageKHR(dpy, surface, rects, n_rects);
529*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
530*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
531*35238bceSAndroid Build Coastguard Worker	return returnValue;
532*35238bceSAndroid Build Coastguard Worker}
533*35238bceSAndroid Build Coastguard Worker
534*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglSwapInterval (eglw::EGLDisplay dpy, eglw::EGLint interval)
535*35238bceSAndroid Build Coastguard Worker{
536*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
537*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglSwapInterval(" << dpy << ", " << interval << ");" << TestLog::EndMessage;
538*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.swapInterval(dpy, interval);
539*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
540*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
541*35238bceSAndroid Build Coastguard Worker	return returnValue;
542*35238bceSAndroid Build Coastguard Worker}
543*35238bceSAndroid Build Coastguard Worker
544*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglTerminate (eglw::EGLDisplay dpy)
545*35238bceSAndroid Build Coastguard Worker{
546*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
547*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglTerminate(" << dpy << ");" << TestLog::EndMessage;
548*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.terminate(dpy);
549*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
550*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
551*35238bceSAndroid Build Coastguard Worker	return returnValue;
552*35238bceSAndroid Build Coastguard Worker}
553*35238bceSAndroid Build Coastguard Worker
554*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglUnlockSurfaceKHR (eglw::EGLDisplay dpy, eglw::EGLSurface surface)
555*35238bceSAndroid Build Coastguard Worker{
556*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
557*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglUnlockSurfaceKHR(" << dpy << ", " << toHex(surface) << ");" << TestLog::EndMessage;
558*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.unlockSurfaceKHR(dpy, surface);
559*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
560*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
561*35238bceSAndroid Build Coastguard Worker	return returnValue;
562*35238bceSAndroid Build Coastguard Worker}
563*35238bceSAndroid Build Coastguard Worker
564*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglWaitClient ()
565*35238bceSAndroid Build Coastguard Worker{
566*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
567*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglWaitClient(" << ");" << TestLog::EndMessage;
568*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.waitClient();
569*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
570*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
571*35238bceSAndroid Build Coastguard Worker	return returnValue;
572*35238bceSAndroid Build Coastguard Worker}
573*35238bceSAndroid Build Coastguard Worker
574*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglWaitGL ()
575*35238bceSAndroid Build Coastguard Worker{
576*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
577*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglWaitGL(" << ");" << TestLog::EndMessage;
578*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.waitGL();
579*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
580*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
581*35238bceSAndroid Build Coastguard Worker	return returnValue;
582*35238bceSAndroid Build Coastguard Worker}
583*35238bceSAndroid Build Coastguard Worker
584*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglWaitNative (eglw::EGLint engine)
585*35238bceSAndroid Build Coastguard Worker{
586*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
587*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglWaitNative(" << engine << ");" << TestLog::EndMessage;
588*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.waitNative(engine);
589*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
590*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
591*35238bceSAndroid Build Coastguard Worker	return returnValue;
592*35238bceSAndroid Build Coastguard Worker}
593*35238bceSAndroid Build Coastguard Worker
594*35238bceSAndroid Build Coastguard Workereglw::EGLBoolean CallLogWrapper::eglWaitSync (eglw::EGLDisplay dpy, eglw::EGLSync sync, eglw::EGLint flags)
595*35238bceSAndroid Build Coastguard Worker{
596*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
597*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglWaitSync(" << dpy << ", " << sync << ", " << flags << ");" << TestLog::EndMessage;
598*35238bceSAndroid Build Coastguard Worker	eglw::EGLBoolean returnValue = m_egl.waitSync(dpy, sync, flags);
599*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
600*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << getBooleanStr(returnValue) << " returned" << TestLog::EndMessage;
601*35238bceSAndroid Build Coastguard Worker	return returnValue;
602*35238bceSAndroid Build Coastguard Worker}
603*35238bceSAndroid Build Coastguard Worker
604*35238bceSAndroid Build Coastguard Workereglw::EGLint CallLogWrapper::eglWaitSyncKHR (eglw::EGLDisplay dpy, eglw::EGLSyncKHR sync, eglw::EGLint flags)
605*35238bceSAndroid Build Coastguard Worker{
606*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
607*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "eglWaitSyncKHR(" << dpy << ", " << sync << ", " << flags << ");" << TestLog::EndMessage;
608*35238bceSAndroid Build Coastguard Worker	eglw::EGLint returnValue = m_egl.waitSyncKHR(dpy, sync, flags);
609*35238bceSAndroid Build Coastguard Worker	if (m_enableLog)
610*35238bceSAndroid Build Coastguard Worker		m_log << TestLog::Message << "// " << returnValue << " returned" << TestLog::EndMessage;
611*35238bceSAndroid Build Coastguard Worker	return returnValue;
612*35238bceSAndroid Build Coastguard Worker}
613