1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py
9 // This file is included by gles2_trace_implementation.cc
10 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_
11 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_
13 void GLES2TraceImplementation::ActiveTexture(GLenum texture
) {
14 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ActiveTexture");
15 gl_
->ActiveTexture(texture
);
18 void GLES2TraceImplementation::AttachShader(GLuint program
, GLuint shader
) {
19 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::AttachShader");
20 gl_
->AttachShader(program
, shader
);
23 void GLES2TraceImplementation::BindAttribLocation(
24 GLuint program
, GLuint index
, const char* name
) {
25 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindAttribLocation");
26 gl_
->BindAttribLocation(program
, index
, name
);
29 void GLES2TraceImplementation::BindBuffer(GLenum target
, GLuint buffer
) {
30 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindBuffer");
31 gl_
->BindBuffer(target
, buffer
);
34 void GLES2TraceImplementation::BindFramebuffer(
35 GLenum target
, GLuint framebuffer
) {
36 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindFramebuffer");
37 gl_
->BindFramebuffer(target
, framebuffer
);
40 void GLES2TraceImplementation::BindRenderbuffer(
41 GLenum target
, GLuint renderbuffer
) {
42 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindRenderbuffer");
43 gl_
->BindRenderbuffer(target
, renderbuffer
);
46 void GLES2TraceImplementation::BindTexture(GLenum target
, GLuint texture
) {
47 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindTexture");
48 gl_
->BindTexture(target
, texture
);
51 void GLES2TraceImplementation::BlendColor(
52 GLclampf red
, GLclampf green
, GLclampf blue
, GLclampf alpha
) {
53 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendColor");
54 gl_
->BlendColor(red
, green
, blue
, alpha
);
57 void GLES2TraceImplementation::BlendEquation(GLenum mode
) {
58 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendEquation");
59 gl_
->BlendEquation(mode
);
62 void GLES2TraceImplementation::BlendEquationSeparate(
63 GLenum modeRGB
, GLenum modeAlpha
) {
64 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendEquationSeparate");
65 gl_
->BlendEquationSeparate(modeRGB
, modeAlpha
);
68 void GLES2TraceImplementation::BlendFunc(GLenum sfactor
, GLenum dfactor
) {
69 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendFunc");
70 gl_
->BlendFunc(sfactor
, dfactor
);
73 void GLES2TraceImplementation::BlendFuncSeparate(
74 GLenum srcRGB
, GLenum dstRGB
, GLenum srcAlpha
, GLenum dstAlpha
) {
75 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendFuncSeparate");
76 gl_
->BlendFuncSeparate(srcRGB
, dstRGB
, srcAlpha
, dstAlpha
);
79 void GLES2TraceImplementation::BufferData(
80 GLenum target
, GLsizeiptr size
, const void* data
, GLenum usage
) {
81 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BufferData");
82 gl_
->BufferData(target
, size
, data
, usage
);
85 void GLES2TraceImplementation::BufferSubData(
86 GLenum target
, GLintptr offset
, GLsizeiptr size
, const void* data
) {
87 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BufferSubData");
88 gl_
->BufferSubData(target
, offset
, size
, data
);
91 GLenum
GLES2TraceImplementation::CheckFramebufferStatus(GLenum target
) {
92 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CheckFramebufferStatus");
93 return gl_
->CheckFramebufferStatus(target
);
96 void GLES2TraceImplementation::Clear(GLbitfield mask
) {
97 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Clear");
101 void GLES2TraceImplementation::ClearColor(
102 GLclampf red
, GLclampf green
, GLclampf blue
, GLclampf alpha
) {
103 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ClearColor");
104 gl_
->ClearColor(red
, green
, blue
, alpha
);
107 void GLES2TraceImplementation::ClearDepthf(GLclampf depth
) {
108 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ClearDepthf");
109 gl_
->ClearDepthf(depth
);
112 void GLES2TraceImplementation::ClearStencil(GLint s
) {
113 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ClearStencil");
114 gl_
->ClearStencil(s
);
117 void GLES2TraceImplementation::ColorMask(
118 GLboolean red
, GLboolean green
, GLboolean blue
, GLboolean alpha
) {
119 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ColorMask");
120 gl_
->ColorMask(red
, green
, blue
, alpha
);
123 void GLES2TraceImplementation::CompileShader(GLuint shader
) {
124 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CompileShader");
125 gl_
->CompileShader(shader
);
128 void GLES2TraceImplementation::CompressedTexImage2D(
129 GLenum target
, GLint level
, GLenum internalformat
, GLsizei width
,
130 GLsizei height
, GLint border
, GLsizei imageSize
, const void* data
) {
131 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CompressedTexImage2D");
132 gl_
->CompressedTexImage2D(
133 target
, level
, internalformat
, width
, height
, border
, imageSize
, data
);
136 void GLES2TraceImplementation::CompressedTexSubImage2D(
137 GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLsizei width
,
138 GLsizei height
, GLenum format
, GLsizei imageSize
, const void* data
) {
139 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CompressedTexSubImage2D");
140 gl_
->CompressedTexSubImage2D(
141 target
, level
, xoffset
, yoffset
, width
, height
, format
, imageSize
, data
);
144 void GLES2TraceImplementation::CopyTexImage2D(
145 GLenum target
, GLint level
, GLenum internalformat
, GLint x
, GLint y
,
146 GLsizei width
, GLsizei height
, GLint border
) {
147 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexImage2D");
149 target
, level
, internalformat
, x
, y
, width
, height
, border
);
152 void GLES2TraceImplementation::CopyTexSubImage2D(
153 GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint x
, GLint y
,
154 GLsizei width
, GLsizei height
) {
155 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexSubImage2D");
156 gl_
->CopyTexSubImage2D(target
, level
, xoffset
, yoffset
, x
, y
, width
, height
);
159 GLuint
GLES2TraceImplementation::CreateProgram() {
160 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateProgram");
161 return gl_
->CreateProgram();
164 GLuint
GLES2TraceImplementation::CreateShader(GLenum type
) {
165 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateShader");
166 return gl_
->CreateShader(type
);
169 void GLES2TraceImplementation::CullFace(GLenum mode
) {
170 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CullFace");
174 void GLES2TraceImplementation::DeleteBuffers(
175 GLsizei n
, const GLuint
* buffers
) {
176 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteBuffers");
177 gl_
->DeleteBuffers(n
, buffers
);
180 void GLES2TraceImplementation::DeleteFramebuffers(
181 GLsizei n
, const GLuint
* framebuffers
) {
182 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteFramebuffers");
183 gl_
->DeleteFramebuffers(n
, framebuffers
);
186 void GLES2TraceImplementation::DeleteProgram(GLuint program
) {
187 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteProgram");
188 gl_
->DeleteProgram(program
);
191 void GLES2TraceImplementation::DeleteRenderbuffers(
192 GLsizei n
, const GLuint
* renderbuffers
) {
193 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteRenderbuffers");
194 gl_
->DeleteRenderbuffers(n
, renderbuffers
);
197 void GLES2TraceImplementation::DeleteShader(GLuint shader
) {
198 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteShader");
199 gl_
->DeleteShader(shader
);
202 void GLES2TraceImplementation::DeleteTextures(
203 GLsizei n
, const GLuint
* textures
) {
204 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteTextures");
205 gl_
->DeleteTextures(n
, textures
);
208 void GLES2TraceImplementation::DepthFunc(GLenum func
) {
209 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DepthFunc");
210 gl_
->DepthFunc(func
);
213 void GLES2TraceImplementation::DepthMask(GLboolean flag
) {
214 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DepthMask");
215 gl_
->DepthMask(flag
);
218 void GLES2TraceImplementation::DepthRangef(GLclampf zNear
, GLclampf zFar
) {
219 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DepthRangef");
220 gl_
->DepthRangef(zNear
, zFar
);
223 void GLES2TraceImplementation::DetachShader(GLuint program
, GLuint shader
) {
224 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DetachShader");
225 gl_
->DetachShader(program
, shader
);
228 void GLES2TraceImplementation::Disable(GLenum cap
) {
229 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Disable");
233 void GLES2TraceImplementation::DisableVertexAttribArray(GLuint index
) {
234 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DisableVertexAttribArray");
235 gl_
->DisableVertexAttribArray(index
);
238 void GLES2TraceImplementation::DrawArrays(
239 GLenum mode
, GLint first
, GLsizei count
) {
240 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawArrays");
241 gl_
->DrawArrays(mode
, first
, count
);
244 void GLES2TraceImplementation::DrawElements(
245 GLenum mode
, GLsizei count
, GLenum type
, const void* indices
) {
246 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawElements");
247 gl_
->DrawElements(mode
, count
, type
, indices
);
250 void GLES2TraceImplementation::Enable(GLenum cap
) {
251 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Enable");
255 void GLES2TraceImplementation::EnableVertexAttribArray(GLuint index
) {
256 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EnableVertexAttribArray");
257 gl_
->EnableVertexAttribArray(index
);
260 void GLES2TraceImplementation::Finish() {
261 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Finish");
265 void GLES2TraceImplementation::Flush() {
266 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Flush");
270 void GLES2TraceImplementation::FramebufferRenderbuffer(
271 GLenum target
, GLenum attachment
, GLenum renderbuffertarget
,
272 GLuint renderbuffer
) {
273 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FramebufferRenderbuffer");
274 gl_
->FramebufferRenderbuffer(
275 target
, attachment
, renderbuffertarget
, renderbuffer
);
278 void GLES2TraceImplementation::FramebufferTexture2D(
279 GLenum target
, GLenum attachment
, GLenum textarget
, GLuint texture
,
281 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FramebufferTexture2D");
282 gl_
->FramebufferTexture2D(target
, attachment
, textarget
, texture
, level
);
285 void GLES2TraceImplementation::FrontFace(GLenum mode
) {
286 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FrontFace");
287 gl_
->FrontFace(mode
);
290 void GLES2TraceImplementation::GenBuffers(GLsizei n
, GLuint
* buffers
) {
291 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenBuffers");
292 gl_
->GenBuffers(n
, buffers
);
295 void GLES2TraceImplementation::GenerateMipmap(GLenum target
) {
296 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenerateMipmap");
297 gl_
->GenerateMipmap(target
);
300 void GLES2TraceImplementation::GenFramebuffers(
301 GLsizei n
, GLuint
* framebuffers
) {
302 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenFramebuffers");
303 gl_
->GenFramebuffers(n
, framebuffers
);
306 void GLES2TraceImplementation::GenRenderbuffers(
307 GLsizei n
, GLuint
* renderbuffers
) {
308 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenRenderbuffers");
309 gl_
->GenRenderbuffers(n
, renderbuffers
);
312 void GLES2TraceImplementation::GenTextures(GLsizei n
, GLuint
* textures
) {
313 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenTextures");
314 gl_
->GenTextures(n
, textures
);
317 void GLES2TraceImplementation::GetActiveAttrib(
318 GLuint program
, GLuint index
, GLsizei bufsize
, GLsizei
* length
, GLint
* size
,
319 GLenum
* type
, char* name
) {
320 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveAttrib");
321 gl_
->GetActiveAttrib(program
, index
, bufsize
, length
, size
, type
, name
);
324 void GLES2TraceImplementation::GetActiveUniform(
325 GLuint program
, GLuint index
, GLsizei bufsize
, GLsizei
* length
, GLint
* size
,
326 GLenum
* type
, char* name
) {
327 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniform");
328 gl_
->GetActiveUniform(program
, index
, bufsize
, length
, size
, type
, name
);
331 void GLES2TraceImplementation::GetAttachedShaders(
332 GLuint program
, GLsizei maxcount
, GLsizei
* count
, GLuint
* shaders
) {
333 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetAttachedShaders");
334 gl_
->GetAttachedShaders(program
, maxcount
, count
, shaders
);
337 GLint
GLES2TraceImplementation::GetAttribLocation(
338 GLuint program
, const char* name
) {
339 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetAttribLocation");
340 return gl_
->GetAttribLocation(program
, name
);
343 void GLES2TraceImplementation::GetBooleanv(GLenum pname
, GLboolean
* params
) {
344 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetBooleanv");
345 gl_
->GetBooleanv(pname
, params
);
348 void GLES2TraceImplementation::GetBufferParameteriv(
349 GLenum target
, GLenum pname
, GLint
* params
) {
350 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetBufferParameteriv");
351 gl_
->GetBufferParameteriv(target
, pname
, params
);
354 GLenum
GLES2TraceImplementation::GetError() {
355 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetError");
356 return gl_
->GetError();
359 void GLES2TraceImplementation::GetFloatv(GLenum pname
, GLfloat
* params
) {
360 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetFloatv");
361 gl_
->GetFloatv(pname
, params
);
364 void GLES2TraceImplementation::GetFramebufferAttachmentParameteriv(
365 GLenum target
, GLenum attachment
, GLenum pname
, GLint
* params
) {
366 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetFramebufferAttachmentParameteriv"); // NOLINT
367 gl_
->GetFramebufferAttachmentParameteriv(target
, attachment
, pname
, params
);
370 void GLES2TraceImplementation::GetIntegerv(GLenum pname
, GLint
* params
) {
371 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetIntegerv");
372 gl_
->GetIntegerv(pname
, params
);
375 void GLES2TraceImplementation::GetProgramiv(
376 GLuint program
, GLenum pname
, GLint
* params
) {
377 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramiv");
378 gl_
->GetProgramiv(program
, pname
, params
);
381 void GLES2TraceImplementation::GetProgramInfoLog(
382 GLuint program
, GLsizei bufsize
, GLsizei
* length
, char* infolog
) {
383 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramInfoLog");
384 gl_
->GetProgramInfoLog(program
, bufsize
, length
, infolog
);
387 void GLES2TraceImplementation::GetRenderbufferParameteriv(
388 GLenum target
, GLenum pname
, GLint
* params
) {
389 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetRenderbufferParameteriv"); // NOLINT
390 gl_
->GetRenderbufferParameteriv(target
, pname
, params
);
393 void GLES2TraceImplementation::GetShaderiv(
394 GLuint shader
, GLenum pname
, GLint
* params
) {
395 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderiv");
396 gl_
->GetShaderiv(shader
, pname
, params
);
399 void GLES2TraceImplementation::GetShaderInfoLog(
400 GLuint shader
, GLsizei bufsize
, GLsizei
* length
, char* infolog
) {
401 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderInfoLog");
402 gl_
->GetShaderInfoLog(shader
, bufsize
, length
, infolog
);
405 void GLES2TraceImplementation::GetShaderPrecisionFormat(
406 GLenum shadertype
, GLenum precisiontype
, GLint
* range
, GLint
* precision
) {
407 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderPrecisionFormat");
408 gl_
->GetShaderPrecisionFormat(shadertype
, precisiontype
, range
, precision
);
411 void GLES2TraceImplementation::GetShaderSource(
412 GLuint shader
, GLsizei bufsize
, GLsizei
* length
, char* source
) {
413 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderSource");
414 gl_
->GetShaderSource(shader
, bufsize
, length
, source
);
417 const GLubyte
* GLES2TraceImplementation::GetString(GLenum name
) {
418 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetString");
419 return gl_
->GetString(name
);
422 void GLES2TraceImplementation::GetTexParameterfv(
423 GLenum target
, GLenum pname
, GLfloat
* params
) {
424 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetTexParameterfv");
425 gl_
->GetTexParameterfv(target
, pname
, params
);
428 void GLES2TraceImplementation::GetTexParameteriv(
429 GLenum target
, GLenum pname
, GLint
* params
) {
430 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetTexParameteriv");
431 gl_
->GetTexParameteriv(target
, pname
, params
);
434 void GLES2TraceImplementation::GetUniformfv(
435 GLuint program
, GLint location
, GLfloat
* params
) {
436 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformfv");
437 gl_
->GetUniformfv(program
, location
, params
);
440 void GLES2TraceImplementation::GetUniformiv(
441 GLuint program
, GLint location
, GLint
* params
) {
442 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformiv");
443 gl_
->GetUniformiv(program
, location
, params
);
446 GLint
GLES2TraceImplementation::GetUniformLocation(
447 GLuint program
, const char* name
) {
448 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformLocation");
449 return gl_
->GetUniformLocation(program
, name
);
452 void GLES2TraceImplementation::GetVertexAttribfv(
453 GLuint index
, GLenum pname
, GLfloat
* params
) {
454 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribfv");
455 gl_
->GetVertexAttribfv(index
, pname
, params
);
458 void GLES2TraceImplementation::GetVertexAttribiv(
459 GLuint index
, GLenum pname
, GLint
* params
) {
460 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribiv");
461 gl_
->GetVertexAttribiv(index
, pname
, params
);
464 void GLES2TraceImplementation::GetVertexAttribPointerv(
465 GLuint index
, GLenum pname
, void** pointer
) {
466 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribPointerv");
467 gl_
->GetVertexAttribPointerv(index
, pname
, pointer
);
470 void GLES2TraceImplementation::Hint(GLenum target
, GLenum mode
) {
471 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Hint");
472 gl_
->Hint(target
, mode
);
475 GLboolean
GLES2TraceImplementation::IsBuffer(GLuint buffer
) {
476 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsBuffer");
477 return gl_
->IsBuffer(buffer
);
480 GLboolean
GLES2TraceImplementation::IsEnabled(GLenum cap
) {
481 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsEnabled");
482 return gl_
->IsEnabled(cap
);
485 GLboolean
GLES2TraceImplementation::IsFramebuffer(GLuint framebuffer
) {
486 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsFramebuffer");
487 return gl_
->IsFramebuffer(framebuffer
);
490 GLboolean
GLES2TraceImplementation::IsProgram(GLuint program
) {
491 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsProgram");
492 return gl_
->IsProgram(program
);
495 GLboolean
GLES2TraceImplementation::IsRenderbuffer(GLuint renderbuffer
) {
496 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsRenderbuffer");
497 return gl_
->IsRenderbuffer(renderbuffer
);
500 GLboolean
GLES2TraceImplementation::IsShader(GLuint shader
) {
501 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsShader");
502 return gl_
->IsShader(shader
);
505 GLboolean
GLES2TraceImplementation::IsTexture(GLuint texture
) {
506 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsTexture");
507 return gl_
->IsTexture(texture
);
510 void GLES2TraceImplementation::LineWidth(GLfloat width
) {
511 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LineWidth");
512 gl_
->LineWidth(width
);
515 void GLES2TraceImplementation::LinkProgram(GLuint program
) {
516 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LinkProgram");
517 gl_
->LinkProgram(program
);
520 void GLES2TraceImplementation::PixelStorei(GLenum pname
, GLint param
) {
521 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PixelStorei");
522 gl_
->PixelStorei(pname
, param
);
525 void GLES2TraceImplementation::PolygonOffset(GLfloat factor
, GLfloat units
) {
526 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PolygonOffset");
527 gl_
->PolygonOffset(factor
, units
);
530 void GLES2TraceImplementation::ReadPixels(
531 GLint x
, GLint y
, GLsizei width
, GLsizei height
, GLenum format
, GLenum type
,
533 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReadPixels");
534 gl_
->ReadPixels(x
, y
, width
, height
, format
, type
, pixels
);
537 void GLES2TraceImplementation::ReleaseShaderCompiler() {
538 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReleaseShaderCompiler");
539 gl_
->ReleaseShaderCompiler();
542 void GLES2TraceImplementation::RenderbufferStorage(
543 GLenum target
, GLenum internalformat
, GLsizei width
, GLsizei height
) {
544 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RenderbufferStorage");
545 gl_
->RenderbufferStorage(target
, internalformat
, width
, height
);
548 void GLES2TraceImplementation::SampleCoverage(
549 GLclampf value
, GLboolean invert
) {
550 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SampleCoverage");
551 gl_
->SampleCoverage(value
, invert
);
554 void GLES2TraceImplementation::Scissor(
555 GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
556 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Scissor");
557 gl_
->Scissor(x
, y
, width
, height
);
560 void GLES2TraceImplementation::ShaderBinary(
561 GLsizei n
, const GLuint
* shaders
, GLenum binaryformat
, const void* binary
,
563 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShaderBinary");
564 gl_
->ShaderBinary(n
, shaders
, binaryformat
, binary
, length
);
567 void GLES2TraceImplementation::ShaderSource(
568 GLuint shader
, GLsizei count
, const GLchar
* const* str
,
569 const GLint
* length
) {
570 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShaderSource");
571 gl_
->ShaderSource(shader
, count
, str
, length
);
574 void GLES2TraceImplementation::ShallowFinishCHROMIUM() {
575 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShallowFinishCHROMIUM");
576 gl_
->ShallowFinishCHROMIUM();
579 void GLES2TraceImplementation::ShallowFlushCHROMIUM() {
580 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShallowFlushCHROMIUM");
581 gl_
->ShallowFlushCHROMIUM();
584 void GLES2TraceImplementation::StencilFunc(
585 GLenum func
, GLint ref
, GLuint mask
) {
586 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFunc");
587 gl_
->StencilFunc(func
, ref
, mask
);
590 void GLES2TraceImplementation::StencilFuncSeparate(
591 GLenum face
, GLenum func
, GLint ref
, GLuint mask
) {
592 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFuncSeparate");
593 gl_
->StencilFuncSeparate(face
, func
, ref
, mask
);
596 void GLES2TraceImplementation::StencilMask(GLuint mask
) {
597 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilMask");
598 gl_
->StencilMask(mask
);
601 void GLES2TraceImplementation::StencilMaskSeparate(GLenum face
, GLuint mask
) {
602 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilMaskSeparate");
603 gl_
->StencilMaskSeparate(face
, mask
);
606 void GLES2TraceImplementation::StencilOp(
607 GLenum fail
, GLenum zfail
, GLenum zpass
) {
608 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilOp");
609 gl_
->StencilOp(fail
, zfail
, zpass
);
612 void GLES2TraceImplementation::StencilOpSeparate(
613 GLenum face
, GLenum fail
, GLenum zfail
, GLenum zpass
) {
614 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilOpSeparate");
615 gl_
->StencilOpSeparate(face
, fail
, zfail
, zpass
);
618 void GLES2TraceImplementation::TexImage2D(
619 GLenum target
, GLint level
, GLint internalformat
, GLsizei width
,
620 GLsizei height
, GLint border
, GLenum format
, GLenum type
,
621 const void* pixels
) {
622 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImage2D");
624 target
, level
, internalformat
, width
, height
, border
, format
, type
,
628 void GLES2TraceImplementation::TexParameterf(
629 GLenum target
, GLenum pname
, GLfloat param
) {
630 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterf");
631 gl_
->TexParameterf(target
, pname
, param
);
634 void GLES2TraceImplementation::TexParameterfv(
635 GLenum target
, GLenum pname
, const GLfloat
* params
) {
636 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterfv");
637 gl_
->TexParameterfv(target
, pname
, params
);
640 void GLES2TraceImplementation::TexParameteri(
641 GLenum target
, GLenum pname
, GLint param
) {
642 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameteri");
643 gl_
->TexParameteri(target
, pname
, param
);
646 void GLES2TraceImplementation::TexParameteriv(
647 GLenum target
, GLenum pname
, const GLint
* params
) {
648 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameteriv");
649 gl_
->TexParameteriv(target
, pname
, params
);
652 void GLES2TraceImplementation::TexSubImage2D(
653 GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLsizei width
,
654 GLsizei height
, GLenum format
, GLenum type
, const void* pixels
) {
655 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage2D");
657 target
, level
, xoffset
, yoffset
, width
, height
, format
, type
, pixels
);
660 void GLES2TraceImplementation::Uniform1f(GLint location
, GLfloat x
) {
661 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1f");
662 gl_
->Uniform1f(location
, x
);
665 void GLES2TraceImplementation::Uniform1fv(
666 GLint location
, GLsizei count
, const GLfloat
* v
) {
667 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1fv");
668 gl_
->Uniform1fv(location
, count
, v
);
671 void GLES2TraceImplementation::Uniform1i(GLint location
, GLint x
) {
672 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1i");
673 gl_
->Uniform1i(location
, x
);
676 void GLES2TraceImplementation::Uniform1iv(
677 GLint location
, GLsizei count
, const GLint
* v
) {
678 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1iv");
679 gl_
->Uniform1iv(location
, count
, v
);
682 void GLES2TraceImplementation::Uniform2f(
683 GLint location
, GLfloat x
, GLfloat y
) {
684 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2f");
685 gl_
->Uniform2f(location
, x
, y
);
688 void GLES2TraceImplementation::Uniform2fv(
689 GLint location
, GLsizei count
, const GLfloat
* v
) {
690 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2fv");
691 gl_
->Uniform2fv(location
, count
, v
);
694 void GLES2TraceImplementation::Uniform2i(GLint location
, GLint x
, GLint y
) {
695 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2i");
696 gl_
->Uniform2i(location
, x
, y
);
699 void GLES2TraceImplementation::Uniform2iv(
700 GLint location
, GLsizei count
, const GLint
* v
) {
701 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2iv");
702 gl_
->Uniform2iv(location
, count
, v
);
705 void GLES2TraceImplementation::Uniform3f(
706 GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) {
707 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3f");
708 gl_
->Uniform3f(location
, x
, y
, z
);
711 void GLES2TraceImplementation::Uniform3fv(
712 GLint location
, GLsizei count
, const GLfloat
* v
) {
713 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3fv");
714 gl_
->Uniform3fv(location
, count
, v
);
717 void GLES2TraceImplementation::Uniform3i(
718 GLint location
, GLint x
, GLint y
, GLint z
) {
719 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3i");
720 gl_
->Uniform3i(location
, x
, y
, z
);
723 void GLES2TraceImplementation::Uniform3iv(
724 GLint location
, GLsizei count
, const GLint
* v
) {
725 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3iv");
726 gl_
->Uniform3iv(location
, count
, v
);
729 void GLES2TraceImplementation::Uniform4f(
730 GLint location
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
) {
731 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4f");
732 gl_
->Uniform4f(location
, x
, y
, z
, w
);
735 void GLES2TraceImplementation::Uniform4fv(
736 GLint location
, GLsizei count
, const GLfloat
* v
) {
737 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4fv");
738 gl_
->Uniform4fv(location
, count
, v
);
741 void GLES2TraceImplementation::Uniform4i(
742 GLint location
, GLint x
, GLint y
, GLint z
, GLint w
) {
743 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4i");
744 gl_
->Uniform4i(location
, x
, y
, z
, w
);
747 void GLES2TraceImplementation::Uniform4iv(
748 GLint location
, GLsizei count
, const GLint
* v
) {
749 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4iv");
750 gl_
->Uniform4iv(location
, count
, v
);
753 void GLES2TraceImplementation::UniformMatrix2fv(
754 GLint location
, GLsizei count
, GLboolean transpose
, const GLfloat
* value
) {
755 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2fv");
756 gl_
->UniformMatrix2fv(location
, count
, transpose
, value
);
759 void GLES2TraceImplementation::UniformMatrix3fv(
760 GLint location
, GLsizei count
, GLboolean transpose
, const GLfloat
* value
) {
761 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3fv");
762 gl_
->UniformMatrix3fv(location
, count
, transpose
, value
);
765 void GLES2TraceImplementation::UniformMatrix4fv(
766 GLint location
, GLsizei count
, GLboolean transpose
, const GLfloat
* value
) {
767 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4fv");
768 gl_
->UniformMatrix4fv(location
, count
, transpose
, value
);
771 void GLES2TraceImplementation::UseProgram(GLuint program
) {
772 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UseProgram");
773 gl_
->UseProgram(program
);
776 void GLES2TraceImplementation::ValidateProgram(GLuint program
) {
777 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ValidateProgram");
778 gl_
->ValidateProgram(program
);
781 void GLES2TraceImplementation::VertexAttrib1f(GLuint indx
, GLfloat x
) {
782 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib1f");
783 gl_
->VertexAttrib1f(indx
, x
);
786 void GLES2TraceImplementation::VertexAttrib1fv(
787 GLuint indx
, const GLfloat
* values
) {
788 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib1fv");
789 gl_
->VertexAttrib1fv(indx
, values
);
792 void GLES2TraceImplementation::VertexAttrib2f(
793 GLuint indx
, GLfloat x
, GLfloat y
) {
794 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib2f");
795 gl_
->VertexAttrib2f(indx
, x
, y
);
798 void GLES2TraceImplementation::VertexAttrib2fv(
799 GLuint indx
, const GLfloat
* values
) {
800 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib2fv");
801 gl_
->VertexAttrib2fv(indx
, values
);
804 void GLES2TraceImplementation::VertexAttrib3f(
805 GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
) {
806 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib3f");
807 gl_
->VertexAttrib3f(indx
, x
, y
, z
);
810 void GLES2TraceImplementation::VertexAttrib3fv(
811 GLuint indx
, const GLfloat
* values
) {
812 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib3fv");
813 gl_
->VertexAttrib3fv(indx
, values
);
816 void GLES2TraceImplementation::VertexAttrib4f(
817 GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
) {
818 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib4f");
819 gl_
->VertexAttrib4f(indx
, x
, y
, z
, w
);
822 void GLES2TraceImplementation::VertexAttrib4fv(
823 GLuint indx
, const GLfloat
* values
) {
824 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib4fv");
825 gl_
->VertexAttrib4fv(indx
, values
);
828 void GLES2TraceImplementation::VertexAttribPointer(
829 GLuint indx
, GLint size
, GLenum type
, GLboolean normalized
, GLsizei stride
,
831 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribPointer");
832 gl_
->VertexAttribPointer(indx
, size
, type
, normalized
, stride
, ptr
);
835 void GLES2TraceImplementation::Viewport(
836 GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
837 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Viewport");
838 gl_
->Viewport(x
, y
, width
, height
);
841 void GLES2TraceImplementation::BlitFramebufferEXT(
842 GLint srcX0
, GLint srcY0
, GLint srcX1
, GLint srcY1
, GLint dstX0
,
843 GLint dstY0
, GLint dstX1
, GLint dstY1
, GLbitfield mask
, GLenum filter
) {
844 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlitFramebufferEXT");
845 gl_
->BlitFramebufferEXT(
846 srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
, dstX1
, dstY1
, mask
, filter
);
849 void GLES2TraceImplementation::RenderbufferStorageMultisampleEXT(
850 GLenum target
, GLsizei samples
, GLenum internalformat
, GLsizei width
,
852 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RenderbufferStorageMultisampleEXT"); // NOLINT
853 gl_
->RenderbufferStorageMultisampleEXT(
854 target
, samples
, internalformat
, width
, height
);
857 void GLES2TraceImplementation::FramebufferTexture2DMultisampleEXT(
858 GLenum target
, GLenum attachment
, GLenum textarget
, GLuint texture
,
859 GLint level
, GLsizei samples
) {
860 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FramebufferTexture2DMultisampleEXT"); // NOLINT
861 gl_
->FramebufferTexture2DMultisampleEXT(
862 target
, attachment
, textarget
, texture
, level
, samples
);
865 void GLES2TraceImplementation::TexStorage2DEXT(
866 GLenum target
, GLsizei levels
, GLenum internalFormat
, GLsizei width
,
868 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexStorage2DEXT");
869 gl_
->TexStorage2DEXT(target
, levels
, internalFormat
, width
, height
);
872 void GLES2TraceImplementation::GenQueriesEXT(GLsizei n
, GLuint
* queries
) {
873 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenQueriesEXT");
874 gl_
->GenQueriesEXT(n
, queries
);
877 void GLES2TraceImplementation::DeleteQueriesEXT(
878 GLsizei n
, const GLuint
* queries
) {
879 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteQueriesEXT");
880 gl_
->DeleteQueriesEXT(n
, queries
);
883 GLboolean
GLES2TraceImplementation::IsQueryEXT(GLuint id
) {
884 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsQueryEXT");
885 return gl_
->IsQueryEXT(id
);
888 void GLES2TraceImplementation::BeginQueryEXT(GLenum target
, GLuint id
) {
889 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BeginQueryEXT");
890 gl_
->BeginQueryEXT(target
, id
);
893 void GLES2TraceImplementation::EndQueryEXT(GLenum target
) {
894 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EndQueryEXT");
895 gl_
->EndQueryEXT(target
);
898 void GLES2TraceImplementation::GetQueryivEXT(
899 GLenum target
, GLenum pname
, GLint
* params
) {
900 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryivEXT");
901 gl_
->GetQueryivEXT(target
, pname
, params
);
904 void GLES2TraceImplementation::GetQueryObjectuivEXT(
905 GLuint id
, GLenum pname
, GLuint
* params
) {
906 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryObjectuivEXT");
907 gl_
->GetQueryObjectuivEXT(id
, pname
, params
);
910 void GLES2TraceImplementation::InsertEventMarkerEXT(
911 GLsizei length
, const GLchar
* marker
) {
912 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InsertEventMarkerEXT");
913 gl_
->InsertEventMarkerEXT(length
, marker
);
916 void GLES2TraceImplementation::PushGroupMarkerEXT(
917 GLsizei length
, const GLchar
* marker
) {
918 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PushGroupMarkerEXT");
919 gl_
->PushGroupMarkerEXT(length
, marker
);
922 void GLES2TraceImplementation::PopGroupMarkerEXT() {
923 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PopGroupMarkerEXT");
924 gl_
->PopGroupMarkerEXT();
927 void GLES2TraceImplementation::GenVertexArraysOES(GLsizei n
, GLuint
* arrays
) {
928 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenVertexArraysOES");
929 gl_
->GenVertexArraysOES(n
, arrays
);
932 void GLES2TraceImplementation::DeleteVertexArraysOES(
933 GLsizei n
, const GLuint
* arrays
) {
934 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteVertexArraysOES");
935 gl_
->DeleteVertexArraysOES(n
, arrays
);
938 GLboolean
GLES2TraceImplementation::IsVertexArrayOES(GLuint array
) {
939 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsVertexArrayOES");
940 return gl_
->IsVertexArrayOES(array
);
943 void GLES2TraceImplementation::BindVertexArrayOES(GLuint array
) {
944 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindVertexArrayOES");
945 gl_
->BindVertexArrayOES(array
);
948 void GLES2TraceImplementation::SwapBuffers() {
949 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SwapBuffers");
953 GLuint
GLES2TraceImplementation::GetMaxValueInBufferCHROMIUM(
954 GLuint buffer_id
, GLsizei count
, GLenum type
, GLuint offset
) {
955 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetMaxValueInBufferCHROMIUM"); // NOLINT
956 return gl_
->GetMaxValueInBufferCHROMIUM(buffer_id
, count
, type
, offset
);
959 void GLES2TraceImplementation::GenSharedIdsCHROMIUM(
960 GLuint namespace_id
, GLuint id_offset
, GLsizei n
, GLuint
* ids
) {
961 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenSharedIdsCHROMIUM");
962 gl_
->GenSharedIdsCHROMIUM(namespace_id
, id_offset
, n
, ids
);
965 void GLES2TraceImplementation::DeleteSharedIdsCHROMIUM(
966 GLuint namespace_id
, GLsizei n
, const GLuint
* ids
) {
967 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteSharedIdsCHROMIUM");
968 gl_
->DeleteSharedIdsCHROMIUM(namespace_id
, n
, ids
);
971 void GLES2TraceImplementation::RegisterSharedIdsCHROMIUM(
972 GLuint namespace_id
, GLsizei n
, const GLuint
* ids
) {
973 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RegisterSharedIdsCHROMIUM");
974 gl_
->RegisterSharedIdsCHROMIUM(namespace_id
, n
, ids
);
977 GLboolean
GLES2TraceImplementation::EnableFeatureCHROMIUM(
978 const char* feature
) {
979 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EnableFeatureCHROMIUM");
980 return gl_
->EnableFeatureCHROMIUM(feature
);
983 void* GLES2TraceImplementation::MapBufferCHROMIUM(
984 GLuint target
, GLenum access
) {
985 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferCHROMIUM");
986 return gl_
->MapBufferCHROMIUM(target
, access
);
989 GLboolean
GLES2TraceImplementation::UnmapBufferCHROMIUM(GLuint target
) {
990 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UnmapBufferCHROMIUM");
991 return gl_
->UnmapBufferCHROMIUM(target
);
994 void* GLES2TraceImplementation::MapImageCHROMIUM(
995 GLuint image_id
, GLenum access
) {
996 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapImageCHROMIUM");
997 return gl_
->MapImageCHROMIUM(image_id
, access
);
1000 void GLES2TraceImplementation::UnmapImageCHROMIUM(GLuint image_id
) {
1001 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UnmapImageCHROMIUM");
1002 gl_
->UnmapImageCHROMIUM(image_id
);
1005 void* GLES2TraceImplementation::MapBufferSubDataCHROMIUM(
1006 GLuint target
, GLintptr offset
, GLsizeiptr size
, GLenum access
) {
1007 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferSubDataCHROMIUM");
1008 return gl_
->MapBufferSubDataCHROMIUM(target
, offset
, size
, access
);
1011 void GLES2TraceImplementation::UnmapBufferSubDataCHROMIUM(const void* mem
) {
1012 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UnmapBufferSubDataCHROMIUM"); // NOLINT
1013 gl_
->UnmapBufferSubDataCHROMIUM(mem
);
1016 void* GLES2TraceImplementation::MapTexSubImage2DCHROMIUM(
1017 GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLsizei width
,
1018 GLsizei height
, GLenum format
, GLenum type
, GLenum access
) {
1019 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapTexSubImage2DCHROMIUM");
1020 return gl_
->MapTexSubImage2DCHROMIUM(
1021 target
, level
, xoffset
, yoffset
, width
, height
, format
, type
, access
);
1024 void GLES2TraceImplementation::UnmapTexSubImage2DCHROMIUM(const void* mem
) {
1025 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UnmapTexSubImage2DCHROMIUM"); // NOLINT
1026 gl_
->UnmapTexSubImage2DCHROMIUM(mem
);
1029 void GLES2TraceImplementation::ResizeCHROMIUM(
1030 GLuint width
, GLuint height
, GLfloat scale_factor
) {
1031 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ResizeCHROMIUM");
1032 gl_
->ResizeCHROMIUM(width
, height
, scale_factor
);
1035 const GLchar
* GLES2TraceImplementation::GetRequestableExtensionsCHROMIUM() {
1036 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetRequestableExtensionsCHROMIUM"); // NOLINT
1037 return gl_
->GetRequestableExtensionsCHROMIUM();
1040 void GLES2TraceImplementation::RequestExtensionCHROMIUM(
1041 const char* extension
) {
1042 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RequestExtensionCHROMIUM");
1043 gl_
->RequestExtensionCHROMIUM(extension
);
1046 void GLES2TraceImplementation::RateLimitOffscreenContextCHROMIUM() {
1047 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RateLimitOffscreenContextCHROMIUM"); // NOLINT
1048 gl_
->RateLimitOffscreenContextCHROMIUM();
1051 void GLES2TraceImplementation::GetMultipleIntegervCHROMIUM(
1052 const GLenum
* pnames
, GLuint count
, GLint
* results
, GLsizeiptr size
) {
1053 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetMultipleIntegervCHROMIUM"); // NOLINT
1054 gl_
->GetMultipleIntegervCHROMIUM(pnames
, count
, results
, size
);
1057 void GLES2TraceImplementation::GetProgramInfoCHROMIUM(
1058 GLuint program
, GLsizei bufsize
, GLsizei
* size
, void* info
) {
1059 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramInfoCHROMIUM");
1060 gl_
->GetProgramInfoCHROMIUM(program
, bufsize
, size
, info
);
1063 GLuint
GLES2TraceImplementation::CreateStreamTextureCHROMIUM(GLuint texture
) {
1064 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateStreamTextureCHROMIUM"); // NOLINT
1065 return gl_
->CreateStreamTextureCHROMIUM(texture
);
1068 void GLES2TraceImplementation::DestroyStreamTextureCHROMIUM(GLuint texture
) {
1069 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DestroyStreamTextureCHROMIUM"); // NOLINT
1070 gl_
->DestroyStreamTextureCHROMIUM(texture
);
1073 GLuint
GLES2TraceImplementation::CreateImageCHROMIUM(
1074 GLsizei width
, GLsizei height
, GLenum internalformat
) {
1075 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateImageCHROMIUM");
1076 return gl_
->CreateImageCHROMIUM(width
, height
, internalformat
);
1079 void GLES2TraceImplementation::DestroyImageCHROMIUM(GLuint image_id
) {
1080 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DestroyImageCHROMIUM");
1081 gl_
->DestroyImageCHROMIUM(image_id
);
1084 void GLES2TraceImplementation::GetImageParameterivCHROMIUM(
1085 GLuint image_id
, GLenum pname
, GLint
* params
) {
1086 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetImageParameterivCHROMIUM"); // NOLINT
1087 gl_
->GetImageParameterivCHROMIUM(image_id
, pname
, params
);
1090 void GLES2TraceImplementation::GetTranslatedShaderSourceANGLE(
1091 GLuint shader
, GLsizei bufsize
, GLsizei
* length
, char* source
) {
1092 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetTranslatedShaderSourceANGLE"); // NOLINT
1093 gl_
->GetTranslatedShaderSourceANGLE(shader
, bufsize
, length
, source
);
1096 void GLES2TraceImplementation::PostSubBufferCHROMIUM(
1097 GLint x
, GLint y
, GLint width
, GLint height
) {
1098 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PostSubBufferCHROMIUM");
1099 gl_
->PostSubBufferCHROMIUM(x
, y
, width
, height
);
1102 void GLES2TraceImplementation::TexImageIOSurface2DCHROMIUM(
1103 GLenum target
, GLsizei width
, GLsizei height
, GLuint ioSurfaceId
,
1105 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImageIOSurface2DCHROMIUM"); // NOLINT
1106 gl_
->TexImageIOSurface2DCHROMIUM(target
, width
, height
, ioSurfaceId
, plane
);
1109 void GLES2TraceImplementation::CopyTextureCHROMIUM(
1110 GLenum target
, GLenum source_id
, GLenum dest_id
, GLint level
,
1111 GLint internalformat
, GLenum dest_type
) {
1112 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTextureCHROMIUM");
1113 gl_
->CopyTextureCHROMIUM(
1114 target
, source_id
, dest_id
, level
, internalformat
, dest_type
);
1117 void GLES2TraceImplementation::DrawArraysInstancedANGLE(
1118 GLenum mode
, GLint first
, GLsizei count
, GLsizei primcount
) {
1119 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawArraysInstancedANGLE");
1120 gl_
->DrawArraysInstancedANGLE(mode
, first
, count
, primcount
);
1123 void GLES2TraceImplementation::DrawElementsInstancedANGLE(
1124 GLenum mode
, GLsizei count
, GLenum type
, const void* indices
,
1125 GLsizei primcount
) {
1126 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawElementsInstancedANGLE"); // NOLINT
1127 gl_
->DrawElementsInstancedANGLE(mode
, count
, type
, indices
, primcount
);
1130 void GLES2TraceImplementation::VertexAttribDivisorANGLE(
1131 GLuint index
, GLuint divisor
) {
1132 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribDivisorANGLE");
1133 gl_
->VertexAttribDivisorANGLE(index
, divisor
);
1136 void GLES2TraceImplementation::GenMailboxCHROMIUM(GLbyte
* mailbox
) {
1137 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenMailboxCHROMIUM");
1138 gl_
->GenMailboxCHROMIUM(mailbox
);
1141 void GLES2TraceImplementation::ProduceTextureCHROMIUM(
1142 GLenum target
, const GLbyte
* mailbox
) {
1143 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ProduceTextureCHROMIUM");
1144 gl_
->ProduceTextureCHROMIUM(target
, mailbox
);
1147 void GLES2TraceImplementation::ConsumeTextureCHROMIUM(
1148 GLenum target
, const GLbyte
* mailbox
) {
1149 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ConsumeTextureCHROMIUM");
1150 gl_
->ConsumeTextureCHROMIUM(target
, mailbox
);
1153 void GLES2TraceImplementation::BindUniformLocationCHROMIUM(
1154 GLuint program
, GLint location
, const char* name
) {
1155 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindUniformLocationCHROMIUM"); // NOLINT
1156 gl_
->BindUniformLocationCHROMIUM(program
, location
, name
);
1159 void GLES2TraceImplementation::BindTexImage2DCHROMIUM(
1160 GLenum target
, GLint imageId
) {
1161 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindTexImage2DCHROMIUM");
1162 gl_
->BindTexImage2DCHROMIUM(target
, imageId
);
1165 void GLES2TraceImplementation::ReleaseTexImage2DCHROMIUM(
1166 GLenum target
, GLint imageId
) {
1167 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReleaseTexImage2DCHROMIUM");
1168 gl_
->ReleaseTexImage2DCHROMIUM(target
, imageId
);
1171 void GLES2TraceImplementation::TraceBeginCHROMIUM(const char* name
) {
1172 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TraceBeginCHROMIUM");
1173 gl_
->TraceBeginCHROMIUM(name
);
1176 void GLES2TraceImplementation::TraceEndCHROMIUM() {
1177 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TraceEndCHROMIUM");
1178 gl_
->TraceEndCHROMIUM();
1181 void GLES2TraceImplementation::AsyncTexSubImage2DCHROMIUM(
1182 GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLsizei width
,
1183 GLsizei height
, GLenum format
, GLenum type
, const void* data
) {
1184 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::AsyncTexSubImage2DCHROMIUM"); // NOLINT
1185 gl_
->AsyncTexSubImage2DCHROMIUM(
1186 target
, level
, xoffset
, yoffset
, width
, height
, format
, type
, data
);
1189 void GLES2TraceImplementation::AsyncTexImage2DCHROMIUM(
1190 GLenum target
, GLint level
, GLint internalformat
, GLsizei width
,
1191 GLsizei height
, GLint border
, GLenum format
, GLenum type
,
1192 const void* pixels
) {
1193 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::AsyncTexImage2DCHROMIUM");
1194 gl_
->AsyncTexImage2DCHROMIUM(
1195 target
, level
, internalformat
, width
, height
, border
, format
, type
,
1199 void GLES2TraceImplementation::WaitAsyncTexImage2DCHROMIUM(GLenum target
) {
1200 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::WaitAsyncTexImage2DCHROMIUM"); // NOLINT
1201 gl_
->WaitAsyncTexImage2DCHROMIUM(target
);
1204 void GLES2TraceImplementation::DiscardFramebufferEXT(
1205 GLenum target
, GLsizei count
, const GLenum
* attachments
) {
1206 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DiscardFramebufferEXT");
1207 gl_
->DiscardFramebufferEXT(target
, count
, attachments
);
1210 void GLES2TraceImplementation::LoseContextCHROMIUM(
1211 GLenum current
, GLenum other
) {
1212 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LoseContextCHROMIUM");
1213 gl_
->LoseContextCHROMIUM(current
, other
);
1216 GLuint
GLES2TraceImplementation::InsertSyncPointCHROMIUM() {
1217 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InsertSyncPointCHROMIUM");
1218 return gl_
->InsertSyncPointCHROMIUM();
1221 void GLES2TraceImplementation::WaitSyncPointCHROMIUM(GLuint sync_point
) {
1222 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::WaitSyncPointCHROMIUM");
1223 gl_
->WaitSyncPointCHROMIUM(sync_point
);
1226 void GLES2TraceImplementation::DrawBuffersEXT(
1227 GLsizei count
, const GLenum
* bufs
) {
1228 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawBuffersEXT");
1229 gl_
->DrawBuffersEXT(count
, bufs
);
1232 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_