1/* WARNING! THIS IS A PROGRAMMATICALLY GENERATED CODE. DO NOT MODIFY THE CODE,
2 * SINCE THE CHANGES WILL BE LOST! MODIFY THE GENERATING PYTHON INSTEAD.
3 */
4
5EGLint CallLogWrapper::eglGetError ()
6{
7	if (m_enableLog)
8		m_log << TestLog::Message << "eglGetError(" << ");" << TestLog::EndMessage;
9	EGLint returnValue = ::eglGetError();
10	if (m_enableLog)
11		m_log << TestLog::Message << "// " << getErrorStr(returnValue) << " returned" << TestLog::EndMessage;
12	return returnValue;
13}
14
15EGLDisplay CallLogWrapper::eglGetDisplay (EGLNativeDisplayType param0)
16{
17	if (m_enableLog)
18		m_log << TestLog::Message << "eglGetDisplay(" << toHex(param0) << ");" << TestLog::EndMessage;
19	EGLDisplay returnValue = ::eglGetDisplay(param0);
20	if (m_enableLog)
21		m_log << TestLog::Message << "// " << getEGLDisplayStr(returnValue) << " returned" << TestLog::EndMessage;
22	return returnValue;
23}
24
25EGLBoolean CallLogWrapper::eglInitialize (EGLDisplay param0, EGLint* param1, EGLint* param2)
26{
27	if (m_enableLog)
28		m_log << TestLog::Message << "eglInitialize(" << getEGLDisplayStr(param0) << ", " << toHex(param1) << ", " << toHex(param2) << ");" << TestLog::EndMessage;
29	EGLBoolean returnValue = ::eglInitialize(param0, param1, param2);
30	if (m_enableLog)
31		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
32	return returnValue;
33}
34
35EGLBoolean CallLogWrapper::eglTerminate (EGLDisplay param0)
36{
37	if (m_enableLog)
38		m_log << TestLog::Message << "eglTerminate(" << getEGLDisplayStr(param0) << ");" << TestLog::EndMessage;
39	EGLBoolean returnValue = ::eglTerminate(param0);
40	if (m_enableLog)
41		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
42	return returnValue;
43}
44
45const char* CallLogWrapper::eglQueryString (EGLDisplay param0, EGLint param1)
46{
47	if (m_enableLog)
48		m_log << TestLog::Message << "eglQueryString(" << getEGLDisplayStr(param0) << ", " << param1 << ");" << TestLog::EndMessage;
49	const char* returnValue = ::eglQueryString(param0, param1);
50	if (m_enableLog)
51		m_log << TestLog::Message << "// " << getStringStr(returnValue) << " returned" << TestLog::EndMessage;
52	return returnValue;
53}
54
55EGLBoolean CallLogWrapper::eglGetConfigs (EGLDisplay param0, EGLConfig* param1, EGLint param2, EGLint* param3)
56{
57	if (m_enableLog)
58		m_log << TestLog::Message << "eglGetConfigs(" << getEGLDisplayStr(param0) << ", " << toHex(param1) << ", " << param2 << ", " << toHex(param3) << ");" << TestLog::EndMessage;
59	EGLBoolean returnValue = ::eglGetConfigs(param0, param1, param2, param3);
60	if (m_enableLog)
61		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
62	return returnValue;
63}
64
65EGLBoolean CallLogWrapper::eglChooseConfig (EGLDisplay param0, const EGLint* param1, EGLConfig* param2, EGLint param3, EGLint* param4)
66{
67	if (m_enableLog)
68		m_log << TestLog::Message << "eglChooseConfig(" << getEGLDisplayStr(param0) << ", " << getConfigAttribListStr(param1) << ", " << toHex(param2) << ", " << param3 << ", " << toHex(param4) << ");" << TestLog::EndMessage;
69	EGLBoolean returnValue = ::eglChooseConfig(param0, param1, param2, param3, param4);
70	if (m_enableLog)
71	{
72		m_log << TestLog::Message << "// param 2 = " << getPointerStr(param2, (param4 && returnValue) ? deMin32(param3, *param4) : 0) << TestLog::EndMessage;
73		m_log << TestLog::Message << "// param 4 = " << (param4 ? de::toString(*param4) : "NULL") << TestLog::EndMessage;
74	}
75	if (m_enableLog)
76		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
77	return returnValue;
78}
79
80EGLBoolean CallLogWrapper::eglGetConfigAttrib (EGLDisplay param0, EGLConfig param1, EGLint param2, EGLint* param3)
81{
82	if (m_enableLog)
83		m_log << TestLog::Message << "eglGetConfigAttrib(" << getEGLDisplayStr(param0) << ", " << toHex(param1) << ", " << getConfigAttribStr(param2) << ", " << toHex(param3) << ");" << TestLog::EndMessage;
84	EGLBoolean returnValue = ::eglGetConfigAttrib(param0, param1, param2, param3);
85	if (m_enableLog)
86	{
87		m_log << TestLog::Message << "// param 3 = " << getConfigAttribValuePointerStr(param2, param3) << TestLog::EndMessage;
88	}
89	if (m_enableLog)
90		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
91	return returnValue;
92}
93
94EGLSurface CallLogWrapper::eglCreateWindowSurface (EGLDisplay param0, EGLConfig param1, EGLNativeWindowType param2, const EGLint* param3)
95{
96	if (m_enableLog)
97		m_log << TestLog::Message << "eglCreateWindowSurface(" << getEGLDisplayStr(param0) << ", " << toHex(param1) << ", " << toHex(param2) << ", " << getSurfaceAttribListStr(param3) << ");" << TestLog::EndMessage;
98	EGLSurface returnValue = ::eglCreateWindowSurface(param0, param1, param2, param3);
99	if (m_enableLog)
100		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
101	return returnValue;
102}
103
104EGLSurface CallLogWrapper::eglCreatePbufferSurface (EGLDisplay param0, EGLConfig param1, const EGLint* param2)
105{
106	if (m_enableLog)
107		m_log << TestLog::Message << "eglCreatePbufferSurface(" << getEGLDisplayStr(param0) << ", " << toHex(param1) << ", " << getSurfaceAttribListStr(param2) << ");" << TestLog::EndMessage;
108	EGLSurface returnValue = ::eglCreatePbufferSurface(param0, param1, param2);
109	if (m_enableLog)
110		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
111	return returnValue;
112}
113
114EGLSurface CallLogWrapper::eglCreatePixmapSurface (EGLDisplay param0, EGLConfig param1, EGLNativePixmapType param2, const EGLint* param3)
115{
116	if (m_enableLog)
117		m_log << TestLog::Message << "eglCreatePixmapSurface(" << getEGLDisplayStr(param0) << ", " << toHex(param1) << ", " << toHex(param2) << ", " << getSurfaceAttribListStr(param3) << ");" << TestLog::EndMessage;
118	EGLSurface returnValue = ::eglCreatePixmapSurface(param0, param1, param2, param3);
119	if (m_enableLog)
120		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
121	return returnValue;
122}
123
124EGLBoolean CallLogWrapper::eglDestroySurface (EGLDisplay param0, EGLSurface param1)
125{
126	if (m_enableLog)
127		m_log << TestLog::Message << "eglDestroySurface(" << getEGLDisplayStr(param0) << ", " << toHex(param1) << ");" << TestLog::EndMessage;
128	EGLBoolean returnValue = ::eglDestroySurface(param0, param1);
129	if (m_enableLog)
130		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
131	return returnValue;
132}
133
134EGLBoolean CallLogWrapper::eglQuerySurface (EGLDisplay param0, EGLSurface param1, EGLint param2, EGLint* param3)
135{
136	if (m_enableLog)
137		m_log << TestLog::Message << "eglQuerySurface(" << getEGLDisplayStr(param0) << ", " << toHex(param1) << ", " << getSurfaceAttribStr(param2) << ", " << toHex(param3) << ");" << TestLog::EndMessage;
138	EGLBoolean returnValue = ::eglQuerySurface(param0, param1, param2, param3);
139	if (m_enableLog)
140	{
141		m_log << TestLog::Message << "// param 3 = " << getSurfaceAttribValuePointerStr(param2, param3) << TestLog::EndMessage;
142	}
143	if (m_enableLog)
144		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
145	return returnValue;
146}
147
148EGLBoolean CallLogWrapper::eglBindAPI (EGLenum param0)
149{
150	if (m_enableLog)
151		m_log << TestLog::Message << "eglBindAPI(" << getAPIStr(param0) << ");" << TestLog::EndMessage;
152	EGLBoolean returnValue = ::eglBindAPI(param0);
153	if (m_enableLog)
154		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
155	return returnValue;
156}
157
158EGLenum CallLogWrapper::eglQueryAPI ()
159{
160	if (m_enableLog)
161		m_log << TestLog::Message << "eglQueryAPI(" << ");" << TestLog::EndMessage;
162	EGLenum returnValue = ::eglQueryAPI();
163	if (m_enableLog)
164		m_log << TestLog::Message << "// " << getAPIStr(returnValue) << " returned" << TestLog::EndMessage;
165	return returnValue;
166}
167
168EGLBoolean CallLogWrapper::eglWaitClient ()
169{
170	if (m_enableLog)
171		m_log << TestLog::Message << "eglWaitClient(" << ");" << TestLog::EndMessage;
172	EGLBoolean returnValue = ::eglWaitClient();
173	if (m_enableLog)
174		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
175	return returnValue;
176}
177
178EGLBoolean CallLogWrapper::eglReleaseThread ()
179{
180	if (m_enableLog)
181		m_log << TestLog::Message << "eglReleaseThread(" << ");" << TestLog::EndMessage;
182	EGLBoolean returnValue = ::eglReleaseThread();
183	if (m_enableLog)
184		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
185	return returnValue;
186}
187
188EGLSurface CallLogWrapper::eglCreatePbufferFromClientBuffer (EGLDisplay param0, EGLenum param1, EGLClientBuffer param2, EGLConfig param3, const EGLint* param4)
189{
190	if (m_enableLog)
191		m_log << TestLog::Message << "eglCreatePbufferFromClientBuffer(" << getEGLDisplayStr(param0) << ", " << toHex(param1) << ", " << toHex(param2) << ", " << toHex(param3) << ", " << toHex(param4) << ");" << TestLog::EndMessage;
192	EGLSurface returnValue = ::eglCreatePbufferFromClientBuffer(param0, param1, param2, param3, param4);
193	if (m_enableLog)
194		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
195	return returnValue;
196}
197
198EGLBoolean CallLogWrapper::eglSurfaceAttrib (EGLDisplay param0, EGLSurface param1, EGLint param2, EGLint param3)
199{
200	if (m_enableLog)
201		m_log << TestLog::Message << "eglSurfaceAttrib(" << getEGLDisplayStr(param0) << ", " << toHex(param1) << ", " << getSurfaceAttribStr(param2) << ", " << getSurfaceAttribValueStr(param2, param3) << ");" << TestLog::EndMessage;
202	EGLBoolean returnValue = ::eglSurfaceAttrib(param0, param1, param2, param3);
203	if (m_enableLog)
204		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
205	return returnValue;
206}
207
208EGLBoolean CallLogWrapper::eglBindTexImage (EGLDisplay param0, EGLSurface param1, EGLint param2)
209{
210	if (m_enableLog)
211		m_log << TestLog::Message << "eglBindTexImage(" << getEGLDisplayStr(param0) << ", " << toHex(param1) << ", " << param2 << ");" << TestLog::EndMessage;
212	EGLBoolean returnValue = ::eglBindTexImage(param0, param1, param2);
213	if (m_enableLog)
214		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
215	return returnValue;
216}
217
218EGLBoolean CallLogWrapper::eglReleaseTexImage (EGLDisplay param0, EGLSurface param1, EGLint param2)
219{
220	if (m_enableLog)
221		m_log << TestLog::Message << "eglReleaseTexImage(" << getEGLDisplayStr(param0) << ", " << toHex(param1) << ", " << param2 << ");" << TestLog::EndMessage;
222	EGLBoolean returnValue = ::eglReleaseTexImage(param0, param1, param2);
223	if (m_enableLog)
224		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
225	return returnValue;
226}
227
228EGLBoolean CallLogWrapper::eglSwapInterval (EGLDisplay param0, EGLint param1)
229{
230	if (m_enableLog)
231		m_log << TestLog::Message << "eglSwapInterval(" << getEGLDisplayStr(param0) << ", " << param1 << ");" << TestLog::EndMessage;
232	EGLBoolean returnValue = ::eglSwapInterval(param0, param1);
233	if (m_enableLog)
234		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
235	return returnValue;
236}
237
238EGLContext CallLogWrapper::eglCreateContext (EGLDisplay param0, EGLConfig param1, EGLContext param2, const EGLint* param3)
239{
240	if (m_enableLog)
241		m_log << TestLog::Message << "eglCreateContext(" << getEGLDisplayStr(param0) << ", " << toHex(param1) << ", " << getEGLContextStr(param2) << ", " << getContextAttribListStr(param3) << ");" << TestLog::EndMessage;
242	EGLContext returnValue = ::eglCreateContext(param0, param1, param2, param3);
243	if (m_enableLog)
244		m_log << TestLog::Message << "// " << getEGLContextStr(returnValue) << " returned" << TestLog::EndMessage;
245	return returnValue;
246}
247
248EGLBoolean CallLogWrapper::eglDestroyContext (EGLDisplay param0, EGLContext param1)
249{
250	if (m_enableLog)
251		m_log << TestLog::Message << "eglDestroyContext(" << getEGLDisplayStr(param0) << ", " << getEGLContextStr(param1) << ");" << TestLog::EndMessage;
252	EGLBoolean returnValue = ::eglDestroyContext(param0, param1);
253	if (m_enableLog)
254		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
255	return returnValue;
256}
257
258EGLBoolean CallLogWrapper::eglMakeCurrent (EGLDisplay param0, EGLSurface param1, EGLSurface param2, EGLContext param3)
259{
260	if (m_enableLog)
261		m_log << TestLog::Message << "eglMakeCurrent(" << getEGLDisplayStr(param0) << ", " << toHex(param1) << ", " << toHex(param2) << ", " << getEGLContextStr(param3) << ");" << TestLog::EndMessage;
262	EGLBoolean returnValue = ::eglMakeCurrent(param0, param1, param2, param3);
263	if (m_enableLog)
264		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
265	return returnValue;
266}
267
268EGLContext CallLogWrapper::eglGetCurrentContext ()
269{
270	if (m_enableLog)
271		m_log << TestLog::Message << "eglGetCurrentContext(" << ");" << TestLog::EndMessage;
272	EGLContext returnValue = ::eglGetCurrentContext();
273	if (m_enableLog)
274		m_log << TestLog::Message << "// " << getEGLContextStr(returnValue) << " returned" << TestLog::EndMessage;
275	return returnValue;
276}
277
278EGLSurface CallLogWrapper::eglGetCurrentSurface (EGLint param0)
279{
280	if (m_enableLog)
281		m_log << TestLog::Message << "eglGetCurrentSurface(" << getSurfaceTargetStr(param0) << ");" << TestLog::EndMessage;
282	EGLSurface returnValue = ::eglGetCurrentSurface(param0);
283	if (m_enableLog)
284		m_log << TestLog::Message << "// " << toHex(returnValue) << " returned" << TestLog::EndMessage;
285	return returnValue;
286}
287
288EGLDisplay CallLogWrapper::eglGetCurrentDisplay ()
289{
290	if (m_enableLog)
291		m_log << TestLog::Message << "eglGetCurrentDisplay(" << ");" << TestLog::EndMessage;
292	EGLDisplay returnValue = ::eglGetCurrentDisplay();
293	if (m_enableLog)
294		m_log << TestLog::Message << "// " << getEGLDisplayStr(returnValue) << " returned" << TestLog::EndMessage;
295	return returnValue;
296}
297
298EGLBoolean CallLogWrapper::eglQueryContext (EGLDisplay param0, EGLContext param1, EGLint param2, EGLint* param3)
299{
300	if (m_enableLog)
301		m_log << TestLog::Message << "eglQueryContext(" << getEGLDisplayStr(param0) << ", " << getEGLContextStr(param1) << ", " << getContextAttribStr(param2) << ", " << toHex(param3) << ");" << TestLog::EndMessage;
302	EGLBoolean returnValue = ::eglQueryContext(param0, param1, param2, param3);
303	if (m_enableLog)
304	{
305		m_log << TestLog::Message << "// param 3 = " << getContextAttribValuePointerStr(param2, param3) << TestLog::EndMessage;
306	}
307	if (m_enableLog)
308		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
309	return returnValue;
310}
311
312EGLBoolean CallLogWrapper::eglWaitGL ()
313{
314	if (m_enableLog)
315		m_log << TestLog::Message << "eglWaitGL(" << ");" << TestLog::EndMessage;
316	EGLBoolean returnValue = ::eglWaitGL();
317	if (m_enableLog)
318		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
319	return returnValue;
320}
321
322EGLBoolean CallLogWrapper::eglWaitNative (EGLint param0)
323{
324	if (m_enableLog)
325		m_log << TestLog::Message << "eglWaitNative(" << param0 << ");" << TestLog::EndMessage;
326	EGLBoolean returnValue = ::eglWaitNative(param0);
327	if (m_enableLog)
328		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
329	return returnValue;
330}
331
332EGLBoolean CallLogWrapper::eglSwapBuffers (EGLDisplay param0, EGLSurface param1)
333{
334	if (m_enableLog)
335		m_log << TestLog::Message << "eglSwapBuffers(" << getEGLDisplayStr(param0) << ", " << toHex(param1) << ");" << TestLog::EndMessage;
336	EGLBoolean returnValue = ::eglSwapBuffers(param0, param1);
337	if (m_enableLog)
338		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
339	return returnValue;
340}
341
342EGLBoolean CallLogWrapper::eglCopyBuffers (EGLDisplay param0, EGLSurface param1, EGLNativePixmapType param2)
343{
344	if (m_enableLog)
345		m_log << TestLog::Message << "eglCopyBuffers(" << getEGLDisplayStr(param0) << ", " << toHex(param1) << ", " << toHex(param2) << ");" << TestLog::EndMessage;
346	EGLBoolean returnValue = ::eglCopyBuffers(param0, param1, param2);
347	if (m_enableLog)
348		m_log << TestLog::Message << "// " << (returnValue != EGL_FALSE ? "EGL_TRUE" : "EGL_FALSE") << " returned" << TestLog::EndMessage;
349	return returnValue;
350}
351
352__eglMustCastToProperFunctionPointerType CallLogWrapper::eglGetProcAddress (const char* param0)
353{
354	if (m_enableLog)
355		m_log << TestLog::Message << "eglGetProcAddress(" << getStringStr(param0) << ");" << TestLog::EndMessage;
356	__eglMustCastToProperFunctionPointerType returnValue = ::eglGetProcAddress(param0);
357	if (m_enableLog)
358		m_log << TestLog::Message << "// " << tcu::toHex(returnValue) << " returned" << TestLog::EndMessage;
359	return returnValue;
360}
361