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::CopyBufferSubData(GLenum readtarget
,
236 GLintptr writeoffset
,
238 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyBufferSubData");
239 gl_
->CopyBufferSubData(readtarget
, writetarget
, readoffset
, writeoffset
,
243 void GLES2TraceImplementation::CopyTexImage2D(GLenum target
,
245 GLenum internalformat
,
251 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexImage2D");
252 gl_
->CopyTexImage2D(target
, level
, internalformat
, x
, y
, width
, height
,
256 void GLES2TraceImplementation::CopyTexSubImage2D(GLenum target
,
264 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexSubImage2D");
265 gl_
->CopyTexSubImage2D(target
, level
, xoffset
, yoffset
, x
, y
, width
, height
);
268 void GLES2TraceImplementation::CopyTexSubImage3D(GLenum target
,
277 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexSubImage3D");
278 gl_
->CopyTexSubImage3D(target
, level
, xoffset
, yoffset
, zoffset
, x
, y
, width
,
282 GLuint
GLES2TraceImplementation::CreateProgram() {
283 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateProgram");
284 return gl_
->CreateProgram();
287 GLuint
GLES2TraceImplementation::CreateShader(GLenum type
) {
288 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateShader");
289 return gl_
->CreateShader(type
);
292 void GLES2TraceImplementation::CullFace(GLenum mode
) {
293 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CullFace");
297 void GLES2TraceImplementation::DeleteBuffers(GLsizei n
, const GLuint
* buffers
) {
298 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteBuffers");
299 gl_
->DeleteBuffers(n
, buffers
);
302 void GLES2TraceImplementation::DeleteFramebuffers(GLsizei n
,
303 const GLuint
* framebuffers
) {
304 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteFramebuffers");
305 gl_
->DeleteFramebuffers(n
, framebuffers
);
308 void GLES2TraceImplementation::DeleteProgram(GLuint program
) {
309 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteProgram");
310 gl_
->DeleteProgram(program
);
313 void GLES2TraceImplementation::DeleteRenderbuffers(
315 const GLuint
* renderbuffers
) {
316 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteRenderbuffers");
317 gl_
->DeleteRenderbuffers(n
, renderbuffers
);
320 void GLES2TraceImplementation::DeleteSamplers(GLsizei n
,
321 const GLuint
* samplers
) {
322 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteSamplers");
323 gl_
->DeleteSamplers(n
, samplers
);
326 void GLES2TraceImplementation::DeleteSync(GLsync sync
) {
327 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteSync");
328 gl_
->DeleteSync(sync
);
331 void GLES2TraceImplementation::DeleteShader(GLuint shader
) {
332 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteShader");
333 gl_
->DeleteShader(shader
);
336 void GLES2TraceImplementation::DeleteTextures(GLsizei n
,
337 const GLuint
* textures
) {
338 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteTextures");
339 gl_
->DeleteTextures(n
, textures
);
342 void GLES2TraceImplementation::DeleteTransformFeedbacks(GLsizei n
,
344 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteTransformFeedbacks");
345 gl_
->DeleteTransformFeedbacks(n
, ids
);
348 void GLES2TraceImplementation::DepthFunc(GLenum func
) {
349 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DepthFunc");
350 gl_
->DepthFunc(func
);
353 void GLES2TraceImplementation::DepthMask(GLboolean flag
) {
354 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DepthMask");
355 gl_
->DepthMask(flag
);
358 void GLES2TraceImplementation::DepthRangef(GLclampf zNear
, GLclampf zFar
) {
359 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DepthRangef");
360 gl_
->DepthRangef(zNear
, zFar
);
363 void GLES2TraceImplementation::DetachShader(GLuint program
, GLuint shader
) {
364 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DetachShader");
365 gl_
->DetachShader(program
, shader
);
368 void GLES2TraceImplementation::Disable(GLenum cap
) {
369 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Disable");
373 void GLES2TraceImplementation::DisableVertexAttribArray(GLuint index
) {
374 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DisableVertexAttribArray");
375 gl_
->DisableVertexAttribArray(index
);
378 void GLES2TraceImplementation::DrawArrays(GLenum mode
,
381 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawArrays");
382 gl_
->DrawArrays(mode
, first
, count
);
385 void GLES2TraceImplementation::DrawElements(GLenum mode
,
388 const void* indices
) {
389 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawElements");
390 gl_
->DrawElements(mode
, count
, type
, indices
);
393 void GLES2TraceImplementation::Enable(GLenum cap
) {
394 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Enable");
398 void GLES2TraceImplementation::EnableVertexAttribArray(GLuint index
) {
399 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EnableVertexAttribArray");
400 gl_
->EnableVertexAttribArray(index
);
403 GLsync
GLES2TraceImplementation::FenceSync(GLenum condition
, GLbitfield flags
) {
404 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FenceSync");
405 return gl_
->FenceSync(condition
, flags
);
408 void GLES2TraceImplementation::Finish() {
409 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Finish");
413 void GLES2TraceImplementation::Flush() {
414 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Flush");
418 void GLES2TraceImplementation::FramebufferRenderbuffer(
421 GLenum renderbuffertarget
,
422 GLuint renderbuffer
) {
423 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FramebufferRenderbuffer");
424 gl_
->FramebufferRenderbuffer(target
, attachment
, renderbuffertarget
,
428 void GLES2TraceImplementation::FramebufferTexture2D(GLenum target
,
433 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FramebufferTexture2D");
434 gl_
->FramebufferTexture2D(target
, attachment
, textarget
, texture
, level
);
437 void GLES2TraceImplementation::FramebufferTextureLayer(GLenum target
,
442 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FramebufferTextureLayer");
443 gl_
->FramebufferTextureLayer(target
, attachment
, texture
, level
, layer
);
446 void GLES2TraceImplementation::FrontFace(GLenum mode
) {
447 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FrontFace");
448 gl_
->FrontFace(mode
);
451 void GLES2TraceImplementation::GenBuffers(GLsizei n
, GLuint
* buffers
) {
452 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenBuffers");
453 gl_
->GenBuffers(n
, buffers
);
456 void GLES2TraceImplementation::GenerateMipmap(GLenum target
) {
457 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenerateMipmap");
458 gl_
->GenerateMipmap(target
);
461 void GLES2TraceImplementation::GenFramebuffers(GLsizei n
,
462 GLuint
* framebuffers
) {
463 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenFramebuffers");
464 gl_
->GenFramebuffers(n
, framebuffers
);
467 void GLES2TraceImplementation::GenRenderbuffers(GLsizei n
,
468 GLuint
* renderbuffers
) {
469 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenRenderbuffers");
470 gl_
->GenRenderbuffers(n
, renderbuffers
);
473 void GLES2TraceImplementation::GenSamplers(GLsizei n
, GLuint
* samplers
) {
474 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenSamplers");
475 gl_
->GenSamplers(n
, samplers
);
478 void GLES2TraceImplementation::GenTextures(GLsizei n
, GLuint
* textures
) {
479 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenTextures");
480 gl_
->GenTextures(n
, textures
);
483 void GLES2TraceImplementation::GenTransformFeedbacks(GLsizei n
, GLuint
* ids
) {
484 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenTransformFeedbacks");
485 gl_
->GenTransformFeedbacks(n
, ids
);
488 void GLES2TraceImplementation::GetActiveAttrib(GLuint program
,
495 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveAttrib");
496 gl_
->GetActiveAttrib(program
, index
, bufsize
, length
, size
, type
, name
);
499 void GLES2TraceImplementation::GetActiveUniform(GLuint program
,
506 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniform");
507 gl_
->GetActiveUniform(program
, index
, bufsize
, length
, size
, type
, name
);
510 void GLES2TraceImplementation::GetActiveUniformBlockiv(GLuint program
,
514 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniformBlockiv");
515 gl_
->GetActiveUniformBlockiv(program
, index
, pname
, params
);
518 void GLES2TraceImplementation::GetActiveUniformBlockName(GLuint program
,
523 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniformBlockName");
524 gl_
->GetActiveUniformBlockName(program
, index
, bufsize
, length
, name
);
527 void GLES2TraceImplementation::GetActiveUniformsiv(GLuint program
,
529 const GLuint
* indices
,
532 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniformsiv");
533 gl_
->GetActiveUniformsiv(program
, count
, indices
, pname
, params
);
536 void GLES2TraceImplementation::GetAttachedShaders(GLuint program
,
540 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetAttachedShaders");
541 gl_
->GetAttachedShaders(program
, maxcount
, count
, shaders
);
544 GLint
GLES2TraceImplementation::GetAttribLocation(GLuint program
,
546 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetAttribLocation");
547 return gl_
->GetAttribLocation(program
, name
);
550 void GLES2TraceImplementation::GetBooleanv(GLenum pname
, GLboolean
* params
) {
551 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetBooleanv");
552 gl_
->GetBooleanv(pname
, params
);
555 void GLES2TraceImplementation::GetBufferParameteriv(GLenum target
,
558 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetBufferParameteriv");
559 gl_
->GetBufferParameteriv(target
, pname
, params
);
562 GLenum
GLES2TraceImplementation::GetError() {
563 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetError");
564 return gl_
->GetError();
567 void GLES2TraceImplementation::GetFloatv(GLenum pname
, GLfloat
* params
) {
568 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetFloatv");
569 gl_
->GetFloatv(pname
, params
);
572 GLint
GLES2TraceImplementation::GetFragDataLocation(GLuint program
,
574 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetFragDataLocation");
575 return gl_
->GetFragDataLocation(program
, name
);
578 void GLES2TraceImplementation::GetFramebufferAttachmentParameteriv(
583 TRACE_EVENT_BINARY_EFFICIENT0(
584 "gpu", "GLES2Trace::GetFramebufferAttachmentParameteriv");
585 gl_
->GetFramebufferAttachmentParameteriv(target
, attachment
, pname
, params
);
588 void GLES2TraceImplementation::GetIntegerv(GLenum pname
, GLint
* params
) {
589 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetIntegerv");
590 gl_
->GetIntegerv(pname
, params
);
593 void GLES2TraceImplementation::GetInternalformativ(GLenum target
,
598 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetInternalformativ");
599 gl_
->GetInternalformativ(target
, format
, pname
, bufSize
, params
);
602 void GLES2TraceImplementation::GetProgramiv(GLuint program
,
605 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramiv");
606 gl_
->GetProgramiv(program
, pname
, params
);
609 void GLES2TraceImplementation::GetProgramInfoLog(GLuint program
,
613 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramInfoLog");
614 gl_
->GetProgramInfoLog(program
, bufsize
, length
, infolog
);
617 void GLES2TraceImplementation::GetRenderbufferParameteriv(GLenum target
,
620 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
621 "GLES2Trace::GetRenderbufferParameteriv");
622 gl_
->GetRenderbufferParameteriv(target
, pname
, params
);
625 void GLES2TraceImplementation::GetSamplerParameterfv(GLuint sampler
,
628 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetSamplerParameterfv");
629 gl_
->GetSamplerParameterfv(sampler
, pname
, params
);
632 void GLES2TraceImplementation::GetSamplerParameteriv(GLuint sampler
,
635 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetSamplerParameteriv");
636 gl_
->GetSamplerParameteriv(sampler
, pname
, params
);
639 void GLES2TraceImplementation::GetShaderiv(GLuint shader
,
642 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderiv");
643 gl_
->GetShaderiv(shader
, pname
, params
);
646 void GLES2TraceImplementation::GetShaderInfoLog(GLuint shader
,
650 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderInfoLog");
651 gl_
->GetShaderInfoLog(shader
, bufsize
, length
, infolog
);
654 void GLES2TraceImplementation::GetShaderPrecisionFormat(GLenum shadertype
,
655 GLenum precisiontype
,
658 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderPrecisionFormat");
659 gl_
->GetShaderPrecisionFormat(shadertype
, precisiontype
, range
, precision
);
662 void GLES2TraceImplementation::GetShaderSource(GLuint shader
,
666 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderSource");
667 gl_
->GetShaderSource(shader
, bufsize
, length
, source
);
670 const GLubyte
* GLES2TraceImplementation::GetString(GLenum name
) {
671 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetString");
672 return gl_
->GetString(name
);
675 void GLES2TraceImplementation::GetSynciv(GLsync sync
,
680 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetSynciv");
681 gl_
->GetSynciv(sync
, pname
, bufsize
, length
, values
);
684 void GLES2TraceImplementation::GetTexParameterfv(GLenum target
,
687 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetTexParameterfv");
688 gl_
->GetTexParameterfv(target
, pname
, params
);
691 void GLES2TraceImplementation::GetTexParameteriv(GLenum target
,
694 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetTexParameteriv");
695 gl_
->GetTexParameteriv(target
, pname
, params
);
698 void GLES2TraceImplementation::GetTransformFeedbackVarying(GLuint program
,
705 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
706 "GLES2Trace::GetTransformFeedbackVarying");
707 gl_
->GetTransformFeedbackVarying(program
, index
, bufsize
, length
, size
, type
,
711 GLuint
GLES2TraceImplementation::GetUniformBlockIndex(GLuint program
,
713 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformBlockIndex");
714 return gl_
->GetUniformBlockIndex(program
, name
);
717 void GLES2TraceImplementation::GetUniformfv(GLuint program
,
720 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformfv");
721 gl_
->GetUniformfv(program
, location
, params
);
724 void GLES2TraceImplementation::GetUniformiv(GLuint program
,
727 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformiv");
728 gl_
->GetUniformiv(program
, location
, params
);
731 void GLES2TraceImplementation::GetUniformIndices(GLuint program
,
733 const char* const* names
,
735 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformIndices");
736 gl_
->GetUniformIndices(program
, count
, names
, indices
);
739 GLint
GLES2TraceImplementation::GetUniformLocation(GLuint program
,
741 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformLocation");
742 return gl_
->GetUniformLocation(program
, name
);
745 void GLES2TraceImplementation::GetVertexAttribfv(GLuint index
,
748 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribfv");
749 gl_
->GetVertexAttribfv(index
, pname
, params
);
752 void GLES2TraceImplementation::GetVertexAttribiv(GLuint index
,
755 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribiv");
756 gl_
->GetVertexAttribiv(index
, pname
, params
);
759 void GLES2TraceImplementation::GetVertexAttribPointerv(GLuint index
,
762 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribPointerv");
763 gl_
->GetVertexAttribPointerv(index
, pname
, pointer
);
766 void GLES2TraceImplementation::Hint(GLenum target
, GLenum mode
) {
767 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Hint");
768 gl_
->Hint(target
, mode
);
771 void GLES2TraceImplementation::InvalidateFramebuffer(
774 const GLenum
* attachments
) {
775 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InvalidateFramebuffer");
776 gl_
->InvalidateFramebuffer(target
, count
, attachments
);
779 void GLES2TraceImplementation::InvalidateSubFramebuffer(
782 const GLenum
* attachments
,
787 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InvalidateSubFramebuffer");
788 gl_
->InvalidateSubFramebuffer(target
, count
, attachments
, x
, y
, width
,
792 GLboolean
GLES2TraceImplementation::IsBuffer(GLuint buffer
) {
793 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsBuffer");
794 return gl_
->IsBuffer(buffer
);
797 GLboolean
GLES2TraceImplementation::IsEnabled(GLenum cap
) {
798 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsEnabled");
799 return gl_
->IsEnabled(cap
);
802 GLboolean
GLES2TraceImplementation::IsFramebuffer(GLuint framebuffer
) {
803 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsFramebuffer");
804 return gl_
->IsFramebuffer(framebuffer
);
807 GLboolean
GLES2TraceImplementation::IsProgram(GLuint program
) {
808 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsProgram");
809 return gl_
->IsProgram(program
);
812 GLboolean
GLES2TraceImplementation::IsRenderbuffer(GLuint renderbuffer
) {
813 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsRenderbuffer");
814 return gl_
->IsRenderbuffer(renderbuffer
);
817 GLboolean
GLES2TraceImplementation::IsSampler(GLuint sampler
) {
818 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsSampler");
819 return gl_
->IsSampler(sampler
);
822 GLboolean
GLES2TraceImplementation::IsShader(GLuint shader
) {
823 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsShader");
824 return gl_
->IsShader(shader
);
827 GLboolean
GLES2TraceImplementation::IsSync(GLsync sync
) {
828 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsSync");
829 return gl_
->IsSync(sync
);
832 GLboolean
GLES2TraceImplementation::IsTexture(GLuint texture
) {
833 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsTexture");
834 return gl_
->IsTexture(texture
);
837 GLboolean
GLES2TraceImplementation::IsTransformFeedback(
838 GLuint transformfeedback
) {
839 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsTransformFeedback");
840 return gl_
->IsTransformFeedback(transformfeedback
);
843 void GLES2TraceImplementation::LineWidth(GLfloat width
) {
844 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LineWidth");
845 gl_
->LineWidth(width
);
848 void GLES2TraceImplementation::LinkProgram(GLuint program
) {
849 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LinkProgram");
850 gl_
->LinkProgram(program
);
853 void GLES2TraceImplementation::PauseTransformFeedback() {
854 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PauseTransformFeedback");
855 gl_
->PauseTransformFeedback();
858 void GLES2TraceImplementation::PixelStorei(GLenum pname
, GLint param
) {
859 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PixelStorei");
860 gl_
->PixelStorei(pname
, param
);
863 void GLES2TraceImplementation::PolygonOffset(GLfloat factor
, GLfloat units
) {
864 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PolygonOffset");
865 gl_
->PolygonOffset(factor
, units
);
868 void GLES2TraceImplementation::ReadBuffer(GLenum src
) {
869 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReadBuffer");
870 gl_
->ReadBuffer(src
);
873 void GLES2TraceImplementation::ReadPixels(GLint x
,
880 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReadPixels");
881 gl_
->ReadPixels(x
, y
, width
, height
, format
, type
, pixels
);
884 void GLES2TraceImplementation::ReleaseShaderCompiler() {
885 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReleaseShaderCompiler");
886 gl_
->ReleaseShaderCompiler();
889 void GLES2TraceImplementation::RenderbufferStorage(GLenum target
,
890 GLenum internalformat
,
893 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RenderbufferStorage");
894 gl_
->RenderbufferStorage(target
, internalformat
, width
, height
);
897 void GLES2TraceImplementation::ResumeTransformFeedback() {
898 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ResumeTransformFeedback");
899 gl_
->ResumeTransformFeedback();
902 void GLES2TraceImplementation::SampleCoverage(GLclampf value
,
904 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SampleCoverage");
905 gl_
->SampleCoverage(value
, invert
);
908 void GLES2TraceImplementation::SamplerParameterf(GLuint sampler
,
911 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameterf");
912 gl_
->SamplerParameterf(sampler
, pname
, param
);
915 void GLES2TraceImplementation::SamplerParameterfv(GLuint sampler
,
917 const GLfloat
* params
) {
918 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameterfv");
919 gl_
->SamplerParameterfv(sampler
, pname
, params
);
922 void GLES2TraceImplementation::SamplerParameteri(GLuint sampler
,
925 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameteri");
926 gl_
->SamplerParameteri(sampler
, pname
, param
);
929 void GLES2TraceImplementation::SamplerParameteriv(GLuint sampler
,
931 const GLint
* params
) {
932 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameteriv");
933 gl_
->SamplerParameteriv(sampler
, pname
, params
);
936 void GLES2TraceImplementation::Scissor(GLint x
,
940 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Scissor");
941 gl_
->Scissor(x
, y
, width
, height
);
944 void GLES2TraceImplementation::ShaderBinary(GLsizei n
,
945 const GLuint
* shaders
,
949 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShaderBinary");
950 gl_
->ShaderBinary(n
, shaders
, binaryformat
, binary
, length
);
953 void GLES2TraceImplementation::ShaderSource(GLuint shader
,
955 const GLchar
* const* str
,
956 const GLint
* length
) {
957 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShaderSource");
958 gl_
->ShaderSource(shader
, count
, str
, length
);
961 void GLES2TraceImplementation::ShallowFinishCHROMIUM() {
962 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShallowFinishCHROMIUM");
963 gl_
->ShallowFinishCHROMIUM();
966 void GLES2TraceImplementation::ShallowFlushCHROMIUM() {
967 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShallowFlushCHROMIUM");
968 gl_
->ShallowFlushCHROMIUM();
971 void GLES2TraceImplementation::OrderingBarrierCHROMIUM() {
972 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::OrderingBarrierCHROMIUM");
973 gl_
->OrderingBarrierCHROMIUM();
976 void GLES2TraceImplementation::StencilFunc(GLenum func
,
979 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFunc");
980 gl_
->StencilFunc(func
, ref
, mask
);
983 void GLES2TraceImplementation::StencilFuncSeparate(GLenum face
,
987 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFuncSeparate");
988 gl_
->StencilFuncSeparate(face
, func
, ref
, mask
);
991 void GLES2TraceImplementation::StencilMask(GLuint mask
) {
992 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilMask");
993 gl_
->StencilMask(mask
);
996 void GLES2TraceImplementation::StencilMaskSeparate(GLenum face
, GLuint mask
) {
997 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilMaskSeparate");
998 gl_
->StencilMaskSeparate(face
, mask
);
1001 void GLES2TraceImplementation::StencilOp(GLenum fail
,
1004 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilOp");
1005 gl_
->StencilOp(fail
, zfail
, zpass
);
1008 void GLES2TraceImplementation::StencilOpSeparate(GLenum face
,
1012 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilOpSeparate");
1013 gl_
->StencilOpSeparate(face
, fail
, zfail
, zpass
);
1016 void GLES2TraceImplementation::TexImage2D(GLenum target
,
1018 GLint internalformat
,
1024 const void* pixels
) {
1025 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImage2D");
1026 gl_
->TexImage2D(target
, level
, internalformat
, width
, height
, border
, format
,
1030 void GLES2TraceImplementation::TexImage3D(GLenum target
,
1032 GLint internalformat
,
1039 const void* pixels
) {
1040 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImage3D");
1041 gl_
->TexImage3D(target
, level
, internalformat
, width
, height
, depth
, border
,
1042 format
, type
, pixels
);
1045 void GLES2TraceImplementation::TexParameterf(GLenum target
,
1048 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterf");
1049 gl_
->TexParameterf(target
, pname
, param
);
1052 void GLES2TraceImplementation::TexParameterfv(GLenum target
,
1054 const GLfloat
* params
) {
1055 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterfv");
1056 gl_
->TexParameterfv(target
, pname
, params
);
1059 void GLES2TraceImplementation::TexParameteri(GLenum target
,
1062 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameteri");
1063 gl_
->TexParameteri(target
, pname
, param
);
1066 void GLES2TraceImplementation::TexParameteriv(GLenum target
,
1068 const GLint
* params
) {
1069 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameteriv");
1070 gl_
->TexParameteriv(target
, pname
, params
);
1073 void GLES2TraceImplementation::TexStorage3D(GLenum target
,
1075 GLenum internalFormat
,
1079 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexStorage3D");
1080 gl_
->TexStorage3D(target
, levels
, internalFormat
, width
, height
, depth
);
1083 void GLES2TraceImplementation::TexSubImage2D(GLenum target
,
1091 const void* pixels
) {
1092 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage2D");
1093 gl_
->TexSubImage2D(target
, level
, xoffset
, yoffset
, width
, height
, format
,
1097 void GLES2TraceImplementation::TexSubImage3D(GLenum target
,
1107 const void* pixels
) {
1108 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage3D");
1109 gl_
->TexSubImage3D(target
, level
, xoffset
, yoffset
, zoffset
, width
, height
,
1110 depth
, format
, type
, pixels
);
1113 void GLES2TraceImplementation::TransformFeedbackVaryings(
1116 const char* const* varyings
,
1117 GLenum buffermode
) {
1118 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TransformFeedbackVaryings");
1119 gl_
->TransformFeedbackVaryings(program
, count
, varyings
, buffermode
);
1122 void GLES2TraceImplementation::Uniform1f(GLint location
, GLfloat x
) {
1123 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1f");
1124 gl_
->Uniform1f(location
, x
);
1127 void GLES2TraceImplementation::Uniform1fv(GLint location
,
1130 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1fv");
1131 gl_
->Uniform1fv(location
, count
, v
);
1134 void GLES2TraceImplementation::Uniform1i(GLint location
, GLint x
) {
1135 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1i");
1136 gl_
->Uniform1i(location
, x
);
1139 void GLES2TraceImplementation::Uniform1iv(GLint location
,
1142 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1iv");
1143 gl_
->Uniform1iv(location
, count
, v
);
1146 void GLES2TraceImplementation::Uniform1ui(GLint location
, GLuint x
) {
1147 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1ui");
1148 gl_
->Uniform1ui(location
, x
);
1151 void GLES2TraceImplementation::Uniform1uiv(GLint location
,
1154 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1uiv");
1155 gl_
->Uniform1uiv(location
, count
, v
);
1158 void GLES2TraceImplementation::Uniform2f(GLint location
, GLfloat x
, GLfloat y
) {
1159 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2f");
1160 gl_
->Uniform2f(location
, x
, y
);
1163 void GLES2TraceImplementation::Uniform2fv(GLint location
,
1166 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2fv");
1167 gl_
->Uniform2fv(location
, count
, v
);
1170 void GLES2TraceImplementation::Uniform2i(GLint location
, GLint x
, GLint y
) {
1171 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2i");
1172 gl_
->Uniform2i(location
, x
, y
);
1175 void GLES2TraceImplementation::Uniform2iv(GLint location
,
1178 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2iv");
1179 gl_
->Uniform2iv(location
, count
, v
);
1182 void GLES2TraceImplementation::Uniform2ui(GLint location
, GLuint x
, GLuint y
) {
1183 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2ui");
1184 gl_
->Uniform2ui(location
, x
, y
);
1187 void GLES2TraceImplementation::Uniform2uiv(GLint location
,
1190 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2uiv");
1191 gl_
->Uniform2uiv(location
, count
, v
);
1194 void GLES2TraceImplementation::Uniform3f(GLint location
,
1198 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3f");
1199 gl_
->Uniform3f(location
, x
, y
, z
);
1202 void GLES2TraceImplementation::Uniform3fv(GLint location
,
1205 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3fv");
1206 gl_
->Uniform3fv(location
, count
, v
);
1209 void GLES2TraceImplementation::Uniform3i(GLint location
,
1213 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3i");
1214 gl_
->Uniform3i(location
, x
, y
, z
);
1217 void GLES2TraceImplementation::Uniform3iv(GLint location
,
1220 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3iv");
1221 gl_
->Uniform3iv(location
, count
, v
);
1224 void GLES2TraceImplementation::Uniform3ui(GLint location
,
1228 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3ui");
1229 gl_
->Uniform3ui(location
, x
, y
, z
);
1232 void GLES2TraceImplementation::Uniform3uiv(GLint location
,
1235 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3uiv");
1236 gl_
->Uniform3uiv(location
, count
, v
);
1239 void GLES2TraceImplementation::Uniform4f(GLint location
,
1244 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4f");
1245 gl_
->Uniform4f(location
, x
, y
, z
, w
);
1248 void GLES2TraceImplementation::Uniform4fv(GLint location
,
1251 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4fv");
1252 gl_
->Uniform4fv(location
, count
, v
);
1255 void GLES2TraceImplementation::Uniform4i(GLint location
,
1260 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4i");
1261 gl_
->Uniform4i(location
, x
, y
, z
, w
);
1264 void GLES2TraceImplementation::Uniform4iv(GLint location
,
1267 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4iv");
1268 gl_
->Uniform4iv(location
, count
, v
);
1271 void GLES2TraceImplementation::Uniform4ui(GLint location
,
1276 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4ui");
1277 gl_
->Uniform4ui(location
, x
, y
, z
, w
);
1280 void GLES2TraceImplementation::Uniform4uiv(GLint location
,
1283 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4uiv");
1284 gl_
->Uniform4uiv(location
, count
, v
);
1287 void GLES2TraceImplementation::UniformBlockBinding(GLuint program
,
1290 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformBlockBinding");
1291 gl_
->UniformBlockBinding(program
, index
, binding
);
1294 void GLES2TraceImplementation::UniformMatrix2fv(GLint location
,
1296 GLboolean transpose
,
1297 const GLfloat
* value
) {
1298 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2fv");
1299 gl_
->UniformMatrix2fv(location
, count
, transpose
, value
);
1302 void GLES2TraceImplementation::UniformMatrix2x3fv(GLint location
,
1304 GLboolean transpose
,
1305 const GLfloat
* value
) {
1306 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2x3fv");
1307 gl_
->UniformMatrix2x3fv(location
, count
, transpose
, value
);
1310 void GLES2TraceImplementation::UniformMatrix2x4fv(GLint location
,
1312 GLboolean transpose
,
1313 const GLfloat
* value
) {
1314 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2x4fv");
1315 gl_
->UniformMatrix2x4fv(location
, count
, transpose
, value
);
1318 void GLES2TraceImplementation::UniformMatrix3fv(GLint location
,
1320 GLboolean transpose
,
1321 const GLfloat
* value
) {
1322 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3fv");
1323 gl_
->UniformMatrix3fv(location
, count
, transpose
, value
);
1326 void GLES2TraceImplementation::UniformMatrix3x2fv(GLint location
,
1328 GLboolean transpose
,
1329 const GLfloat
* value
) {
1330 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3x2fv");
1331 gl_
->UniformMatrix3x2fv(location
, count
, transpose
, value
);
1334 void GLES2TraceImplementation::UniformMatrix3x4fv(GLint location
,
1336 GLboolean transpose
,
1337 const GLfloat
* value
) {
1338 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3x4fv");
1339 gl_
->UniformMatrix3x4fv(location
, count
, transpose
, value
);
1342 void GLES2TraceImplementation::UniformMatrix4fv(GLint location
,
1344 GLboolean transpose
,
1345 const GLfloat
* value
) {
1346 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4fv");
1347 gl_
->UniformMatrix4fv(location
, count
, transpose
, value
);
1350 void GLES2TraceImplementation::UniformMatrix4x2fv(GLint location
,
1352 GLboolean transpose
,
1353 const GLfloat
* value
) {
1354 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4x2fv");
1355 gl_
->UniformMatrix4x2fv(location
, count
, transpose
, value
);
1358 void GLES2TraceImplementation::UniformMatrix4x3fv(GLint location
,
1360 GLboolean transpose
,
1361 const GLfloat
* value
) {
1362 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4x3fv");
1363 gl_
->UniformMatrix4x3fv(location
, count
, transpose
, value
);
1366 void GLES2TraceImplementation::UseProgram(GLuint program
) {
1367 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UseProgram");
1368 gl_
->UseProgram(program
);
1371 void GLES2TraceImplementation::ValidateProgram(GLuint program
) {
1372 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ValidateProgram");
1373 gl_
->ValidateProgram(program
);
1376 void GLES2TraceImplementation::VertexAttrib1f(GLuint indx
, GLfloat x
) {
1377 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib1f");
1378 gl_
->VertexAttrib1f(indx
, x
);
1381 void GLES2TraceImplementation::VertexAttrib1fv(GLuint indx
,
1382 const GLfloat
* values
) {
1383 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib1fv");
1384 gl_
->VertexAttrib1fv(indx
, values
);
1387 void GLES2TraceImplementation::VertexAttrib2f(GLuint indx
,
1390 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib2f");
1391 gl_
->VertexAttrib2f(indx
, x
, y
);
1394 void GLES2TraceImplementation::VertexAttrib2fv(GLuint indx
,
1395 const GLfloat
* values
) {
1396 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib2fv");
1397 gl_
->VertexAttrib2fv(indx
, values
);
1400 void GLES2TraceImplementation::VertexAttrib3f(GLuint indx
,
1404 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib3f");
1405 gl_
->VertexAttrib3f(indx
, x
, y
, z
);
1408 void GLES2TraceImplementation::VertexAttrib3fv(GLuint indx
,
1409 const GLfloat
* values
) {
1410 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib3fv");
1411 gl_
->VertexAttrib3fv(indx
, values
);
1414 void GLES2TraceImplementation::VertexAttrib4f(GLuint indx
,
1419 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib4f");
1420 gl_
->VertexAttrib4f(indx
, x
, y
, z
, w
);
1423 void GLES2TraceImplementation::VertexAttrib4fv(GLuint indx
,
1424 const GLfloat
* values
) {
1425 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib4fv");
1426 gl_
->VertexAttrib4fv(indx
, values
);
1429 void GLES2TraceImplementation::VertexAttribI4i(GLuint indx
,
1434 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4i");
1435 gl_
->VertexAttribI4i(indx
, x
, y
, z
, w
);
1438 void GLES2TraceImplementation::VertexAttribI4iv(GLuint indx
,
1439 const GLint
* values
) {
1440 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4iv");
1441 gl_
->VertexAttribI4iv(indx
, values
);
1444 void GLES2TraceImplementation::VertexAttribI4ui(GLuint indx
,
1449 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4ui");
1450 gl_
->VertexAttribI4ui(indx
, x
, y
, z
, w
);
1453 void GLES2TraceImplementation::VertexAttribI4uiv(GLuint indx
,
1454 const GLuint
* values
) {
1455 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4uiv");
1456 gl_
->VertexAttribI4uiv(indx
, values
);
1459 void GLES2TraceImplementation::VertexAttribIPointer(GLuint indx
,
1464 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribIPointer");
1465 gl_
->VertexAttribIPointer(indx
, size
, type
, stride
, ptr
);
1468 void GLES2TraceImplementation::VertexAttribPointer(GLuint indx
,
1471 GLboolean normalized
,
1474 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribPointer");
1475 gl_
->VertexAttribPointer(indx
, size
, type
, normalized
, stride
, ptr
);
1478 void GLES2TraceImplementation::Viewport(GLint x
,
1482 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Viewport");
1483 gl_
->Viewport(x
, y
, width
, height
);
1486 void GLES2TraceImplementation::WaitSync(GLsync sync
,
1489 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::WaitSync");
1490 gl_
->WaitSync(sync
, flags
, timeout
);
1493 void GLES2TraceImplementation::BlitFramebufferCHROMIUM(GLint srcX0
,
1503 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlitFramebufferCHROMIUM");
1504 gl_
->BlitFramebufferCHROMIUM(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
, dstX1
,
1505 dstY1
, mask
, filter
);
1508 void GLES2TraceImplementation::RenderbufferStorageMultisampleCHROMIUM(
1511 GLenum internalformat
,
1514 TRACE_EVENT_BINARY_EFFICIENT0(
1515 "gpu", "GLES2Trace::RenderbufferStorageMultisampleCHROMIUM");
1516 gl_
->RenderbufferStorageMultisampleCHROMIUM(target
, samples
, internalformat
,
1520 void GLES2TraceImplementation::RenderbufferStorageMultisampleEXT(
1523 GLenum internalformat
,
1526 TRACE_EVENT_BINARY_EFFICIENT0(
1527 "gpu", "GLES2Trace::RenderbufferStorageMultisampleEXT");
1528 gl_
->RenderbufferStorageMultisampleEXT(target
, samples
, internalformat
, width
,
1532 void GLES2TraceImplementation::FramebufferTexture2DMultisampleEXT(
1539 TRACE_EVENT_BINARY_EFFICIENT0(
1540 "gpu", "GLES2Trace::FramebufferTexture2DMultisampleEXT");
1541 gl_
->FramebufferTexture2DMultisampleEXT(target
, attachment
, textarget
,
1542 texture
, level
, samples
);
1545 void GLES2TraceImplementation::TexStorage2DEXT(GLenum target
,
1547 GLenum internalFormat
,
1550 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexStorage2DEXT");
1551 gl_
->TexStorage2DEXT(target
, levels
, internalFormat
, width
, height
);
1554 void GLES2TraceImplementation::GenQueriesEXT(GLsizei n
, GLuint
* queries
) {
1555 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenQueriesEXT");
1556 gl_
->GenQueriesEXT(n
, queries
);
1559 void GLES2TraceImplementation::DeleteQueriesEXT(GLsizei n
,
1560 const GLuint
* queries
) {
1561 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteQueriesEXT");
1562 gl_
->DeleteQueriesEXT(n
, queries
);
1565 GLboolean
GLES2TraceImplementation::IsQueryEXT(GLuint id
) {
1566 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsQueryEXT");
1567 return gl_
->IsQueryEXT(id
);
1570 void GLES2TraceImplementation::BeginQueryEXT(GLenum target
, GLuint id
) {
1571 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BeginQueryEXT");
1572 gl_
->BeginQueryEXT(target
, id
);
1575 void GLES2TraceImplementation::BeginTransformFeedback(GLenum primitivemode
) {
1576 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BeginTransformFeedback");
1577 gl_
->BeginTransformFeedback(primitivemode
);
1580 void GLES2TraceImplementation::EndQueryEXT(GLenum target
) {
1581 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EndQueryEXT");
1582 gl_
->EndQueryEXT(target
);
1585 void GLES2TraceImplementation::EndTransformFeedback() {
1586 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EndTransformFeedback");
1587 gl_
->EndTransformFeedback();
1590 void GLES2TraceImplementation::GetQueryivEXT(GLenum target
,
1593 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryivEXT");
1594 gl_
->GetQueryivEXT(target
, pname
, params
);
1597 void GLES2TraceImplementation::GetQueryObjectuivEXT(GLuint id
,
1600 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryObjectuivEXT");
1601 gl_
->GetQueryObjectuivEXT(id
, pname
, params
);
1604 void GLES2TraceImplementation::InsertEventMarkerEXT(GLsizei length
,
1605 const GLchar
* marker
) {
1606 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InsertEventMarkerEXT");
1607 gl_
->InsertEventMarkerEXT(length
, marker
);
1610 void GLES2TraceImplementation::PushGroupMarkerEXT(GLsizei length
,
1611 const GLchar
* marker
) {
1612 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PushGroupMarkerEXT");
1613 gl_
->PushGroupMarkerEXT(length
, marker
);
1616 void GLES2TraceImplementation::PopGroupMarkerEXT() {
1617 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PopGroupMarkerEXT");
1618 gl_
->PopGroupMarkerEXT();
1621 void GLES2TraceImplementation::GenVertexArraysOES(GLsizei n
, GLuint
* arrays
) {
1622 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenVertexArraysOES");
1623 gl_
->GenVertexArraysOES(n
, arrays
);
1626 void GLES2TraceImplementation::DeleteVertexArraysOES(GLsizei n
,
1627 const GLuint
* arrays
) {
1628 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteVertexArraysOES");
1629 gl_
->DeleteVertexArraysOES(n
, arrays
);
1632 GLboolean
GLES2TraceImplementation::IsVertexArrayOES(GLuint array
) {
1633 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsVertexArrayOES");
1634 return gl_
->IsVertexArrayOES(array
);
1637 void GLES2TraceImplementation::BindVertexArrayOES(GLuint array
) {
1638 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindVertexArrayOES");
1639 gl_
->BindVertexArrayOES(array
);
1642 void GLES2TraceImplementation::SwapBuffers() {
1643 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SwapBuffers");
1647 GLuint
GLES2TraceImplementation::GetMaxValueInBufferCHROMIUM(GLuint buffer_id
,
1651 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1652 "GLES2Trace::GetMaxValueInBufferCHROMIUM");
1653 return gl_
->GetMaxValueInBufferCHROMIUM(buffer_id
, count
, type
, offset
);
1656 GLboolean
GLES2TraceImplementation::EnableFeatureCHROMIUM(const char* feature
) {
1657 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EnableFeatureCHROMIUM");
1658 return gl_
->EnableFeatureCHROMIUM(feature
);
1661 void* GLES2TraceImplementation::MapBufferCHROMIUM(GLuint target
,
1663 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferCHROMIUM");
1664 return gl_
->MapBufferCHROMIUM(target
, access
);
1667 GLboolean
GLES2TraceImplementation::UnmapBufferCHROMIUM(GLuint target
) {
1668 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UnmapBufferCHROMIUM");
1669 return gl_
->UnmapBufferCHROMIUM(target
);
1672 void* GLES2TraceImplementation::MapBufferSubDataCHROMIUM(GLuint target
,
1676 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferSubDataCHROMIUM");
1677 return gl_
->MapBufferSubDataCHROMIUM(target
, offset
, size
, access
);
1680 void GLES2TraceImplementation::UnmapBufferSubDataCHROMIUM(const void* mem
) {
1681 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1682 "GLES2Trace::UnmapBufferSubDataCHROMIUM");
1683 gl_
->UnmapBufferSubDataCHROMIUM(mem
);
1686 void* GLES2TraceImplementation::MapTexSubImage2DCHROMIUM(GLenum target
,
1695 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapTexSubImage2DCHROMIUM");
1696 return gl_
->MapTexSubImage2DCHROMIUM(target
, level
, xoffset
, yoffset
, width
,
1697 height
, format
, type
, access
);
1700 void GLES2TraceImplementation::UnmapTexSubImage2DCHROMIUM(const void* mem
) {
1701 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1702 "GLES2Trace::UnmapTexSubImage2DCHROMIUM");
1703 gl_
->UnmapTexSubImage2DCHROMIUM(mem
);
1706 void GLES2TraceImplementation::ResizeCHROMIUM(GLuint width
,
1708 GLfloat scale_factor
) {
1709 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ResizeCHROMIUM");
1710 gl_
->ResizeCHROMIUM(width
, height
, scale_factor
);
1713 const GLchar
* GLES2TraceImplementation::GetRequestableExtensionsCHROMIUM() {
1714 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1715 "GLES2Trace::GetRequestableExtensionsCHROMIUM");
1716 return gl_
->GetRequestableExtensionsCHROMIUM();
1719 void GLES2TraceImplementation::RequestExtensionCHROMIUM(const char* extension
) {
1720 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RequestExtensionCHROMIUM");
1721 gl_
->RequestExtensionCHROMIUM(extension
);
1724 void GLES2TraceImplementation::RateLimitOffscreenContextCHROMIUM() {
1725 TRACE_EVENT_BINARY_EFFICIENT0(
1726 "gpu", "GLES2Trace::RateLimitOffscreenContextCHROMIUM");
1727 gl_
->RateLimitOffscreenContextCHROMIUM();
1730 void GLES2TraceImplementation::GetProgramInfoCHROMIUM(GLuint program
,
1734 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramInfoCHROMIUM");
1735 gl_
->GetProgramInfoCHROMIUM(program
, bufsize
, size
, info
);
1738 void GLES2TraceImplementation::GetUniformBlocksCHROMIUM(GLuint program
,
1742 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformBlocksCHROMIUM");
1743 gl_
->GetUniformBlocksCHROMIUM(program
, bufsize
, size
, info
);
1746 void GLES2TraceImplementation::GetTransformFeedbackVaryingsCHROMIUM(
1751 TRACE_EVENT_BINARY_EFFICIENT0(
1752 "gpu", "GLES2Trace::GetTransformFeedbackVaryingsCHROMIUM");
1753 gl_
->GetTransformFeedbackVaryingsCHROMIUM(program
, bufsize
, size
, info
);
1756 void GLES2TraceImplementation::GetUniformsES3CHROMIUM(GLuint program
,
1760 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformsES3CHROMIUM");
1761 gl_
->GetUniformsES3CHROMIUM(program
, bufsize
, size
, info
);
1764 GLuint
GLES2TraceImplementation::CreateStreamTextureCHROMIUM(GLuint texture
) {
1765 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1766 "GLES2Trace::CreateStreamTextureCHROMIUM");
1767 return gl_
->CreateStreamTextureCHROMIUM(texture
);
1770 GLuint
GLES2TraceImplementation::CreateImageCHROMIUM(ClientBuffer buffer
,
1773 GLenum internalformat
) {
1774 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateImageCHROMIUM");
1775 return gl_
->CreateImageCHROMIUM(buffer
, width
, height
, internalformat
);
1778 void GLES2TraceImplementation::DestroyImageCHROMIUM(GLuint image_id
) {
1779 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DestroyImageCHROMIUM");
1780 gl_
->DestroyImageCHROMIUM(image_id
);
1783 GLuint
GLES2TraceImplementation::CreateGpuMemoryBufferImageCHROMIUM(
1786 GLenum internalformat
,
1788 TRACE_EVENT_BINARY_EFFICIENT0(
1789 "gpu", "GLES2Trace::CreateGpuMemoryBufferImageCHROMIUM");
1790 return gl_
->CreateGpuMemoryBufferImageCHROMIUM(width
, height
, internalformat
,
1794 void GLES2TraceImplementation::GetTranslatedShaderSourceANGLE(GLuint shader
,
1798 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1799 "GLES2Trace::GetTranslatedShaderSourceANGLE");
1800 gl_
->GetTranslatedShaderSourceANGLE(shader
, bufsize
, length
, source
);
1803 void GLES2TraceImplementation::PostSubBufferCHROMIUM(GLint x
,
1807 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PostSubBufferCHROMIUM");
1808 gl_
->PostSubBufferCHROMIUM(x
, y
, width
, height
);
1811 void GLES2TraceImplementation::TexImageIOSurface2DCHROMIUM(GLenum target
,
1816 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1817 "GLES2Trace::TexImageIOSurface2DCHROMIUM");
1818 gl_
->TexImageIOSurface2DCHROMIUM(target
, width
, height
, ioSurfaceId
, plane
);
1821 void GLES2TraceImplementation::CopyTextureCHROMIUM(GLenum target
,
1825 GLint internalformat
,
1827 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTextureCHROMIUM");
1828 gl_
->CopyTextureCHROMIUM(target
, source_id
, dest_id
, level
, internalformat
,
1832 void GLES2TraceImplementation::DrawArraysInstancedANGLE(GLenum mode
,
1835 GLsizei primcount
) {
1836 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawArraysInstancedANGLE");
1837 gl_
->DrawArraysInstancedANGLE(mode
, first
, count
, primcount
);
1840 void GLES2TraceImplementation::DrawElementsInstancedANGLE(GLenum mode
,
1843 const void* indices
,
1844 GLsizei primcount
) {
1845 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1846 "GLES2Trace::DrawElementsInstancedANGLE");
1847 gl_
->DrawElementsInstancedANGLE(mode
, count
, type
, indices
, primcount
);
1850 void GLES2TraceImplementation::VertexAttribDivisorANGLE(GLuint index
,
1852 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribDivisorANGLE");
1853 gl_
->VertexAttribDivisorANGLE(index
, divisor
);
1856 void GLES2TraceImplementation::GenMailboxCHROMIUM(GLbyte
* mailbox
) {
1857 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenMailboxCHROMIUM");
1858 gl_
->GenMailboxCHROMIUM(mailbox
);
1861 void GLES2TraceImplementation::ProduceTextureCHROMIUM(GLenum target
,
1862 const GLbyte
* mailbox
) {
1863 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ProduceTextureCHROMIUM");
1864 gl_
->ProduceTextureCHROMIUM(target
, mailbox
);
1867 void GLES2TraceImplementation::ProduceTextureDirectCHROMIUM(
1870 const GLbyte
* mailbox
) {
1871 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1872 "GLES2Trace::ProduceTextureDirectCHROMIUM");
1873 gl_
->ProduceTextureDirectCHROMIUM(texture
, target
, mailbox
);
1876 void GLES2TraceImplementation::ConsumeTextureCHROMIUM(GLenum target
,
1877 const GLbyte
* mailbox
) {
1878 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ConsumeTextureCHROMIUM");
1879 gl_
->ConsumeTextureCHROMIUM(target
, mailbox
);
1882 GLuint
GLES2TraceImplementation::CreateAndConsumeTextureCHROMIUM(
1884 const GLbyte
* mailbox
) {
1885 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1886 "GLES2Trace::CreateAndConsumeTextureCHROMIUM");
1887 return gl_
->CreateAndConsumeTextureCHROMIUM(target
, mailbox
);
1890 void GLES2TraceImplementation::BindUniformLocationCHROMIUM(GLuint program
,
1893 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1894 "GLES2Trace::BindUniformLocationCHROMIUM");
1895 gl_
->BindUniformLocationCHROMIUM(program
, location
, name
);
1898 void GLES2TraceImplementation::GenValuebuffersCHROMIUM(GLsizei n
,
1900 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenValuebuffersCHROMIUM");
1901 gl_
->GenValuebuffersCHROMIUM(n
, buffers
);
1904 void GLES2TraceImplementation::DeleteValuebuffersCHROMIUM(
1906 const GLuint
* valuebuffers
) {
1907 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1908 "GLES2Trace::DeleteValuebuffersCHROMIUM");
1909 gl_
->DeleteValuebuffersCHROMIUM(n
, valuebuffers
);
1912 GLboolean
GLES2TraceImplementation::IsValuebufferCHROMIUM(GLuint valuebuffer
) {
1913 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsValuebufferCHROMIUM");
1914 return gl_
->IsValuebufferCHROMIUM(valuebuffer
);
1917 void GLES2TraceImplementation::BindValuebufferCHROMIUM(GLenum target
,
1918 GLuint valuebuffer
) {
1919 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindValuebufferCHROMIUM");
1920 gl_
->BindValuebufferCHROMIUM(target
, valuebuffer
);
1923 void GLES2TraceImplementation::SubscribeValueCHROMIUM(GLenum target
,
1924 GLenum subscription
) {
1925 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SubscribeValueCHROMIUM");
1926 gl_
->SubscribeValueCHROMIUM(target
, subscription
);
1929 void GLES2TraceImplementation::PopulateSubscribedValuesCHROMIUM(GLenum target
) {
1930 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1931 "GLES2Trace::PopulateSubscribedValuesCHROMIUM");
1932 gl_
->PopulateSubscribedValuesCHROMIUM(target
);
1935 void GLES2TraceImplementation::UniformValuebufferCHROMIUM(GLint location
,
1937 GLenum subscription
) {
1938 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1939 "GLES2Trace::UniformValuebufferCHROMIUM");
1940 gl_
->UniformValuebufferCHROMIUM(location
, target
, subscription
);
1943 void GLES2TraceImplementation::BindTexImage2DCHROMIUM(GLenum target
,
1945 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindTexImage2DCHROMIUM");
1946 gl_
->BindTexImage2DCHROMIUM(target
, imageId
);
1949 void GLES2TraceImplementation::ReleaseTexImage2DCHROMIUM(GLenum target
,
1951 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReleaseTexImage2DCHROMIUM");
1952 gl_
->ReleaseTexImage2DCHROMIUM(target
, imageId
);
1955 void GLES2TraceImplementation::TraceBeginCHROMIUM(const char* category_name
,
1956 const char* trace_name
) {
1957 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TraceBeginCHROMIUM");
1958 gl_
->TraceBeginCHROMIUM(category_name
, trace_name
);
1961 void GLES2TraceImplementation::TraceEndCHROMIUM() {
1962 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TraceEndCHROMIUM");
1963 gl_
->TraceEndCHROMIUM();
1966 void GLES2TraceImplementation::AsyncTexSubImage2DCHROMIUM(GLenum target
,
1975 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1976 "GLES2Trace::AsyncTexSubImage2DCHROMIUM");
1977 gl_
->AsyncTexSubImage2DCHROMIUM(target
, level
, xoffset
, yoffset
, width
,
1978 height
, format
, type
, data
);
1981 void GLES2TraceImplementation::AsyncTexImage2DCHROMIUM(GLenum target
,
1983 GLenum internalformat
,
1989 const void* pixels
) {
1990 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::AsyncTexImage2DCHROMIUM");
1991 gl_
->AsyncTexImage2DCHROMIUM(target
, level
, internalformat
, width
, height
,
1992 border
, format
, type
, pixels
);
1995 void GLES2TraceImplementation::WaitAsyncTexImage2DCHROMIUM(GLenum target
) {
1996 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1997 "GLES2Trace::WaitAsyncTexImage2DCHROMIUM");
1998 gl_
->WaitAsyncTexImage2DCHROMIUM(target
);
2001 void GLES2TraceImplementation::WaitAllAsyncTexImage2DCHROMIUM() {
2002 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2003 "GLES2Trace::WaitAllAsyncTexImage2DCHROMIUM");
2004 gl_
->WaitAllAsyncTexImage2DCHROMIUM();
2007 void GLES2TraceImplementation::DiscardFramebufferEXT(
2010 const GLenum
* attachments
) {
2011 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DiscardFramebufferEXT");
2012 gl_
->DiscardFramebufferEXT(target
, count
, attachments
);
2015 void GLES2TraceImplementation::LoseContextCHROMIUM(GLenum current
,
2017 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LoseContextCHROMIUM");
2018 gl_
->LoseContextCHROMIUM(current
, other
);
2021 GLuint
GLES2TraceImplementation::InsertSyncPointCHROMIUM() {
2022 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InsertSyncPointCHROMIUM");
2023 return gl_
->InsertSyncPointCHROMIUM();
2026 void GLES2TraceImplementation::WaitSyncPointCHROMIUM(GLuint sync_point
) {
2027 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::WaitSyncPointCHROMIUM");
2028 gl_
->WaitSyncPointCHROMIUM(sync_point
);
2031 void GLES2TraceImplementation::DrawBuffersEXT(GLsizei count
,
2032 const GLenum
* bufs
) {
2033 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawBuffersEXT");
2034 gl_
->DrawBuffersEXT(count
, bufs
);
2037 void GLES2TraceImplementation::DiscardBackbufferCHROMIUM() {
2038 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DiscardBackbufferCHROMIUM");
2039 gl_
->DiscardBackbufferCHROMIUM();
2042 void GLES2TraceImplementation::ScheduleOverlayPlaneCHROMIUM(
2043 GLint plane_z_order
,
2044 GLenum plane_transform
,
2045 GLuint overlay_texture_id
,
2049 GLint bounds_height
,
2053 GLfloat uv_height
) {
2054 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2055 "GLES2Trace::ScheduleOverlayPlaneCHROMIUM");
2056 gl_
->ScheduleOverlayPlaneCHROMIUM(
2057 plane_z_order
, plane_transform
, overlay_texture_id
, bounds_x
, bounds_y
,
2058 bounds_width
, bounds_height
, uv_x
, uv_y
, uv_width
, uv_height
);
2061 void GLES2TraceImplementation::SwapInterval(GLint interval
) {
2062 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SwapInterval");
2063 gl_
->SwapInterval(interval
);
2066 void GLES2TraceImplementation::MatrixLoadfCHROMIUM(GLenum matrixMode
,
2068 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MatrixLoadfCHROMIUM");
2069 gl_
->MatrixLoadfCHROMIUM(matrixMode
, m
);
2072 void GLES2TraceImplementation::MatrixLoadIdentityCHROMIUM(GLenum matrixMode
) {
2073 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2074 "GLES2Trace::MatrixLoadIdentityCHROMIUM");
2075 gl_
->MatrixLoadIdentityCHROMIUM(matrixMode
);
2078 void GLES2TraceImplementation::BlendBarrierKHR() {
2079 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendBarrierKHR");
2080 gl_
->BlendBarrierKHR();
2083 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_