1 // Copyright 2014 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
7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename
11 // This file is included by gles2_trace_implementation.cc
12 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_
13 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_
15 void GLES2TraceImplementation::ActiveTexture(GLenum texture
) {
16 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ActiveTexture");
17 gl_
->ActiveTexture(texture
);
20 void GLES2TraceImplementation::AttachShader(GLuint program
, GLuint shader
) {
21 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::AttachShader");
22 gl_
->AttachShader(program
, shader
);
25 void GLES2TraceImplementation::BindAttribLocation(GLuint program
,
28 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindAttribLocation");
29 gl_
->BindAttribLocation(program
, index
, name
);
32 void GLES2TraceImplementation::BindBuffer(GLenum target
, GLuint buffer
) {
33 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindBuffer");
34 gl_
->BindBuffer(target
, buffer
);
37 void GLES2TraceImplementation::BindBufferBase(GLenum target
,
40 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindBufferBase");
41 gl_
->BindBufferBase(target
, index
, buffer
);
44 void GLES2TraceImplementation::BindBufferRange(GLenum target
,
49 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindBufferRange");
50 gl_
->BindBufferRange(target
, index
, buffer
, offset
, size
);
53 void GLES2TraceImplementation::BindFramebuffer(GLenum target
,
55 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindFramebuffer");
56 gl_
->BindFramebuffer(target
, framebuffer
);
59 void GLES2TraceImplementation::BindRenderbuffer(GLenum target
,
60 GLuint renderbuffer
) {
61 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindRenderbuffer");
62 gl_
->BindRenderbuffer(target
, renderbuffer
);
65 void GLES2TraceImplementation::BindSampler(GLuint unit
, GLuint sampler
) {
66 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindSampler");
67 gl_
->BindSampler(unit
, sampler
);
70 void GLES2TraceImplementation::BindTexture(GLenum target
, GLuint texture
) {
71 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindTexture");
72 gl_
->BindTexture(target
, texture
);
75 void GLES2TraceImplementation::BindTransformFeedback(GLenum target
,
76 GLuint transformfeedback
) {
77 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindTransformFeedback");
78 gl_
->BindTransformFeedback(target
, transformfeedback
);
81 void GLES2TraceImplementation::BlendColor(GLclampf red
,
85 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendColor");
86 gl_
->BlendColor(red
, green
, blue
, alpha
);
89 void GLES2TraceImplementation::BlendEquation(GLenum mode
) {
90 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendEquation");
91 gl_
->BlendEquation(mode
);
94 void GLES2TraceImplementation::BlendEquationSeparate(GLenum modeRGB
,
96 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendEquationSeparate");
97 gl_
->BlendEquationSeparate(modeRGB
, modeAlpha
);
100 void GLES2TraceImplementation::BlendFunc(GLenum sfactor
, GLenum dfactor
) {
101 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendFunc");
102 gl_
->BlendFunc(sfactor
, dfactor
);
105 void GLES2TraceImplementation::BlendFuncSeparate(GLenum srcRGB
,
109 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendFuncSeparate");
110 gl_
->BlendFuncSeparate(srcRGB
, dstRGB
, srcAlpha
, dstAlpha
);
113 void GLES2TraceImplementation::BufferData(GLenum target
,
117 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BufferData");
118 gl_
->BufferData(target
, size
, data
, usage
);
121 void GLES2TraceImplementation::BufferSubData(GLenum target
,
125 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BufferSubData");
126 gl_
->BufferSubData(target
, offset
, size
, data
);
129 GLenum
GLES2TraceImplementation::CheckFramebufferStatus(GLenum target
) {
130 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CheckFramebufferStatus");
131 return gl_
->CheckFramebufferStatus(target
);
134 void GLES2TraceImplementation::Clear(GLbitfield mask
) {
135 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Clear");
139 void GLES2TraceImplementation::ClearBufferfi(GLenum buffer
,
143 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ClearBufferfi");
144 gl_
->ClearBufferfi(buffer
, drawbuffers
, depth
, stencil
);
147 void GLES2TraceImplementation::ClearBufferfv(GLenum buffer
,
149 const GLfloat
* value
) {
150 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ClearBufferfv");
151 gl_
->ClearBufferfv(buffer
, drawbuffers
, value
);
154 void GLES2TraceImplementation::ClearBufferiv(GLenum buffer
,
156 const GLint
* value
) {
157 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ClearBufferiv");
158 gl_
->ClearBufferiv(buffer
, drawbuffers
, value
);
161 void GLES2TraceImplementation::ClearBufferuiv(GLenum buffer
,
163 const GLuint
* value
) {
164 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ClearBufferuiv");
165 gl_
->ClearBufferuiv(buffer
, drawbuffers
, value
);
168 void GLES2TraceImplementation::ClearColor(GLclampf red
,
172 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ClearColor");
173 gl_
->ClearColor(red
, green
, blue
, alpha
);
176 void GLES2TraceImplementation::ClearDepthf(GLclampf depth
) {
177 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ClearDepthf");
178 gl_
->ClearDepthf(depth
);
181 void GLES2TraceImplementation::ClearStencil(GLint s
) {
182 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ClearStencil");
183 gl_
->ClearStencil(s
);
186 GLenum
GLES2TraceImplementation::ClientWaitSync(GLsync sync
,
189 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ClientWaitSync");
190 return gl_
->ClientWaitSync(sync
, flags
, timeout
);
193 void GLES2TraceImplementation::ColorMask(GLboolean red
,
197 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ColorMask");
198 gl_
->ColorMask(red
, green
, blue
, alpha
);
201 void GLES2TraceImplementation::CompileShader(GLuint shader
) {
202 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CompileShader");
203 gl_
->CompileShader(shader
);
206 void GLES2TraceImplementation::CompressedTexImage2D(GLenum target
,
208 GLenum internalformat
,
214 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CompressedTexImage2D");
215 gl_
->CompressedTexImage2D(target
, level
, internalformat
, width
, height
,
216 border
, imageSize
, data
);
219 void GLES2TraceImplementation::CompressedTexSubImage2D(GLenum target
,
228 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CompressedTexSubImage2D");
229 gl_
->CompressedTexSubImage2D(target
, level
, xoffset
, yoffset
, width
, height
,
230 format
, imageSize
, data
);
233 void GLES2TraceImplementation::CompressedTexImage3D(GLenum target
,
235 GLenum internalformat
,
242 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CompressedTexImage3D");
243 gl_
->CompressedTexImage3D(target
, level
, internalformat
, width
, height
, depth
,
244 border
, imageSize
, data
);
247 void GLES2TraceImplementation::CompressedTexSubImage3D(GLenum target
,
258 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CompressedTexSubImage3D");
259 gl_
->CompressedTexSubImage3D(target
, level
, xoffset
, yoffset
, zoffset
, width
,
260 height
, depth
, format
, imageSize
, data
);
263 void GLES2TraceImplementation::CopyBufferSubData(GLenum readtarget
,
266 GLintptr writeoffset
,
268 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyBufferSubData");
269 gl_
->CopyBufferSubData(readtarget
, writetarget
, readoffset
, writeoffset
,
273 void GLES2TraceImplementation::CopyTexImage2D(GLenum target
,
275 GLenum internalformat
,
281 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexImage2D");
282 gl_
->CopyTexImage2D(target
, level
, internalformat
, x
, y
, width
, height
,
286 void GLES2TraceImplementation::CopyTexSubImage2D(GLenum target
,
294 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexSubImage2D");
295 gl_
->CopyTexSubImage2D(target
, level
, xoffset
, yoffset
, x
, y
, width
, height
);
298 void GLES2TraceImplementation::CopyTexSubImage3D(GLenum target
,
307 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexSubImage3D");
308 gl_
->CopyTexSubImage3D(target
, level
, xoffset
, yoffset
, zoffset
, x
, y
, width
,
312 GLuint
GLES2TraceImplementation::CreateProgram() {
313 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateProgram");
314 return gl_
->CreateProgram();
317 GLuint
GLES2TraceImplementation::CreateShader(GLenum type
) {
318 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateShader");
319 return gl_
->CreateShader(type
);
322 void GLES2TraceImplementation::CullFace(GLenum mode
) {
323 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CullFace");
327 void GLES2TraceImplementation::DeleteBuffers(GLsizei n
, const GLuint
* buffers
) {
328 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteBuffers");
329 gl_
->DeleteBuffers(n
, buffers
);
332 void GLES2TraceImplementation::DeleteFramebuffers(GLsizei n
,
333 const GLuint
* framebuffers
) {
334 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteFramebuffers");
335 gl_
->DeleteFramebuffers(n
, framebuffers
);
338 void GLES2TraceImplementation::DeleteProgram(GLuint program
) {
339 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteProgram");
340 gl_
->DeleteProgram(program
);
343 void GLES2TraceImplementation::DeleteRenderbuffers(
345 const GLuint
* renderbuffers
) {
346 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteRenderbuffers");
347 gl_
->DeleteRenderbuffers(n
, renderbuffers
);
350 void GLES2TraceImplementation::DeleteSamplers(GLsizei n
,
351 const GLuint
* samplers
) {
352 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteSamplers");
353 gl_
->DeleteSamplers(n
, samplers
);
356 void GLES2TraceImplementation::DeleteSync(GLsync sync
) {
357 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteSync");
358 gl_
->DeleteSync(sync
);
361 void GLES2TraceImplementation::DeleteShader(GLuint shader
) {
362 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteShader");
363 gl_
->DeleteShader(shader
);
366 void GLES2TraceImplementation::DeleteTextures(GLsizei n
,
367 const GLuint
* textures
) {
368 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteTextures");
369 gl_
->DeleteTextures(n
, textures
);
372 void GLES2TraceImplementation::DeleteTransformFeedbacks(GLsizei n
,
374 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteTransformFeedbacks");
375 gl_
->DeleteTransformFeedbacks(n
, ids
);
378 void GLES2TraceImplementation::DepthFunc(GLenum func
) {
379 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DepthFunc");
380 gl_
->DepthFunc(func
);
383 void GLES2TraceImplementation::DepthMask(GLboolean flag
) {
384 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DepthMask");
385 gl_
->DepthMask(flag
);
388 void GLES2TraceImplementation::DepthRangef(GLclampf zNear
, GLclampf zFar
) {
389 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DepthRangef");
390 gl_
->DepthRangef(zNear
, zFar
);
393 void GLES2TraceImplementation::DetachShader(GLuint program
, GLuint shader
) {
394 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DetachShader");
395 gl_
->DetachShader(program
, shader
);
398 void GLES2TraceImplementation::Disable(GLenum cap
) {
399 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Disable");
403 void GLES2TraceImplementation::DisableVertexAttribArray(GLuint index
) {
404 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DisableVertexAttribArray");
405 gl_
->DisableVertexAttribArray(index
);
408 void GLES2TraceImplementation::DrawArrays(GLenum mode
,
411 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawArrays");
412 gl_
->DrawArrays(mode
, first
, count
);
415 void GLES2TraceImplementation::DrawElements(GLenum mode
,
418 const void* indices
) {
419 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawElements");
420 gl_
->DrawElements(mode
, count
, type
, indices
);
423 void GLES2TraceImplementation::DrawRangeElements(GLenum mode
,
428 const void* indices
) {
429 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawRangeElements");
430 gl_
->DrawRangeElements(mode
, start
, end
, count
, type
, indices
);
433 void GLES2TraceImplementation::Enable(GLenum cap
) {
434 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Enable");
438 void GLES2TraceImplementation::EnableVertexAttribArray(GLuint index
) {
439 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EnableVertexAttribArray");
440 gl_
->EnableVertexAttribArray(index
);
443 GLsync
GLES2TraceImplementation::FenceSync(GLenum condition
, GLbitfield flags
) {
444 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FenceSync");
445 return gl_
->FenceSync(condition
, flags
);
448 void GLES2TraceImplementation::Finish() {
449 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Finish");
453 void GLES2TraceImplementation::Flush() {
454 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Flush");
458 void GLES2TraceImplementation::FramebufferRenderbuffer(
461 GLenum renderbuffertarget
,
462 GLuint renderbuffer
) {
463 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FramebufferRenderbuffer");
464 gl_
->FramebufferRenderbuffer(target
, attachment
, renderbuffertarget
,
468 void GLES2TraceImplementation::FramebufferTexture2D(GLenum target
,
473 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FramebufferTexture2D");
474 gl_
->FramebufferTexture2D(target
, attachment
, textarget
, texture
, level
);
477 void GLES2TraceImplementation::FramebufferTextureLayer(GLenum target
,
482 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FramebufferTextureLayer");
483 gl_
->FramebufferTextureLayer(target
, attachment
, texture
, level
, layer
);
486 void GLES2TraceImplementation::FrontFace(GLenum mode
) {
487 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FrontFace");
488 gl_
->FrontFace(mode
);
491 void GLES2TraceImplementation::GenBuffers(GLsizei n
, GLuint
* buffers
) {
492 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenBuffers");
493 gl_
->GenBuffers(n
, buffers
);
496 void GLES2TraceImplementation::GenerateMipmap(GLenum target
) {
497 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenerateMipmap");
498 gl_
->GenerateMipmap(target
);
501 void GLES2TraceImplementation::GenFramebuffers(GLsizei n
,
502 GLuint
* framebuffers
) {
503 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenFramebuffers");
504 gl_
->GenFramebuffers(n
, framebuffers
);
507 void GLES2TraceImplementation::GenRenderbuffers(GLsizei n
,
508 GLuint
* renderbuffers
) {
509 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenRenderbuffers");
510 gl_
->GenRenderbuffers(n
, renderbuffers
);
513 void GLES2TraceImplementation::GenSamplers(GLsizei n
, GLuint
* samplers
) {
514 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenSamplers");
515 gl_
->GenSamplers(n
, samplers
);
518 void GLES2TraceImplementation::GenTextures(GLsizei n
, GLuint
* textures
) {
519 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenTextures");
520 gl_
->GenTextures(n
, textures
);
523 void GLES2TraceImplementation::GenTransformFeedbacks(GLsizei n
, GLuint
* ids
) {
524 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenTransformFeedbacks");
525 gl_
->GenTransformFeedbacks(n
, ids
);
528 void GLES2TraceImplementation::GetActiveAttrib(GLuint program
,
535 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveAttrib");
536 gl_
->GetActiveAttrib(program
, index
, bufsize
, length
, size
, type
, name
);
539 void GLES2TraceImplementation::GetActiveUniform(GLuint program
,
546 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniform");
547 gl_
->GetActiveUniform(program
, index
, bufsize
, length
, size
, type
, name
);
550 void GLES2TraceImplementation::GetActiveUniformBlockiv(GLuint program
,
554 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniformBlockiv");
555 gl_
->GetActiveUniformBlockiv(program
, index
, pname
, params
);
558 void GLES2TraceImplementation::GetActiveUniformBlockName(GLuint program
,
563 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniformBlockName");
564 gl_
->GetActiveUniformBlockName(program
, index
, bufsize
, length
, name
);
567 void GLES2TraceImplementation::GetActiveUniformsiv(GLuint program
,
569 const GLuint
* indices
,
572 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniformsiv");
573 gl_
->GetActiveUniformsiv(program
, count
, indices
, pname
, params
);
576 void GLES2TraceImplementation::GetAttachedShaders(GLuint program
,
580 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetAttachedShaders");
581 gl_
->GetAttachedShaders(program
, maxcount
, count
, shaders
);
584 GLint
GLES2TraceImplementation::GetAttribLocation(GLuint program
,
586 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetAttribLocation");
587 return gl_
->GetAttribLocation(program
, name
);
590 void GLES2TraceImplementation::GetBooleanv(GLenum pname
, GLboolean
* params
) {
591 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetBooleanv");
592 gl_
->GetBooleanv(pname
, params
);
595 void GLES2TraceImplementation::GetBufferParameteriv(GLenum target
,
598 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetBufferParameteriv");
599 gl_
->GetBufferParameteriv(target
, pname
, params
);
602 GLenum
GLES2TraceImplementation::GetError() {
603 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetError");
604 return gl_
->GetError();
607 void GLES2TraceImplementation::GetFloatv(GLenum pname
, GLfloat
* params
) {
608 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetFloatv");
609 gl_
->GetFloatv(pname
, params
);
612 GLint
GLES2TraceImplementation::GetFragDataLocation(GLuint program
,
614 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetFragDataLocation");
615 return gl_
->GetFragDataLocation(program
, name
);
618 void GLES2TraceImplementation::GetFramebufferAttachmentParameteriv(
623 TRACE_EVENT_BINARY_EFFICIENT0(
624 "gpu", "GLES2Trace::GetFramebufferAttachmentParameteriv");
625 gl_
->GetFramebufferAttachmentParameteriv(target
, attachment
, pname
, params
);
628 void GLES2TraceImplementation::GetInteger64v(GLenum pname
, GLint64
* params
) {
629 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetInteger64v");
630 gl_
->GetInteger64v(pname
, params
);
633 void GLES2TraceImplementation::GetIntegeri_v(GLenum pname
,
636 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetIntegeri_v");
637 gl_
->GetIntegeri_v(pname
, index
, data
);
640 void GLES2TraceImplementation::GetInteger64i_v(GLenum pname
,
643 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetInteger64i_v");
644 gl_
->GetInteger64i_v(pname
, index
, data
);
647 void GLES2TraceImplementation::GetIntegerv(GLenum pname
, GLint
* params
) {
648 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetIntegerv");
649 gl_
->GetIntegerv(pname
, params
);
652 void GLES2TraceImplementation::GetInternalformativ(GLenum target
,
657 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetInternalformativ");
658 gl_
->GetInternalformativ(target
, format
, pname
, bufSize
, params
);
661 void GLES2TraceImplementation::GetProgramiv(GLuint program
,
664 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramiv");
665 gl_
->GetProgramiv(program
, pname
, params
);
668 void GLES2TraceImplementation::GetProgramInfoLog(GLuint program
,
672 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramInfoLog");
673 gl_
->GetProgramInfoLog(program
, bufsize
, length
, infolog
);
676 void GLES2TraceImplementation::GetRenderbufferParameteriv(GLenum target
,
679 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
680 "GLES2Trace::GetRenderbufferParameteriv");
681 gl_
->GetRenderbufferParameteriv(target
, pname
, params
);
684 void GLES2TraceImplementation::GetSamplerParameterfv(GLuint sampler
,
687 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetSamplerParameterfv");
688 gl_
->GetSamplerParameterfv(sampler
, pname
, params
);
691 void GLES2TraceImplementation::GetSamplerParameteriv(GLuint sampler
,
694 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetSamplerParameteriv");
695 gl_
->GetSamplerParameteriv(sampler
, pname
, params
);
698 void GLES2TraceImplementation::GetShaderiv(GLuint shader
,
701 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderiv");
702 gl_
->GetShaderiv(shader
, pname
, params
);
705 void GLES2TraceImplementation::GetShaderInfoLog(GLuint shader
,
709 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderInfoLog");
710 gl_
->GetShaderInfoLog(shader
, bufsize
, length
, infolog
);
713 void GLES2TraceImplementation::GetShaderPrecisionFormat(GLenum shadertype
,
714 GLenum precisiontype
,
717 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderPrecisionFormat");
718 gl_
->GetShaderPrecisionFormat(shadertype
, precisiontype
, range
, precision
);
721 void GLES2TraceImplementation::GetShaderSource(GLuint shader
,
725 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderSource");
726 gl_
->GetShaderSource(shader
, bufsize
, length
, source
);
729 const GLubyte
* GLES2TraceImplementation::GetString(GLenum name
) {
730 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetString");
731 return gl_
->GetString(name
);
734 void GLES2TraceImplementation::GetSynciv(GLsync sync
,
739 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetSynciv");
740 gl_
->GetSynciv(sync
, pname
, bufsize
, length
, values
);
743 void GLES2TraceImplementation::GetTexParameterfv(GLenum target
,
746 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetTexParameterfv");
747 gl_
->GetTexParameterfv(target
, pname
, params
);
750 void GLES2TraceImplementation::GetTexParameteriv(GLenum target
,
753 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetTexParameteriv");
754 gl_
->GetTexParameteriv(target
, pname
, params
);
757 void GLES2TraceImplementation::GetTransformFeedbackVarying(GLuint program
,
764 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
765 "GLES2Trace::GetTransformFeedbackVarying");
766 gl_
->GetTransformFeedbackVarying(program
, index
, bufsize
, length
, size
, type
,
770 GLuint
GLES2TraceImplementation::GetUniformBlockIndex(GLuint program
,
772 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformBlockIndex");
773 return gl_
->GetUniformBlockIndex(program
, name
);
776 void GLES2TraceImplementation::GetUniformfv(GLuint program
,
779 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformfv");
780 gl_
->GetUniformfv(program
, location
, params
);
783 void GLES2TraceImplementation::GetUniformiv(GLuint program
,
786 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformiv");
787 gl_
->GetUniformiv(program
, location
, params
);
790 void GLES2TraceImplementation::GetUniformuiv(GLuint program
,
793 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformuiv");
794 gl_
->GetUniformuiv(program
, location
, params
);
797 void GLES2TraceImplementation::GetUniformIndices(GLuint program
,
799 const char* const* names
,
801 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformIndices");
802 gl_
->GetUniformIndices(program
, count
, names
, indices
);
805 GLint
GLES2TraceImplementation::GetUniformLocation(GLuint program
,
807 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformLocation");
808 return gl_
->GetUniformLocation(program
, name
);
811 void GLES2TraceImplementation::GetVertexAttribfv(GLuint index
,
814 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribfv");
815 gl_
->GetVertexAttribfv(index
, pname
, params
);
818 void GLES2TraceImplementation::GetVertexAttribiv(GLuint index
,
821 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribiv");
822 gl_
->GetVertexAttribiv(index
, pname
, params
);
825 void GLES2TraceImplementation::GetVertexAttribIiv(GLuint index
,
828 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribIiv");
829 gl_
->GetVertexAttribIiv(index
, pname
, params
);
832 void GLES2TraceImplementation::GetVertexAttribIuiv(GLuint index
,
835 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribIuiv");
836 gl_
->GetVertexAttribIuiv(index
, pname
, params
);
839 void GLES2TraceImplementation::GetVertexAttribPointerv(GLuint index
,
842 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribPointerv");
843 gl_
->GetVertexAttribPointerv(index
, pname
, pointer
);
846 void GLES2TraceImplementation::Hint(GLenum target
, GLenum mode
) {
847 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Hint");
848 gl_
->Hint(target
, mode
);
851 void GLES2TraceImplementation::InvalidateFramebuffer(
854 const GLenum
* attachments
) {
855 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InvalidateFramebuffer");
856 gl_
->InvalidateFramebuffer(target
, count
, attachments
);
859 void GLES2TraceImplementation::InvalidateSubFramebuffer(
862 const GLenum
* attachments
,
867 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InvalidateSubFramebuffer");
868 gl_
->InvalidateSubFramebuffer(target
, count
, attachments
, x
, y
, width
,
872 GLboolean
GLES2TraceImplementation::IsBuffer(GLuint buffer
) {
873 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsBuffer");
874 return gl_
->IsBuffer(buffer
);
877 GLboolean
GLES2TraceImplementation::IsEnabled(GLenum cap
) {
878 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsEnabled");
879 return gl_
->IsEnabled(cap
);
882 GLboolean
GLES2TraceImplementation::IsFramebuffer(GLuint framebuffer
) {
883 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsFramebuffer");
884 return gl_
->IsFramebuffer(framebuffer
);
887 GLboolean
GLES2TraceImplementation::IsProgram(GLuint program
) {
888 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsProgram");
889 return gl_
->IsProgram(program
);
892 GLboolean
GLES2TraceImplementation::IsRenderbuffer(GLuint renderbuffer
) {
893 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsRenderbuffer");
894 return gl_
->IsRenderbuffer(renderbuffer
);
897 GLboolean
GLES2TraceImplementation::IsSampler(GLuint sampler
) {
898 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsSampler");
899 return gl_
->IsSampler(sampler
);
902 GLboolean
GLES2TraceImplementation::IsShader(GLuint shader
) {
903 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsShader");
904 return gl_
->IsShader(shader
);
907 GLboolean
GLES2TraceImplementation::IsSync(GLsync sync
) {
908 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsSync");
909 return gl_
->IsSync(sync
);
912 GLboolean
GLES2TraceImplementation::IsTexture(GLuint texture
) {
913 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsTexture");
914 return gl_
->IsTexture(texture
);
917 GLboolean
GLES2TraceImplementation::IsTransformFeedback(
918 GLuint transformfeedback
) {
919 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsTransformFeedback");
920 return gl_
->IsTransformFeedback(transformfeedback
);
923 void GLES2TraceImplementation::LineWidth(GLfloat width
) {
924 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LineWidth");
925 gl_
->LineWidth(width
);
928 void GLES2TraceImplementation::LinkProgram(GLuint program
) {
929 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LinkProgram");
930 gl_
->LinkProgram(program
);
933 void GLES2TraceImplementation::PauseTransformFeedback() {
934 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PauseTransformFeedback");
935 gl_
->PauseTransformFeedback();
938 void GLES2TraceImplementation::PixelStorei(GLenum pname
, GLint param
) {
939 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PixelStorei");
940 gl_
->PixelStorei(pname
, param
);
943 void GLES2TraceImplementation::PolygonOffset(GLfloat factor
, GLfloat units
) {
944 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PolygonOffset");
945 gl_
->PolygonOffset(factor
, units
);
948 void GLES2TraceImplementation::ReadBuffer(GLenum src
) {
949 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReadBuffer");
950 gl_
->ReadBuffer(src
);
953 void GLES2TraceImplementation::ReadPixels(GLint x
,
960 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReadPixels");
961 gl_
->ReadPixels(x
, y
, width
, height
, format
, type
, pixels
);
964 void GLES2TraceImplementation::ReleaseShaderCompiler() {
965 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReleaseShaderCompiler");
966 gl_
->ReleaseShaderCompiler();
969 void GLES2TraceImplementation::RenderbufferStorage(GLenum target
,
970 GLenum internalformat
,
973 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RenderbufferStorage");
974 gl_
->RenderbufferStorage(target
, internalformat
, width
, height
);
977 void GLES2TraceImplementation::ResumeTransformFeedback() {
978 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ResumeTransformFeedback");
979 gl_
->ResumeTransformFeedback();
982 void GLES2TraceImplementation::SampleCoverage(GLclampf value
,
984 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SampleCoverage");
985 gl_
->SampleCoverage(value
, invert
);
988 void GLES2TraceImplementation::SamplerParameterf(GLuint sampler
,
991 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameterf");
992 gl_
->SamplerParameterf(sampler
, pname
, param
);
995 void GLES2TraceImplementation::SamplerParameterfv(GLuint sampler
,
997 const GLfloat
* params
) {
998 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameterfv");
999 gl_
->SamplerParameterfv(sampler
, pname
, params
);
1002 void GLES2TraceImplementation::SamplerParameteri(GLuint sampler
,
1005 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameteri");
1006 gl_
->SamplerParameteri(sampler
, pname
, param
);
1009 void GLES2TraceImplementation::SamplerParameteriv(GLuint sampler
,
1011 const GLint
* params
) {
1012 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameteriv");
1013 gl_
->SamplerParameteriv(sampler
, pname
, params
);
1016 void GLES2TraceImplementation::Scissor(GLint x
,
1020 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Scissor");
1021 gl_
->Scissor(x
, y
, width
, height
);
1024 void GLES2TraceImplementation::ShaderBinary(GLsizei n
,
1025 const GLuint
* shaders
,
1026 GLenum binaryformat
,
1029 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShaderBinary");
1030 gl_
->ShaderBinary(n
, shaders
, binaryformat
, binary
, length
);
1033 void GLES2TraceImplementation::ShaderSource(GLuint shader
,
1035 const GLchar
* const* str
,
1036 const GLint
* length
) {
1037 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShaderSource");
1038 gl_
->ShaderSource(shader
, count
, str
, length
);
1041 void GLES2TraceImplementation::ShallowFinishCHROMIUM() {
1042 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShallowFinishCHROMIUM");
1043 gl_
->ShallowFinishCHROMIUM();
1046 void GLES2TraceImplementation::ShallowFlushCHROMIUM() {
1047 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShallowFlushCHROMIUM");
1048 gl_
->ShallowFlushCHROMIUM();
1051 void GLES2TraceImplementation::OrderingBarrierCHROMIUM() {
1052 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::OrderingBarrierCHROMIUM");
1053 gl_
->OrderingBarrierCHROMIUM();
1056 void GLES2TraceImplementation::StencilFunc(GLenum func
,
1059 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFunc");
1060 gl_
->StencilFunc(func
, ref
, mask
);
1063 void GLES2TraceImplementation::StencilFuncSeparate(GLenum face
,
1067 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFuncSeparate");
1068 gl_
->StencilFuncSeparate(face
, func
, ref
, mask
);
1071 void GLES2TraceImplementation::StencilMask(GLuint mask
) {
1072 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilMask");
1073 gl_
->StencilMask(mask
);
1076 void GLES2TraceImplementation::StencilMaskSeparate(GLenum face
, GLuint mask
) {
1077 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilMaskSeparate");
1078 gl_
->StencilMaskSeparate(face
, mask
);
1081 void GLES2TraceImplementation::StencilOp(GLenum fail
,
1084 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilOp");
1085 gl_
->StencilOp(fail
, zfail
, zpass
);
1088 void GLES2TraceImplementation::StencilOpSeparate(GLenum face
,
1092 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilOpSeparate");
1093 gl_
->StencilOpSeparate(face
, fail
, zfail
, zpass
);
1096 void GLES2TraceImplementation::TexImage2D(GLenum target
,
1098 GLint internalformat
,
1104 const void* pixels
) {
1105 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImage2D");
1106 gl_
->TexImage2D(target
, level
, internalformat
, width
, height
, border
, format
,
1110 void GLES2TraceImplementation::TexImage3D(GLenum target
,
1112 GLint internalformat
,
1119 const void* pixels
) {
1120 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImage3D");
1121 gl_
->TexImage3D(target
, level
, internalformat
, width
, height
, depth
, border
,
1122 format
, type
, pixels
);
1125 void GLES2TraceImplementation::TexParameterf(GLenum target
,
1128 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterf");
1129 gl_
->TexParameterf(target
, pname
, param
);
1132 void GLES2TraceImplementation::TexParameterfv(GLenum target
,
1134 const GLfloat
* params
) {
1135 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterfv");
1136 gl_
->TexParameterfv(target
, pname
, params
);
1139 void GLES2TraceImplementation::TexParameteri(GLenum target
,
1142 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameteri");
1143 gl_
->TexParameteri(target
, pname
, param
);
1146 void GLES2TraceImplementation::TexParameteriv(GLenum target
,
1148 const GLint
* params
) {
1149 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameteriv");
1150 gl_
->TexParameteriv(target
, pname
, params
);
1153 void GLES2TraceImplementation::TexStorage3D(GLenum target
,
1155 GLenum internalFormat
,
1159 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexStorage3D");
1160 gl_
->TexStorage3D(target
, levels
, internalFormat
, width
, height
, depth
);
1163 void GLES2TraceImplementation::TexSubImage2D(GLenum target
,
1171 const void* pixels
) {
1172 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage2D");
1173 gl_
->TexSubImage2D(target
, level
, xoffset
, yoffset
, width
, height
, format
,
1177 void GLES2TraceImplementation::TexSubImage3D(GLenum target
,
1187 const void* pixels
) {
1188 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage3D");
1189 gl_
->TexSubImage3D(target
, level
, xoffset
, yoffset
, zoffset
, width
, height
,
1190 depth
, format
, type
, pixels
);
1193 void GLES2TraceImplementation::TransformFeedbackVaryings(
1196 const char* const* varyings
,
1197 GLenum buffermode
) {
1198 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TransformFeedbackVaryings");
1199 gl_
->TransformFeedbackVaryings(program
, count
, varyings
, buffermode
);
1202 void GLES2TraceImplementation::Uniform1f(GLint location
, GLfloat x
) {
1203 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1f");
1204 gl_
->Uniform1f(location
, x
);
1207 void GLES2TraceImplementation::Uniform1fv(GLint location
,
1210 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1fv");
1211 gl_
->Uniform1fv(location
, count
, v
);
1214 void GLES2TraceImplementation::Uniform1i(GLint location
, GLint x
) {
1215 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1i");
1216 gl_
->Uniform1i(location
, x
);
1219 void GLES2TraceImplementation::Uniform1iv(GLint location
,
1222 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1iv");
1223 gl_
->Uniform1iv(location
, count
, v
);
1226 void GLES2TraceImplementation::Uniform1ui(GLint location
, GLuint x
) {
1227 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1ui");
1228 gl_
->Uniform1ui(location
, x
);
1231 void GLES2TraceImplementation::Uniform1uiv(GLint location
,
1234 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1uiv");
1235 gl_
->Uniform1uiv(location
, count
, v
);
1238 void GLES2TraceImplementation::Uniform2f(GLint location
, GLfloat x
, GLfloat y
) {
1239 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2f");
1240 gl_
->Uniform2f(location
, x
, y
);
1243 void GLES2TraceImplementation::Uniform2fv(GLint location
,
1246 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2fv");
1247 gl_
->Uniform2fv(location
, count
, v
);
1250 void GLES2TraceImplementation::Uniform2i(GLint location
, GLint x
, GLint y
) {
1251 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2i");
1252 gl_
->Uniform2i(location
, x
, y
);
1255 void GLES2TraceImplementation::Uniform2iv(GLint location
,
1258 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2iv");
1259 gl_
->Uniform2iv(location
, count
, v
);
1262 void GLES2TraceImplementation::Uniform2ui(GLint location
, GLuint x
, GLuint y
) {
1263 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2ui");
1264 gl_
->Uniform2ui(location
, x
, y
);
1267 void GLES2TraceImplementation::Uniform2uiv(GLint location
,
1270 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2uiv");
1271 gl_
->Uniform2uiv(location
, count
, v
);
1274 void GLES2TraceImplementation::Uniform3f(GLint location
,
1278 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3f");
1279 gl_
->Uniform3f(location
, x
, y
, z
);
1282 void GLES2TraceImplementation::Uniform3fv(GLint location
,
1285 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3fv");
1286 gl_
->Uniform3fv(location
, count
, v
);
1289 void GLES2TraceImplementation::Uniform3i(GLint location
,
1293 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3i");
1294 gl_
->Uniform3i(location
, x
, y
, z
);
1297 void GLES2TraceImplementation::Uniform3iv(GLint location
,
1300 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3iv");
1301 gl_
->Uniform3iv(location
, count
, v
);
1304 void GLES2TraceImplementation::Uniform3ui(GLint location
,
1308 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3ui");
1309 gl_
->Uniform3ui(location
, x
, y
, z
);
1312 void GLES2TraceImplementation::Uniform3uiv(GLint location
,
1315 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3uiv");
1316 gl_
->Uniform3uiv(location
, count
, v
);
1319 void GLES2TraceImplementation::Uniform4f(GLint location
,
1324 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4f");
1325 gl_
->Uniform4f(location
, x
, y
, z
, w
);
1328 void GLES2TraceImplementation::Uniform4fv(GLint location
,
1331 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4fv");
1332 gl_
->Uniform4fv(location
, count
, v
);
1335 void GLES2TraceImplementation::Uniform4i(GLint location
,
1340 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4i");
1341 gl_
->Uniform4i(location
, x
, y
, z
, w
);
1344 void GLES2TraceImplementation::Uniform4iv(GLint location
,
1347 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4iv");
1348 gl_
->Uniform4iv(location
, count
, v
);
1351 void GLES2TraceImplementation::Uniform4ui(GLint location
,
1356 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4ui");
1357 gl_
->Uniform4ui(location
, x
, y
, z
, w
);
1360 void GLES2TraceImplementation::Uniform4uiv(GLint location
,
1363 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4uiv");
1364 gl_
->Uniform4uiv(location
, count
, v
);
1367 void GLES2TraceImplementation::UniformBlockBinding(GLuint program
,
1370 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformBlockBinding");
1371 gl_
->UniformBlockBinding(program
, index
, binding
);
1374 void GLES2TraceImplementation::UniformMatrix2fv(GLint location
,
1376 GLboolean transpose
,
1377 const GLfloat
* value
) {
1378 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2fv");
1379 gl_
->UniformMatrix2fv(location
, count
, transpose
, value
);
1382 void GLES2TraceImplementation::UniformMatrix2x3fv(GLint location
,
1384 GLboolean transpose
,
1385 const GLfloat
* value
) {
1386 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2x3fv");
1387 gl_
->UniformMatrix2x3fv(location
, count
, transpose
, value
);
1390 void GLES2TraceImplementation::UniformMatrix2x4fv(GLint location
,
1392 GLboolean transpose
,
1393 const GLfloat
* value
) {
1394 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2x4fv");
1395 gl_
->UniformMatrix2x4fv(location
, count
, transpose
, value
);
1398 void GLES2TraceImplementation::UniformMatrix3fv(GLint location
,
1400 GLboolean transpose
,
1401 const GLfloat
* value
) {
1402 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3fv");
1403 gl_
->UniformMatrix3fv(location
, count
, transpose
, value
);
1406 void GLES2TraceImplementation::UniformMatrix3x2fv(GLint location
,
1408 GLboolean transpose
,
1409 const GLfloat
* value
) {
1410 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3x2fv");
1411 gl_
->UniformMatrix3x2fv(location
, count
, transpose
, value
);
1414 void GLES2TraceImplementation::UniformMatrix3x4fv(GLint location
,
1416 GLboolean transpose
,
1417 const GLfloat
* value
) {
1418 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3x4fv");
1419 gl_
->UniformMatrix3x4fv(location
, count
, transpose
, value
);
1422 void GLES2TraceImplementation::UniformMatrix4fv(GLint location
,
1424 GLboolean transpose
,
1425 const GLfloat
* value
) {
1426 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4fv");
1427 gl_
->UniformMatrix4fv(location
, count
, transpose
, value
);
1430 void GLES2TraceImplementation::UniformMatrix4x2fv(GLint location
,
1432 GLboolean transpose
,
1433 const GLfloat
* value
) {
1434 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4x2fv");
1435 gl_
->UniformMatrix4x2fv(location
, count
, transpose
, value
);
1438 void GLES2TraceImplementation::UniformMatrix4x3fv(GLint location
,
1440 GLboolean transpose
,
1441 const GLfloat
* value
) {
1442 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4x3fv");
1443 gl_
->UniformMatrix4x3fv(location
, count
, transpose
, value
);
1446 void GLES2TraceImplementation::UseProgram(GLuint program
) {
1447 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UseProgram");
1448 gl_
->UseProgram(program
);
1451 void GLES2TraceImplementation::ValidateProgram(GLuint program
) {
1452 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ValidateProgram");
1453 gl_
->ValidateProgram(program
);
1456 void GLES2TraceImplementation::VertexAttrib1f(GLuint indx
, GLfloat x
) {
1457 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib1f");
1458 gl_
->VertexAttrib1f(indx
, x
);
1461 void GLES2TraceImplementation::VertexAttrib1fv(GLuint indx
,
1462 const GLfloat
* values
) {
1463 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib1fv");
1464 gl_
->VertexAttrib1fv(indx
, values
);
1467 void GLES2TraceImplementation::VertexAttrib2f(GLuint indx
,
1470 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib2f");
1471 gl_
->VertexAttrib2f(indx
, x
, y
);
1474 void GLES2TraceImplementation::VertexAttrib2fv(GLuint indx
,
1475 const GLfloat
* values
) {
1476 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib2fv");
1477 gl_
->VertexAttrib2fv(indx
, values
);
1480 void GLES2TraceImplementation::VertexAttrib3f(GLuint indx
,
1484 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib3f");
1485 gl_
->VertexAttrib3f(indx
, x
, y
, z
);
1488 void GLES2TraceImplementation::VertexAttrib3fv(GLuint indx
,
1489 const GLfloat
* values
) {
1490 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib3fv");
1491 gl_
->VertexAttrib3fv(indx
, values
);
1494 void GLES2TraceImplementation::VertexAttrib4f(GLuint indx
,
1499 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib4f");
1500 gl_
->VertexAttrib4f(indx
, x
, y
, z
, w
);
1503 void GLES2TraceImplementation::VertexAttrib4fv(GLuint indx
,
1504 const GLfloat
* values
) {
1505 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib4fv");
1506 gl_
->VertexAttrib4fv(indx
, values
);
1509 void GLES2TraceImplementation::VertexAttribI4i(GLuint indx
,
1514 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4i");
1515 gl_
->VertexAttribI4i(indx
, x
, y
, z
, w
);
1518 void GLES2TraceImplementation::VertexAttribI4iv(GLuint indx
,
1519 const GLint
* values
) {
1520 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4iv");
1521 gl_
->VertexAttribI4iv(indx
, values
);
1524 void GLES2TraceImplementation::VertexAttribI4ui(GLuint indx
,
1529 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4ui");
1530 gl_
->VertexAttribI4ui(indx
, x
, y
, z
, w
);
1533 void GLES2TraceImplementation::VertexAttribI4uiv(GLuint indx
,
1534 const GLuint
* values
) {
1535 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4uiv");
1536 gl_
->VertexAttribI4uiv(indx
, values
);
1539 void GLES2TraceImplementation::VertexAttribIPointer(GLuint indx
,
1544 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribIPointer");
1545 gl_
->VertexAttribIPointer(indx
, size
, type
, stride
, ptr
);
1548 void GLES2TraceImplementation::VertexAttribPointer(GLuint indx
,
1551 GLboolean normalized
,
1554 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribPointer");
1555 gl_
->VertexAttribPointer(indx
, size
, type
, normalized
, stride
, ptr
);
1558 void GLES2TraceImplementation::Viewport(GLint x
,
1562 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Viewport");
1563 gl_
->Viewport(x
, y
, width
, height
);
1566 void GLES2TraceImplementation::WaitSync(GLsync sync
,
1569 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::WaitSync");
1570 gl_
->WaitSync(sync
, flags
, timeout
);
1573 void GLES2TraceImplementation::BlitFramebufferCHROMIUM(GLint srcX0
,
1583 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlitFramebufferCHROMIUM");
1584 gl_
->BlitFramebufferCHROMIUM(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
, dstX1
,
1585 dstY1
, mask
, filter
);
1588 void GLES2TraceImplementation::RenderbufferStorageMultisampleCHROMIUM(
1591 GLenum internalformat
,
1594 TRACE_EVENT_BINARY_EFFICIENT0(
1595 "gpu", "GLES2Trace::RenderbufferStorageMultisampleCHROMIUM");
1596 gl_
->RenderbufferStorageMultisampleCHROMIUM(target
, samples
, internalformat
,
1600 void GLES2TraceImplementation::RenderbufferStorageMultisampleEXT(
1603 GLenum internalformat
,
1606 TRACE_EVENT_BINARY_EFFICIENT0(
1607 "gpu", "GLES2Trace::RenderbufferStorageMultisampleEXT");
1608 gl_
->RenderbufferStorageMultisampleEXT(target
, samples
, internalformat
, width
,
1612 void GLES2TraceImplementation::FramebufferTexture2DMultisampleEXT(
1619 TRACE_EVENT_BINARY_EFFICIENT0(
1620 "gpu", "GLES2Trace::FramebufferTexture2DMultisampleEXT");
1621 gl_
->FramebufferTexture2DMultisampleEXT(target
, attachment
, textarget
,
1622 texture
, level
, samples
);
1625 void GLES2TraceImplementation::TexStorage2DEXT(GLenum target
,
1627 GLenum internalFormat
,
1630 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexStorage2DEXT");
1631 gl_
->TexStorage2DEXT(target
, levels
, internalFormat
, width
, height
);
1634 void GLES2TraceImplementation::GenQueriesEXT(GLsizei n
, GLuint
* queries
) {
1635 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenQueriesEXT");
1636 gl_
->GenQueriesEXT(n
, queries
);
1639 void GLES2TraceImplementation::DeleteQueriesEXT(GLsizei n
,
1640 const GLuint
* queries
) {
1641 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteQueriesEXT");
1642 gl_
->DeleteQueriesEXT(n
, queries
);
1645 void GLES2TraceImplementation::QueryCounterEXT(GLuint id
, GLenum target
) {
1646 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::QueryCounterEXT");
1647 gl_
->QueryCounterEXT(id
, target
);
1650 GLboolean
GLES2TraceImplementation::IsQueryEXT(GLuint id
) {
1651 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsQueryEXT");
1652 return gl_
->IsQueryEXT(id
);
1655 void GLES2TraceImplementation::BeginQueryEXT(GLenum target
, GLuint id
) {
1656 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BeginQueryEXT");
1657 gl_
->BeginQueryEXT(target
, id
);
1660 void GLES2TraceImplementation::BeginTransformFeedback(GLenum primitivemode
) {
1661 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BeginTransformFeedback");
1662 gl_
->BeginTransformFeedback(primitivemode
);
1665 void GLES2TraceImplementation::EndQueryEXT(GLenum target
) {
1666 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EndQueryEXT");
1667 gl_
->EndQueryEXT(target
);
1670 void GLES2TraceImplementation::EndTransformFeedback() {
1671 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EndTransformFeedback");
1672 gl_
->EndTransformFeedback();
1675 void GLES2TraceImplementation::GetQueryivEXT(GLenum target
,
1678 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryivEXT");
1679 gl_
->GetQueryivEXT(target
, pname
, params
);
1682 void GLES2TraceImplementation::GetQueryObjectuivEXT(GLuint id
,
1685 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryObjectuivEXT");
1686 gl_
->GetQueryObjectuivEXT(id
, pname
, params
);
1689 void GLES2TraceImplementation::GetQueryObjectui64vEXT(GLuint id
,
1692 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryObjectui64vEXT");
1693 gl_
->GetQueryObjectui64vEXT(id
, pname
, params
);
1696 void GLES2TraceImplementation::InsertEventMarkerEXT(GLsizei length
,
1697 const GLchar
* marker
) {
1698 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InsertEventMarkerEXT");
1699 gl_
->InsertEventMarkerEXT(length
, marker
);
1702 void GLES2TraceImplementation::PushGroupMarkerEXT(GLsizei length
,
1703 const GLchar
* marker
) {
1704 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PushGroupMarkerEXT");
1705 gl_
->PushGroupMarkerEXT(length
, marker
);
1708 void GLES2TraceImplementation::PopGroupMarkerEXT() {
1709 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PopGroupMarkerEXT");
1710 gl_
->PopGroupMarkerEXT();
1713 void GLES2TraceImplementation::GenVertexArraysOES(GLsizei n
, GLuint
* arrays
) {
1714 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenVertexArraysOES");
1715 gl_
->GenVertexArraysOES(n
, arrays
);
1718 void GLES2TraceImplementation::DeleteVertexArraysOES(GLsizei n
,
1719 const GLuint
* arrays
) {
1720 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteVertexArraysOES");
1721 gl_
->DeleteVertexArraysOES(n
, arrays
);
1724 GLboolean
GLES2TraceImplementation::IsVertexArrayOES(GLuint array
) {
1725 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsVertexArrayOES");
1726 return gl_
->IsVertexArrayOES(array
);
1729 void GLES2TraceImplementation::BindVertexArrayOES(GLuint array
) {
1730 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindVertexArrayOES");
1731 gl_
->BindVertexArrayOES(array
);
1734 void GLES2TraceImplementation::SwapBuffers() {
1735 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SwapBuffers");
1739 GLuint
GLES2TraceImplementation::GetMaxValueInBufferCHROMIUM(GLuint buffer_id
,
1743 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1744 "GLES2Trace::GetMaxValueInBufferCHROMIUM");
1745 return gl_
->GetMaxValueInBufferCHROMIUM(buffer_id
, count
, type
, offset
);
1748 GLboolean
GLES2TraceImplementation::EnableFeatureCHROMIUM(const char* feature
) {
1749 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EnableFeatureCHROMIUM");
1750 return gl_
->EnableFeatureCHROMIUM(feature
);
1753 void* GLES2TraceImplementation::MapBufferCHROMIUM(GLuint target
,
1755 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferCHROMIUM");
1756 return gl_
->MapBufferCHROMIUM(target
, access
);
1759 GLboolean
GLES2TraceImplementation::UnmapBufferCHROMIUM(GLuint target
) {
1760 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UnmapBufferCHROMIUM");
1761 return gl_
->UnmapBufferCHROMIUM(target
);
1764 void* GLES2TraceImplementation::MapBufferSubDataCHROMIUM(GLuint target
,
1768 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferSubDataCHROMIUM");
1769 return gl_
->MapBufferSubDataCHROMIUM(target
, offset
, size
, access
);
1772 void GLES2TraceImplementation::UnmapBufferSubDataCHROMIUM(const void* mem
) {
1773 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1774 "GLES2Trace::UnmapBufferSubDataCHROMIUM");
1775 gl_
->UnmapBufferSubDataCHROMIUM(mem
);
1778 void* GLES2TraceImplementation::MapBufferRange(GLenum target
,
1781 GLbitfield access
) {
1782 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferRange");
1783 return gl_
->MapBufferRange(target
, offset
, size
, access
);
1786 GLboolean
GLES2TraceImplementation::UnmapBuffer(GLenum target
) {
1787 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UnmapBuffer");
1788 return gl_
->UnmapBuffer(target
);
1791 void* GLES2TraceImplementation::MapTexSubImage2DCHROMIUM(GLenum target
,
1800 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapTexSubImage2DCHROMIUM");
1801 return gl_
->MapTexSubImage2DCHROMIUM(target
, level
, xoffset
, yoffset
, width
,
1802 height
, format
, type
, access
);
1805 void GLES2TraceImplementation::UnmapTexSubImage2DCHROMIUM(const void* mem
) {
1806 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1807 "GLES2Trace::UnmapTexSubImage2DCHROMIUM");
1808 gl_
->UnmapTexSubImage2DCHROMIUM(mem
);
1811 void GLES2TraceImplementation::ResizeCHROMIUM(GLuint width
,
1813 GLfloat scale_factor
) {
1814 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ResizeCHROMIUM");
1815 gl_
->ResizeCHROMIUM(width
, height
, scale_factor
);
1818 const GLchar
* GLES2TraceImplementation::GetRequestableExtensionsCHROMIUM() {
1819 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1820 "GLES2Trace::GetRequestableExtensionsCHROMIUM");
1821 return gl_
->GetRequestableExtensionsCHROMIUM();
1824 void GLES2TraceImplementation::RequestExtensionCHROMIUM(const char* extension
) {
1825 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RequestExtensionCHROMIUM");
1826 gl_
->RequestExtensionCHROMIUM(extension
);
1829 void GLES2TraceImplementation::RateLimitOffscreenContextCHROMIUM() {
1830 TRACE_EVENT_BINARY_EFFICIENT0(
1831 "gpu", "GLES2Trace::RateLimitOffscreenContextCHROMIUM");
1832 gl_
->RateLimitOffscreenContextCHROMIUM();
1835 void GLES2TraceImplementation::GetProgramInfoCHROMIUM(GLuint program
,
1839 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramInfoCHROMIUM");
1840 gl_
->GetProgramInfoCHROMIUM(program
, bufsize
, size
, info
);
1843 void GLES2TraceImplementation::GetUniformBlocksCHROMIUM(GLuint program
,
1847 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformBlocksCHROMIUM");
1848 gl_
->GetUniformBlocksCHROMIUM(program
, bufsize
, size
, info
);
1851 void GLES2TraceImplementation::GetTransformFeedbackVaryingsCHROMIUM(
1856 TRACE_EVENT_BINARY_EFFICIENT0(
1857 "gpu", "GLES2Trace::GetTransformFeedbackVaryingsCHROMIUM");
1858 gl_
->GetTransformFeedbackVaryingsCHROMIUM(program
, bufsize
, size
, info
);
1861 void GLES2TraceImplementation::GetUniformsES3CHROMIUM(GLuint program
,
1865 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformsES3CHROMIUM");
1866 gl_
->GetUniformsES3CHROMIUM(program
, bufsize
, size
, info
);
1869 GLuint
GLES2TraceImplementation::CreateStreamTextureCHROMIUM(GLuint texture
) {
1870 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1871 "GLES2Trace::CreateStreamTextureCHROMIUM");
1872 return gl_
->CreateStreamTextureCHROMIUM(texture
);
1875 GLuint
GLES2TraceImplementation::CreateImageCHROMIUM(ClientBuffer buffer
,
1878 GLenum internalformat
) {
1879 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateImageCHROMIUM");
1880 return gl_
->CreateImageCHROMIUM(buffer
, width
, height
, internalformat
);
1883 void GLES2TraceImplementation::DestroyImageCHROMIUM(GLuint image_id
) {
1884 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DestroyImageCHROMIUM");
1885 gl_
->DestroyImageCHROMIUM(image_id
);
1888 GLuint
GLES2TraceImplementation::CreateGpuMemoryBufferImageCHROMIUM(
1891 GLenum internalformat
,
1893 TRACE_EVENT_BINARY_EFFICIENT0(
1894 "gpu", "GLES2Trace::CreateGpuMemoryBufferImageCHROMIUM");
1895 return gl_
->CreateGpuMemoryBufferImageCHROMIUM(width
, height
, internalformat
,
1899 void GLES2TraceImplementation::GetTranslatedShaderSourceANGLE(GLuint shader
,
1903 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1904 "GLES2Trace::GetTranslatedShaderSourceANGLE");
1905 gl_
->GetTranslatedShaderSourceANGLE(shader
, bufsize
, length
, source
);
1908 void GLES2TraceImplementation::PostSubBufferCHROMIUM(GLint x
,
1912 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PostSubBufferCHROMIUM");
1913 gl_
->PostSubBufferCHROMIUM(x
, y
, width
, height
);
1916 void GLES2TraceImplementation::TexImageIOSurface2DCHROMIUM(GLenum target
,
1921 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1922 "GLES2Trace::TexImageIOSurface2DCHROMIUM");
1923 gl_
->TexImageIOSurface2DCHROMIUM(target
, width
, height
, ioSurfaceId
, plane
);
1926 void GLES2TraceImplementation::CopyTextureCHROMIUM(
1930 GLint internalformat
,
1932 GLboolean unpack_flip_y
,
1933 GLboolean unpack_premultiply_alpha
,
1934 GLboolean unpack_unmultiply_alpha
) {
1935 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTextureCHROMIUM");
1936 gl_
->CopyTextureCHROMIUM(target
, source_id
, dest_id
, internalformat
,
1937 dest_type
, unpack_flip_y
, unpack_premultiply_alpha
,
1938 unpack_unmultiply_alpha
);
1941 void GLES2TraceImplementation::CopySubTextureCHROMIUM(
1951 GLboolean unpack_flip_y
,
1952 GLboolean unpack_premultiply_alpha
,
1953 GLboolean unpack_unmultiply_alpha
) {
1954 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopySubTextureCHROMIUM");
1955 gl_
->CopySubTextureCHROMIUM(
1956 target
, source_id
, dest_id
, xoffset
, yoffset
, x
, y
, width
, height
,
1957 unpack_flip_y
, unpack_premultiply_alpha
, unpack_unmultiply_alpha
);
1960 void GLES2TraceImplementation::CompressedCopyTextureCHROMIUM(GLenum target
,
1963 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1964 "GLES2Trace::CompressedCopyTextureCHROMIUM");
1965 gl_
->CompressedCopyTextureCHROMIUM(target
, source_id
, dest_id
);
1968 void GLES2TraceImplementation::DrawArraysInstancedANGLE(GLenum mode
,
1971 GLsizei primcount
) {
1972 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawArraysInstancedANGLE");
1973 gl_
->DrawArraysInstancedANGLE(mode
, first
, count
, primcount
);
1976 void GLES2TraceImplementation::DrawElementsInstancedANGLE(GLenum mode
,
1979 const void* indices
,
1980 GLsizei primcount
) {
1981 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1982 "GLES2Trace::DrawElementsInstancedANGLE");
1983 gl_
->DrawElementsInstancedANGLE(mode
, count
, type
, indices
, primcount
);
1986 void GLES2TraceImplementation::VertexAttribDivisorANGLE(GLuint index
,
1988 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribDivisorANGLE");
1989 gl_
->VertexAttribDivisorANGLE(index
, divisor
);
1992 void GLES2TraceImplementation::GenMailboxCHROMIUM(GLbyte
* mailbox
) {
1993 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenMailboxCHROMIUM");
1994 gl_
->GenMailboxCHROMIUM(mailbox
);
1997 void GLES2TraceImplementation::ProduceTextureCHROMIUM(GLenum target
,
1998 const GLbyte
* mailbox
) {
1999 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ProduceTextureCHROMIUM");
2000 gl_
->ProduceTextureCHROMIUM(target
, mailbox
);
2003 void GLES2TraceImplementation::ProduceTextureDirectCHROMIUM(
2006 const GLbyte
* mailbox
) {
2007 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2008 "GLES2Trace::ProduceTextureDirectCHROMIUM");
2009 gl_
->ProduceTextureDirectCHROMIUM(texture
, target
, mailbox
);
2012 void GLES2TraceImplementation::ConsumeTextureCHROMIUM(GLenum target
,
2013 const GLbyte
* mailbox
) {
2014 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ConsumeTextureCHROMIUM");
2015 gl_
->ConsumeTextureCHROMIUM(target
, mailbox
);
2018 GLuint
GLES2TraceImplementation::CreateAndConsumeTextureCHROMIUM(
2020 const GLbyte
* mailbox
) {
2021 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2022 "GLES2Trace::CreateAndConsumeTextureCHROMIUM");
2023 return gl_
->CreateAndConsumeTextureCHROMIUM(target
, mailbox
);
2026 void GLES2TraceImplementation::BindUniformLocationCHROMIUM(GLuint program
,
2029 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2030 "GLES2Trace::BindUniformLocationCHROMIUM");
2031 gl_
->BindUniformLocationCHROMIUM(program
, location
, name
);
2034 void GLES2TraceImplementation::GenValuebuffersCHROMIUM(GLsizei n
,
2036 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenValuebuffersCHROMIUM");
2037 gl_
->GenValuebuffersCHROMIUM(n
, buffers
);
2040 void GLES2TraceImplementation::DeleteValuebuffersCHROMIUM(
2042 const GLuint
* valuebuffers
) {
2043 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2044 "GLES2Trace::DeleteValuebuffersCHROMIUM");
2045 gl_
->DeleteValuebuffersCHROMIUM(n
, valuebuffers
);
2048 GLboolean
GLES2TraceImplementation::IsValuebufferCHROMIUM(GLuint valuebuffer
) {
2049 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsValuebufferCHROMIUM");
2050 return gl_
->IsValuebufferCHROMIUM(valuebuffer
);
2053 void GLES2TraceImplementation::BindValuebufferCHROMIUM(GLenum target
,
2054 GLuint valuebuffer
) {
2055 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindValuebufferCHROMIUM");
2056 gl_
->BindValuebufferCHROMIUM(target
, valuebuffer
);
2059 void GLES2TraceImplementation::SubscribeValueCHROMIUM(GLenum target
,
2060 GLenum subscription
) {
2061 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SubscribeValueCHROMIUM");
2062 gl_
->SubscribeValueCHROMIUM(target
, subscription
);
2065 void GLES2TraceImplementation::PopulateSubscribedValuesCHROMIUM(GLenum target
) {
2066 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2067 "GLES2Trace::PopulateSubscribedValuesCHROMIUM");
2068 gl_
->PopulateSubscribedValuesCHROMIUM(target
);
2071 void GLES2TraceImplementation::UniformValuebufferCHROMIUM(GLint location
,
2073 GLenum subscription
) {
2074 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2075 "GLES2Trace::UniformValuebufferCHROMIUM");
2076 gl_
->UniformValuebufferCHROMIUM(location
, target
, subscription
);
2079 void GLES2TraceImplementation::BindTexImage2DCHROMIUM(GLenum target
,
2081 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindTexImage2DCHROMIUM");
2082 gl_
->BindTexImage2DCHROMIUM(target
, imageId
);
2085 void GLES2TraceImplementation::ReleaseTexImage2DCHROMIUM(GLenum target
,
2087 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReleaseTexImage2DCHROMIUM");
2088 gl_
->ReleaseTexImage2DCHROMIUM(target
, imageId
);
2091 void GLES2TraceImplementation::TraceBeginCHROMIUM(const char* category_name
,
2092 const char* trace_name
) {
2093 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TraceBeginCHROMIUM");
2094 gl_
->TraceBeginCHROMIUM(category_name
, trace_name
);
2097 void GLES2TraceImplementation::TraceEndCHROMIUM() {
2098 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TraceEndCHROMIUM");
2099 gl_
->TraceEndCHROMIUM();
2102 void GLES2TraceImplementation::AsyncTexSubImage2DCHROMIUM(GLenum target
,
2111 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2112 "GLES2Trace::AsyncTexSubImage2DCHROMIUM");
2113 gl_
->AsyncTexSubImage2DCHROMIUM(target
, level
, xoffset
, yoffset
, width
,
2114 height
, format
, type
, data
);
2117 void GLES2TraceImplementation::AsyncTexImage2DCHROMIUM(GLenum target
,
2119 GLenum internalformat
,
2125 const void* pixels
) {
2126 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::AsyncTexImage2DCHROMIUM");
2127 gl_
->AsyncTexImage2DCHROMIUM(target
, level
, internalformat
, width
, height
,
2128 border
, format
, type
, pixels
);
2131 void GLES2TraceImplementation::WaitAsyncTexImage2DCHROMIUM(GLenum target
) {
2132 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2133 "GLES2Trace::WaitAsyncTexImage2DCHROMIUM");
2134 gl_
->WaitAsyncTexImage2DCHROMIUM(target
);
2137 void GLES2TraceImplementation::WaitAllAsyncTexImage2DCHROMIUM() {
2138 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2139 "GLES2Trace::WaitAllAsyncTexImage2DCHROMIUM");
2140 gl_
->WaitAllAsyncTexImage2DCHROMIUM();
2143 void GLES2TraceImplementation::DiscardFramebufferEXT(
2146 const GLenum
* attachments
) {
2147 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DiscardFramebufferEXT");
2148 gl_
->DiscardFramebufferEXT(target
, count
, attachments
);
2151 void GLES2TraceImplementation::LoseContextCHROMIUM(GLenum current
,
2153 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LoseContextCHROMIUM");
2154 gl_
->LoseContextCHROMIUM(current
, other
);
2157 GLuint
GLES2TraceImplementation::InsertSyncPointCHROMIUM() {
2158 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InsertSyncPointCHROMIUM");
2159 return gl_
->InsertSyncPointCHROMIUM();
2162 void GLES2TraceImplementation::WaitSyncPointCHROMIUM(GLuint sync_point
) {
2163 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::WaitSyncPointCHROMIUM");
2164 gl_
->WaitSyncPointCHROMIUM(sync_point
);
2167 void GLES2TraceImplementation::DrawBuffersEXT(GLsizei count
,
2168 const GLenum
* bufs
) {
2169 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawBuffersEXT");
2170 gl_
->DrawBuffersEXT(count
, bufs
);
2173 void GLES2TraceImplementation::DiscardBackbufferCHROMIUM() {
2174 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DiscardBackbufferCHROMIUM");
2175 gl_
->DiscardBackbufferCHROMIUM();
2178 void GLES2TraceImplementation::ScheduleOverlayPlaneCHROMIUM(
2179 GLint plane_z_order
,
2180 GLenum plane_transform
,
2181 GLuint overlay_texture_id
,
2185 GLint bounds_height
,
2189 GLfloat uv_height
) {
2190 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2191 "GLES2Trace::ScheduleOverlayPlaneCHROMIUM");
2192 gl_
->ScheduleOverlayPlaneCHROMIUM(
2193 plane_z_order
, plane_transform
, overlay_texture_id
, bounds_x
, bounds_y
,
2194 bounds_width
, bounds_height
, uv_x
, uv_y
, uv_width
, uv_height
);
2197 void GLES2TraceImplementation::SwapInterval(GLint interval
) {
2198 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SwapInterval");
2199 gl_
->SwapInterval(interval
);
2202 void GLES2TraceImplementation::FlushDriverCachesCHROMIUM() {
2203 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FlushDriverCachesCHROMIUM");
2204 gl_
->FlushDriverCachesCHROMIUM();
2207 void GLES2TraceImplementation::MatrixLoadfCHROMIUM(GLenum matrixMode
,
2209 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MatrixLoadfCHROMIUM");
2210 gl_
->MatrixLoadfCHROMIUM(matrixMode
, m
);
2213 void GLES2TraceImplementation::MatrixLoadIdentityCHROMIUM(GLenum matrixMode
) {
2214 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2215 "GLES2Trace::MatrixLoadIdentityCHROMIUM");
2216 gl_
->MatrixLoadIdentityCHROMIUM(matrixMode
);
2219 GLuint
GLES2TraceImplementation::GenPathsCHROMIUM(GLsizei range
) {
2220 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenPathsCHROMIUM");
2221 return gl_
->GenPathsCHROMIUM(range
);
2224 void GLES2TraceImplementation::DeletePathsCHROMIUM(GLuint path
, GLsizei range
) {
2225 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeletePathsCHROMIUM");
2226 gl_
->DeletePathsCHROMIUM(path
, range
);
2229 GLboolean
GLES2TraceImplementation::IsPathCHROMIUM(GLuint path
) {
2230 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsPathCHROMIUM");
2231 return gl_
->IsPathCHROMIUM(path
);
2234 void GLES2TraceImplementation::PathCommandsCHROMIUM(GLuint path
,
2235 GLsizei numCommands
,
2236 const GLubyte
* commands
,
2239 const GLvoid
* coords
) {
2240 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PathCommandsCHROMIUM");
2241 gl_
->PathCommandsCHROMIUM(path
, numCommands
, commands
, numCoords
, coordType
,
2245 void GLES2TraceImplementation::PathParameterfCHROMIUM(GLuint path
,
2248 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PathParameterfCHROMIUM");
2249 gl_
->PathParameterfCHROMIUM(path
, pname
, value
);
2252 void GLES2TraceImplementation::PathParameteriCHROMIUM(GLuint path
,
2255 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PathParameteriCHROMIUM");
2256 gl_
->PathParameteriCHROMIUM(path
, pname
, value
);
2259 void GLES2TraceImplementation::PathStencilFuncCHROMIUM(GLenum func
,
2262 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PathStencilFuncCHROMIUM");
2263 gl_
->PathStencilFuncCHROMIUM(func
, ref
, mask
);
2266 void GLES2TraceImplementation::StencilFillPathCHROMIUM(GLuint path
,
2269 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFillPathCHROMIUM");
2270 gl_
->StencilFillPathCHROMIUM(path
, fillMode
, mask
);
2273 void GLES2TraceImplementation::StencilStrokePathCHROMIUM(GLuint path
,
2276 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilStrokePathCHROMIUM");
2277 gl_
->StencilStrokePathCHROMIUM(path
, reference
, mask
);
2280 void GLES2TraceImplementation::CoverFillPathCHROMIUM(GLuint path
,
2282 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CoverFillPathCHROMIUM");
2283 gl_
->CoverFillPathCHROMIUM(path
, coverMode
);
2286 void GLES2TraceImplementation::CoverStrokePathCHROMIUM(GLuint path
,
2288 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CoverStrokePathCHROMIUM");
2289 gl_
->CoverStrokePathCHROMIUM(path
, coverMode
);
2292 void GLES2TraceImplementation::StencilThenCoverFillPathCHROMIUM(
2297 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2298 "GLES2Trace::StencilThenCoverFillPathCHROMIUM");
2299 gl_
->StencilThenCoverFillPathCHROMIUM(path
, fillMode
, mask
, coverMode
);
2302 void GLES2TraceImplementation::StencilThenCoverStrokePathCHROMIUM(
2307 TRACE_EVENT_BINARY_EFFICIENT0(
2308 "gpu", "GLES2Trace::StencilThenCoverStrokePathCHROMIUM");
2309 gl_
->StencilThenCoverStrokePathCHROMIUM(path
, reference
, mask
, coverMode
);
2312 GLenum
GLES2TraceImplementation::GetGraphicsResetStatusKHR() {
2313 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetGraphicsResetStatusKHR");
2314 return gl_
->GetGraphicsResetStatusKHR();
2317 void GLES2TraceImplementation::BlendBarrierKHR() {
2318 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendBarrierKHR");
2319 gl_
->BlendBarrierKHR();
2322 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_