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::CopyBufferSubData(GLenum readtarget
,
250 GLintptr writeoffset
,
252 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyBufferSubData");
253 gl_
->CopyBufferSubData(readtarget
, writetarget
, readoffset
, writeoffset
,
257 void GLES2TraceImplementation::CopyTexImage2D(GLenum target
,
259 GLenum internalformat
,
265 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexImage2D");
266 gl_
->CopyTexImage2D(target
, level
, internalformat
, x
, y
, width
, height
,
270 void GLES2TraceImplementation::CopyTexSubImage2D(GLenum target
,
278 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexSubImage2D");
279 gl_
->CopyTexSubImage2D(target
, level
, xoffset
, yoffset
, x
, y
, width
, height
);
282 void GLES2TraceImplementation::CopyTexSubImage3D(GLenum target
,
291 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexSubImage3D");
292 gl_
->CopyTexSubImage3D(target
, level
, xoffset
, yoffset
, zoffset
, x
, y
, width
,
296 GLuint
GLES2TraceImplementation::CreateProgram() {
297 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateProgram");
298 return gl_
->CreateProgram();
301 GLuint
GLES2TraceImplementation::CreateShader(GLenum type
) {
302 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateShader");
303 return gl_
->CreateShader(type
);
306 void GLES2TraceImplementation::CullFace(GLenum mode
) {
307 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CullFace");
311 void GLES2TraceImplementation::DeleteBuffers(GLsizei n
, const GLuint
* buffers
) {
312 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteBuffers");
313 gl_
->DeleteBuffers(n
, buffers
);
316 void GLES2TraceImplementation::DeleteFramebuffers(GLsizei n
,
317 const GLuint
* framebuffers
) {
318 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteFramebuffers");
319 gl_
->DeleteFramebuffers(n
, framebuffers
);
322 void GLES2TraceImplementation::DeleteProgram(GLuint program
) {
323 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteProgram");
324 gl_
->DeleteProgram(program
);
327 void GLES2TraceImplementation::DeleteRenderbuffers(
329 const GLuint
* renderbuffers
) {
330 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteRenderbuffers");
331 gl_
->DeleteRenderbuffers(n
, renderbuffers
);
334 void GLES2TraceImplementation::DeleteSamplers(GLsizei n
,
335 const GLuint
* samplers
) {
336 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteSamplers");
337 gl_
->DeleteSamplers(n
, samplers
);
340 void GLES2TraceImplementation::DeleteSync(GLsync sync
) {
341 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteSync");
342 gl_
->DeleteSync(sync
);
345 void GLES2TraceImplementation::DeleteShader(GLuint shader
) {
346 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteShader");
347 gl_
->DeleteShader(shader
);
350 void GLES2TraceImplementation::DeleteTextures(GLsizei n
,
351 const GLuint
* textures
) {
352 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteTextures");
353 gl_
->DeleteTextures(n
, textures
);
356 void GLES2TraceImplementation::DeleteTransformFeedbacks(GLsizei n
,
358 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteTransformFeedbacks");
359 gl_
->DeleteTransformFeedbacks(n
, ids
);
362 void GLES2TraceImplementation::DepthFunc(GLenum func
) {
363 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DepthFunc");
364 gl_
->DepthFunc(func
);
367 void GLES2TraceImplementation::DepthMask(GLboolean flag
) {
368 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DepthMask");
369 gl_
->DepthMask(flag
);
372 void GLES2TraceImplementation::DepthRangef(GLclampf zNear
, GLclampf zFar
) {
373 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DepthRangef");
374 gl_
->DepthRangef(zNear
, zFar
);
377 void GLES2TraceImplementation::DetachShader(GLuint program
, GLuint shader
) {
378 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DetachShader");
379 gl_
->DetachShader(program
, shader
);
382 void GLES2TraceImplementation::Disable(GLenum cap
) {
383 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Disable");
387 void GLES2TraceImplementation::DisableVertexAttribArray(GLuint index
) {
388 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DisableVertexAttribArray");
389 gl_
->DisableVertexAttribArray(index
);
392 void GLES2TraceImplementation::DrawArrays(GLenum mode
,
395 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawArrays");
396 gl_
->DrawArrays(mode
, first
, count
);
399 void GLES2TraceImplementation::DrawElements(GLenum mode
,
402 const void* indices
) {
403 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawElements");
404 gl_
->DrawElements(mode
, count
, type
, indices
);
407 void GLES2TraceImplementation::DrawRangeElements(GLenum mode
,
412 const void* indices
) {
413 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawRangeElements");
414 gl_
->DrawRangeElements(mode
, start
, end
, count
, type
, indices
);
417 void GLES2TraceImplementation::Enable(GLenum cap
) {
418 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Enable");
422 void GLES2TraceImplementation::EnableVertexAttribArray(GLuint index
) {
423 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EnableVertexAttribArray");
424 gl_
->EnableVertexAttribArray(index
);
427 GLsync
GLES2TraceImplementation::FenceSync(GLenum condition
, GLbitfield flags
) {
428 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FenceSync");
429 return gl_
->FenceSync(condition
, flags
);
432 void GLES2TraceImplementation::Finish() {
433 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Finish");
437 void GLES2TraceImplementation::Flush() {
438 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Flush");
442 void GLES2TraceImplementation::FramebufferRenderbuffer(
445 GLenum renderbuffertarget
,
446 GLuint renderbuffer
) {
447 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FramebufferRenderbuffer");
448 gl_
->FramebufferRenderbuffer(target
, attachment
, renderbuffertarget
,
452 void GLES2TraceImplementation::FramebufferTexture2D(GLenum target
,
457 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FramebufferTexture2D");
458 gl_
->FramebufferTexture2D(target
, attachment
, textarget
, texture
, level
);
461 void GLES2TraceImplementation::FramebufferTextureLayer(GLenum target
,
466 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FramebufferTextureLayer");
467 gl_
->FramebufferTextureLayer(target
, attachment
, texture
, level
, layer
);
470 void GLES2TraceImplementation::FrontFace(GLenum mode
) {
471 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FrontFace");
472 gl_
->FrontFace(mode
);
475 void GLES2TraceImplementation::GenBuffers(GLsizei n
, GLuint
* buffers
) {
476 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenBuffers");
477 gl_
->GenBuffers(n
, buffers
);
480 void GLES2TraceImplementation::GenerateMipmap(GLenum target
) {
481 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenerateMipmap");
482 gl_
->GenerateMipmap(target
);
485 void GLES2TraceImplementation::GenFramebuffers(GLsizei n
,
486 GLuint
* framebuffers
) {
487 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenFramebuffers");
488 gl_
->GenFramebuffers(n
, framebuffers
);
491 void GLES2TraceImplementation::GenRenderbuffers(GLsizei n
,
492 GLuint
* renderbuffers
) {
493 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenRenderbuffers");
494 gl_
->GenRenderbuffers(n
, renderbuffers
);
497 void GLES2TraceImplementation::GenSamplers(GLsizei n
, GLuint
* samplers
) {
498 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenSamplers");
499 gl_
->GenSamplers(n
, samplers
);
502 void GLES2TraceImplementation::GenTextures(GLsizei n
, GLuint
* textures
) {
503 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenTextures");
504 gl_
->GenTextures(n
, textures
);
507 void GLES2TraceImplementation::GenTransformFeedbacks(GLsizei n
, GLuint
* ids
) {
508 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenTransformFeedbacks");
509 gl_
->GenTransformFeedbacks(n
, ids
);
512 void GLES2TraceImplementation::GetActiveAttrib(GLuint program
,
519 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveAttrib");
520 gl_
->GetActiveAttrib(program
, index
, bufsize
, length
, size
, type
, name
);
523 void GLES2TraceImplementation::GetActiveUniform(GLuint program
,
530 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniform");
531 gl_
->GetActiveUniform(program
, index
, bufsize
, length
, size
, type
, name
);
534 void GLES2TraceImplementation::GetActiveUniformBlockiv(GLuint program
,
538 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniformBlockiv");
539 gl_
->GetActiveUniformBlockiv(program
, index
, pname
, params
);
542 void GLES2TraceImplementation::GetActiveUniformBlockName(GLuint program
,
547 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniformBlockName");
548 gl_
->GetActiveUniformBlockName(program
, index
, bufsize
, length
, name
);
551 void GLES2TraceImplementation::GetActiveUniformsiv(GLuint program
,
553 const GLuint
* indices
,
556 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniformsiv");
557 gl_
->GetActiveUniformsiv(program
, count
, indices
, pname
, params
);
560 void GLES2TraceImplementation::GetAttachedShaders(GLuint program
,
564 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetAttachedShaders");
565 gl_
->GetAttachedShaders(program
, maxcount
, count
, shaders
);
568 GLint
GLES2TraceImplementation::GetAttribLocation(GLuint program
,
570 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetAttribLocation");
571 return gl_
->GetAttribLocation(program
, name
);
574 void GLES2TraceImplementation::GetBooleanv(GLenum pname
, GLboolean
* params
) {
575 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetBooleanv");
576 gl_
->GetBooleanv(pname
, params
);
579 void GLES2TraceImplementation::GetBufferParameteriv(GLenum target
,
582 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetBufferParameteriv");
583 gl_
->GetBufferParameteriv(target
, pname
, params
);
586 GLenum
GLES2TraceImplementation::GetError() {
587 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetError");
588 return gl_
->GetError();
591 void GLES2TraceImplementation::GetFloatv(GLenum pname
, GLfloat
* params
) {
592 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetFloatv");
593 gl_
->GetFloatv(pname
, params
);
596 GLint
GLES2TraceImplementation::GetFragDataLocation(GLuint program
,
598 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetFragDataLocation");
599 return gl_
->GetFragDataLocation(program
, name
);
602 void GLES2TraceImplementation::GetFramebufferAttachmentParameteriv(
607 TRACE_EVENT_BINARY_EFFICIENT0(
608 "gpu", "GLES2Trace::GetFramebufferAttachmentParameteriv");
609 gl_
->GetFramebufferAttachmentParameteriv(target
, attachment
, pname
, params
);
612 void GLES2TraceImplementation::GetInteger64v(GLenum pname
, GLint64
* params
) {
613 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetInteger64v");
614 gl_
->GetInteger64v(pname
, params
);
617 void GLES2TraceImplementation::GetIntegeri_v(GLenum pname
,
620 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetIntegeri_v");
621 gl_
->GetIntegeri_v(pname
, index
, data
);
624 void GLES2TraceImplementation::GetInteger64i_v(GLenum pname
,
627 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetInteger64i_v");
628 gl_
->GetInteger64i_v(pname
, index
, data
);
631 void GLES2TraceImplementation::GetIntegerv(GLenum pname
, GLint
* params
) {
632 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetIntegerv");
633 gl_
->GetIntegerv(pname
, params
);
636 void GLES2TraceImplementation::GetInternalformativ(GLenum target
,
641 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetInternalformativ");
642 gl_
->GetInternalformativ(target
, format
, pname
, bufSize
, params
);
645 void GLES2TraceImplementation::GetProgramiv(GLuint program
,
648 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramiv");
649 gl_
->GetProgramiv(program
, pname
, params
);
652 void GLES2TraceImplementation::GetProgramInfoLog(GLuint program
,
656 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramInfoLog");
657 gl_
->GetProgramInfoLog(program
, bufsize
, length
, infolog
);
660 void GLES2TraceImplementation::GetRenderbufferParameteriv(GLenum target
,
663 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
664 "GLES2Trace::GetRenderbufferParameteriv");
665 gl_
->GetRenderbufferParameteriv(target
, pname
, params
);
668 void GLES2TraceImplementation::GetSamplerParameterfv(GLuint sampler
,
671 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetSamplerParameterfv");
672 gl_
->GetSamplerParameterfv(sampler
, pname
, params
);
675 void GLES2TraceImplementation::GetSamplerParameteriv(GLuint sampler
,
678 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetSamplerParameteriv");
679 gl_
->GetSamplerParameteriv(sampler
, pname
, params
);
682 void GLES2TraceImplementation::GetShaderiv(GLuint shader
,
685 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderiv");
686 gl_
->GetShaderiv(shader
, pname
, params
);
689 void GLES2TraceImplementation::GetShaderInfoLog(GLuint shader
,
693 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderInfoLog");
694 gl_
->GetShaderInfoLog(shader
, bufsize
, length
, infolog
);
697 void GLES2TraceImplementation::GetShaderPrecisionFormat(GLenum shadertype
,
698 GLenum precisiontype
,
701 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderPrecisionFormat");
702 gl_
->GetShaderPrecisionFormat(shadertype
, precisiontype
, range
, precision
);
705 void GLES2TraceImplementation::GetShaderSource(GLuint shader
,
709 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderSource");
710 gl_
->GetShaderSource(shader
, bufsize
, length
, source
);
713 const GLubyte
* GLES2TraceImplementation::GetString(GLenum name
) {
714 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetString");
715 return gl_
->GetString(name
);
718 void GLES2TraceImplementation::GetSynciv(GLsync sync
,
723 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetSynciv");
724 gl_
->GetSynciv(sync
, pname
, bufsize
, length
, values
);
727 void GLES2TraceImplementation::GetTexParameterfv(GLenum target
,
730 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetTexParameterfv");
731 gl_
->GetTexParameterfv(target
, pname
, params
);
734 void GLES2TraceImplementation::GetTexParameteriv(GLenum target
,
737 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetTexParameteriv");
738 gl_
->GetTexParameteriv(target
, pname
, params
);
741 void GLES2TraceImplementation::GetTransformFeedbackVarying(GLuint program
,
748 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
749 "GLES2Trace::GetTransformFeedbackVarying");
750 gl_
->GetTransformFeedbackVarying(program
, index
, bufsize
, length
, size
, type
,
754 GLuint
GLES2TraceImplementation::GetUniformBlockIndex(GLuint program
,
756 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformBlockIndex");
757 return gl_
->GetUniformBlockIndex(program
, name
);
760 void GLES2TraceImplementation::GetUniformfv(GLuint program
,
763 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformfv");
764 gl_
->GetUniformfv(program
, location
, params
);
767 void GLES2TraceImplementation::GetUniformiv(GLuint program
,
770 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformiv");
771 gl_
->GetUniformiv(program
, location
, params
);
774 void GLES2TraceImplementation::GetUniformIndices(GLuint program
,
776 const char* const* names
,
778 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformIndices");
779 gl_
->GetUniformIndices(program
, count
, names
, indices
);
782 GLint
GLES2TraceImplementation::GetUniformLocation(GLuint program
,
784 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformLocation");
785 return gl_
->GetUniformLocation(program
, name
);
788 void GLES2TraceImplementation::GetVertexAttribfv(GLuint index
,
791 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribfv");
792 gl_
->GetVertexAttribfv(index
, pname
, params
);
795 void GLES2TraceImplementation::GetVertexAttribiv(GLuint index
,
798 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribiv");
799 gl_
->GetVertexAttribiv(index
, pname
, params
);
802 void GLES2TraceImplementation::GetVertexAttribPointerv(GLuint index
,
805 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribPointerv");
806 gl_
->GetVertexAttribPointerv(index
, pname
, pointer
);
809 void GLES2TraceImplementation::Hint(GLenum target
, GLenum mode
) {
810 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Hint");
811 gl_
->Hint(target
, mode
);
814 void GLES2TraceImplementation::InvalidateFramebuffer(
817 const GLenum
* attachments
) {
818 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InvalidateFramebuffer");
819 gl_
->InvalidateFramebuffer(target
, count
, attachments
);
822 void GLES2TraceImplementation::InvalidateSubFramebuffer(
825 const GLenum
* attachments
,
830 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InvalidateSubFramebuffer");
831 gl_
->InvalidateSubFramebuffer(target
, count
, attachments
, x
, y
, width
,
835 GLboolean
GLES2TraceImplementation::IsBuffer(GLuint buffer
) {
836 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsBuffer");
837 return gl_
->IsBuffer(buffer
);
840 GLboolean
GLES2TraceImplementation::IsEnabled(GLenum cap
) {
841 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsEnabled");
842 return gl_
->IsEnabled(cap
);
845 GLboolean
GLES2TraceImplementation::IsFramebuffer(GLuint framebuffer
) {
846 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsFramebuffer");
847 return gl_
->IsFramebuffer(framebuffer
);
850 GLboolean
GLES2TraceImplementation::IsProgram(GLuint program
) {
851 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsProgram");
852 return gl_
->IsProgram(program
);
855 GLboolean
GLES2TraceImplementation::IsRenderbuffer(GLuint renderbuffer
) {
856 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsRenderbuffer");
857 return gl_
->IsRenderbuffer(renderbuffer
);
860 GLboolean
GLES2TraceImplementation::IsSampler(GLuint sampler
) {
861 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsSampler");
862 return gl_
->IsSampler(sampler
);
865 GLboolean
GLES2TraceImplementation::IsShader(GLuint shader
) {
866 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsShader");
867 return gl_
->IsShader(shader
);
870 GLboolean
GLES2TraceImplementation::IsSync(GLsync sync
) {
871 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsSync");
872 return gl_
->IsSync(sync
);
875 GLboolean
GLES2TraceImplementation::IsTexture(GLuint texture
) {
876 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsTexture");
877 return gl_
->IsTexture(texture
);
880 GLboolean
GLES2TraceImplementation::IsTransformFeedback(
881 GLuint transformfeedback
) {
882 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsTransformFeedback");
883 return gl_
->IsTransformFeedback(transformfeedback
);
886 void GLES2TraceImplementation::LineWidth(GLfloat width
) {
887 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LineWidth");
888 gl_
->LineWidth(width
);
891 void GLES2TraceImplementation::LinkProgram(GLuint program
) {
892 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LinkProgram");
893 gl_
->LinkProgram(program
);
896 void GLES2TraceImplementation::PauseTransformFeedback() {
897 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PauseTransformFeedback");
898 gl_
->PauseTransformFeedback();
901 void GLES2TraceImplementation::PixelStorei(GLenum pname
, GLint param
) {
902 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PixelStorei");
903 gl_
->PixelStorei(pname
, param
);
906 void GLES2TraceImplementation::PolygonOffset(GLfloat factor
, GLfloat units
) {
907 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PolygonOffset");
908 gl_
->PolygonOffset(factor
, units
);
911 void GLES2TraceImplementation::ReadBuffer(GLenum src
) {
912 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReadBuffer");
913 gl_
->ReadBuffer(src
);
916 void GLES2TraceImplementation::ReadPixels(GLint x
,
923 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReadPixels");
924 gl_
->ReadPixels(x
, y
, width
, height
, format
, type
, pixels
);
927 void GLES2TraceImplementation::ReleaseShaderCompiler() {
928 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReleaseShaderCompiler");
929 gl_
->ReleaseShaderCompiler();
932 void GLES2TraceImplementation::RenderbufferStorage(GLenum target
,
933 GLenum internalformat
,
936 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RenderbufferStorage");
937 gl_
->RenderbufferStorage(target
, internalformat
, width
, height
);
940 void GLES2TraceImplementation::ResumeTransformFeedback() {
941 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ResumeTransformFeedback");
942 gl_
->ResumeTransformFeedback();
945 void GLES2TraceImplementation::SampleCoverage(GLclampf value
,
947 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SampleCoverage");
948 gl_
->SampleCoverage(value
, invert
);
951 void GLES2TraceImplementation::SamplerParameterf(GLuint sampler
,
954 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameterf");
955 gl_
->SamplerParameterf(sampler
, pname
, param
);
958 void GLES2TraceImplementation::SamplerParameterfv(GLuint sampler
,
960 const GLfloat
* params
) {
961 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameterfv");
962 gl_
->SamplerParameterfv(sampler
, pname
, params
);
965 void GLES2TraceImplementation::SamplerParameteri(GLuint sampler
,
968 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameteri");
969 gl_
->SamplerParameteri(sampler
, pname
, param
);
972 void GLES2TraceImplementation::SamplerParameteriv(GLuint sampler
,
974 const GLint
* params
) {
975 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameteriv");
976 gl_
->SamplerParameteriv(sampler
, pname
, params
);
979 void GLES2TraceImplementation::Scissor(GLint x
,
983 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Scissor");
984 gl_
->Scissor(x
, y
, width
, height
);
987 void GLES2TraceImplementation::ShaderBinary(GLsizei n
,
988 const GLuint
* shaders
,
992 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShaderBinary");
993 gl_
->ShaderBinary(n
, shaders
, binaryformat
, binary
, length
);
996 void GLES2TraceImplementation::ShaderSource(GLuint shader
,
998 const GLchar
* const* str
,
999 const GLint
* length
) {
1000 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShaderSource");
1001 gl_
->ShaderSource(shader
, count
, str
, length
);
1004 void GLES2TraceImplementation::ShallowFinishCHROMIUM() {
1005 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShallowFinishCHROMIUM");
1006 gl_
->ShallowFinishCHROMIUM();
1009 void GLES2TraceImplementation::ShallowFlushCHROMIUM() {
1010 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShallowFlushCHROMIUM");
1011 gl_
->ShallowFlushCHROMIUM();
1014 void GLES2TraceImplementation::OrderingBarrierCHROMIUM() {
1015 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::OrderingBarrierCHROMIUM");
1016 gl_
->OrderingBarrierCHROMIUM();
1019 void GLES2TraceImplementation::StencilFunc(GLenum func
,
1022 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFunc");
1023 gl_
->StencilFunc(func
, ref
, mask
);
1026 void GLES2TraceImplementation::StencilFuncSeparate(GLenum face
,
1030 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFuncSeparate");
1031 gl_
->StencilFuncSeparate(face
, func
, ref
, mask
);
1034 void GLES2TraceImplementation::StencilMask(GLuint mask
) {
1035 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilMask");
1036 gl_
->StencilMask(mask
);
1039 void GLES2TraceImplementation::StencilMaskSeparate(GLenum face
, GLuint mask
) {
1040 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilMaskSeparate");
1041 gl_
->StencilMaskSeparate(face
, mask
);
1044 void GLES2TraceImplementation::StencilOp(GLenum fail
,
1047 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilOp");
1048 gl_
->StencilOp(fail
, zfail
, zpass
);
1051 void GLES2TraceImplementation::StencilOpSeparate(GLenum face
,
1055 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilOpSeparate");
1056 gl_
->StencilOpSeparate(face
, fail
, zfail
, zpass
);
1059 void GLES2TraceImplementation::TexImage2D(GLenum target
,
1061 GLint internalformat
,
1067 const void* pixels
) {
1068 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImage2D");
1069 gl_
->TexImage2D(target
, level
, internalformat
, width
, height
, border
, format
,
1073 void GLES2TraceImplementation::TexImage3D(GLenum target
,
1075 GLint internalformat
,
1082 const void* pixels
) {
1083 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImage3D");
1084 gl_
->TexImage3D(target
, level
, internalformat
, width
, height
, depth
, border
,
1085 format
, type
, pixels
);
1088 void GLES2TraceImplementation::TexParameterf(GLenum target
,
1091 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterf");
1092 gl_
->TexParameterf(target
, pname
, param
);
1095 void GLES2TraceImplementation::TexParameterfv(GLenum target
,
1097 const GLfloat
* params
) {
1098 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterfv");
1099 gl_
->TexParameterfv(target
, pname
, params
);
1102 void GLES2TraceImplementation::TexParameteri(GLenum target
,
1105 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameteri");
1106 gl_
->TexParameteri(target
, pname
, param
);
1109 void GLES2TraceImplementation::TexParameteriv(GLenum target
,
1111 const GLint
* params
) {
1112 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameteriv");
1113 gl_
->TexParameteriv(target
, pname
, params
);
1116 void GLES2TraceImplementation::TexStorage3D(GLenum target
,
1118 GLenum internalFormat
,
1122 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexStorage3D");
1123 gl_
->TexStorage3D(target
, levels
, internalFormat
, width
, height
, depth
);
1126 void GLES2TraceImplementation::TexSubImage2D(GLenum target
,
1134 const void* pixels
) {
1135 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage2D");
1136 gl_
->TexSubImage2D(target
, level
, xoffset
, yoffset
, width
, height
, format
,
1140 void GLES2TraceImplementation::TexSubImage3D(GLenum target
,
1150 const void* pixels
) {
1151 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage3D");
1152 gl_
->TexSubImage3D(target
, level
, xoffset
, yoffset
, zoffset
, width
, height
,
1153 depth
, format
, type
, pixels
);
1156 void GLES2TraceImplementation::TransformFeedbackVaryings(
1159 const char* const* varyings
,
1160 GLenum buffermode
) {
1161 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TransformFeedbackVaryings");
1162 gl_
->TransformFeedbackVaryings(program
, count
, varyings
, buffermode
);
1165 void GLES2TraceImplementation::Uniform1f(GLint location
, GLfloat x
) {
1166 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1f");
1167 gl_
->Uniform1f(location
, x
);
1170 void GLES2TraceImplementation::Uniform1fv(GLint location
,
1173 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1fv");
1174 gl_
->Uniform1fv(location
, count
, v
);
1177 void GLES2TraceImplementation::Uniform1i(GLint location
, GLint x
) {
1178 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1i");
1179 gl_
->Uniform1i(location
, x
);
1182 void GLES2TraceImplementation::Uniform1iv(GLint location
,
1185 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1iv");
1186 gl_
->Uniform1iv(location
, count
, v
);
1189 void GLES2TraceImplementation::Uniform1ui(GLint location
, GLuint x
) {
1190 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1ui");
1191 gl_
->Uniform1ui(location
, x
);
1194 void GLES2TraceImplementation::Uniform1uiv(GLint location
,
1197 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1uiv");
1198 gl_
->Uniform1uiv(location
, count
, v
);
1201 void GLES2TraceImplementation::Uniform2f(GLint location
, GLfloat x
, GLfloat y
) {
1202 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2f");
1203 gl_
->Uniform2f(location
, x
, y
);
1206 void GLES2TraceImplementation::Uniform2fv(GLint location
,
1209 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2fv");
1210 gl_
->Uniform2fv(location
, count
, v
);
1213 void GLES2TraceImplementation::Uniform2i(GLint location
, GLint x
, GLint y
) {
1214 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2i");
1215 gl_
->Uniform2i(location
, x
, y
);
1218 void GLES2TraceImplementation::Uniform2iv(GLint location
,
1221 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2iv");
1222 gl_
->Uniform2iv(location
, count
, v
);
1225 void GLES2TraceImplementation::Uniform2ui(GLint location
, GLuint x
, GLuint y
) {
1226 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2ui");
1227 gl_
->Uniform2ui(location
, x
, y
);
1230 void GLES2TraceImplementation::Uniform2uiv(GLint location
,
1233 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2uiv");
1234 gl_
->Uniform2uiv(location
, count
, v
);
1237 void GLES2TraceImplementation::Uniform3f(GLint location
,
1241 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3f");
1242 gl_
->Uniform3f(location
, x
, y
, z
);
1245 void GLES2TraceImplementation::Uniform3fv(GLint location
,
1248 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3fv");
1249 gl_
->Uniform3fv(location
, count
, v
);
1252 void GLES2TraceImplementation::Uniform3i(GLint location
,
1256 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3i");
1257 gl_
->Uniform3i(location
, x
, y
, z
);
1260 void GLES2TraceImplementation::Uniform3iv(GLint location
,
1263 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3iv");
1264 gl_
->Uniform3iv(location
, count
, v
);
1267 void GLES2TraceImplementation::Uniform3ui(GLint location
,
1271 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3ui");
1272 gl_
->Uniform3ui(location
, x
, y
, z
);
1275 void GLES2TraceImplementation::Uniform3uiv(GLint location
,
1278 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3uiv");
1279 gl_
->Uniform3uiv(location
, count
, v
);
1282 void GLES2TraceImplementation::Uniform4f(GLint location
,
1287 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4f");
1288 gl_
->Uniform4f(location
, x
, y
, z
, w
);
1291 void GLES2TraceImplementation::Uniform4fv(GLint location
,
1294 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4fv");
1295 gl_
->Uniform4fv(location
, count
, v
);
1298 void GLES2TraceImplementation::Uniform4i(GLint location
,
1303 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4i");
1304 gl_
->Uniform4i(location
, x
, y
, z
, w
);
1307 void GLES2TraceImplementation::Uniform4iv(GLint location
,
1310 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4iv");
1311 gl_
->Uniform4iv(location
, count
, v
);
1314 void GLES2TraceImplementation::Uniform4ui(GLint location
,
1319 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4ui");
1320 gl_
->Uniform4ui(location
, x
, y
, z
, w
);
1323 void GLES2TraceImplementation::Uniform4uiv(GLint location
,
1326 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4uiv");
1327 gl_
->Uniform4uiv(location
, count
, v
);
1330 void GLES2TraceImplementation::UniformBlockBinding(GLuint program
,
1333 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformBlockBinding");
1334 gl_
->UniformBlockBinding(program
, index
, binding
);
1337 void GLES2TraceImplementation::UniformMatrix2fv(GLint location
,
1339 GLboolean transpose
,
1340 const GLfloat
* value
) {
1341 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2fv");
1342 gl_
->UniformMatrix2fv(location
, count
, transpose
, value
);
1345 void GLES2TraceImplementation::UniformMatrix2x3fv(GLint location
,
1347 GLboolean transpose
,
1348 const GLfloat
* value
) {
1349 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2x3fv");
1350 gl_
->UniformMatrix2x3fv(location
, count
, transpose
, value
);
1353 void GLES2TraceImplementation::UniformMatrix2x4fv(GLint location
,
1355 GLboolean transpose
,
1356 const GLfloat
* value
) {
1357 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2x4fv");
1358 gl_
->UniformMatrix2x4fv(location
, count
, transpose
, value
);
1361 void GLES2TraceImplementation::UniformMatrix3fv(GLint location
,
1363 GLboolean transpose
,
1364 const GLfloat
* value
) {
1365 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3fv");
1366 gl_
->UniformMatrix3fv(location
, count
, transpose
, value
);
1369 void GLES2TraceImplementation::UniformMatrix3x2fv(GLint location
,
1371 GLboolean transpose
,
1372 const GLfloat
* value
) {
1373 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3x2fv");
1374 gl_
->UniformMatrix3x2fv(location
, count
, transpose
, value
);
1377 void GLES2TraceImplementation::UniformMatrix3x4fv(GLint location
,
1379 GLboolean transpose
,
1380 const GLfloat
* value
) {
1381 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3x4fv");
1382 gl_
->UniformMatrix3x4fv(location
, count
, transpose
, value
);
1385 void GLES2TraceImplementation::UniformMatrix4fv(GLint location
,
1387 GLboolean transpose
,
1388 const GLfloat
* value
) {
1389 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4fv");
1390 gl_
->UniformMatrix4fv(location
, count
, transpose
, value
);
1393 void GLES2TraceImplementation::UniformMatrix4x2fv(GLint location
,
1395 GLboolean transpose
,
1396 const GLfloat
* value
) {
1397 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4x2fv");
1398 gl_
->UniformMatrix4x2fv(location
, count
, transpose
, value
);
1401 void GLES2TraceImplementation::UniformMatrix4x3fv(GLint location
,
1403 GLboolean transpose
,
1404 const GLfloat
* value
) {
1405 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4x3fv");
1406 gl_
->UniformMatrix4x3fv(location
, count
, transpose
, value
);
1409 void GLES2TraceImplementation::UseProgram(GLuint program
) {
1410 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UseProgram");
1411 gl_
->UseProgram(program
);
1414 void GLES2TraceImplementation::ValidateProgram(GLuint program
) {
1415 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ValidateProgram");
1416 gl_
->ValidateProgram(program
);
1419 void GLES2TraceImplementation::VertexAttrib1f(GLuint indx
, GLfloat x
) {
1420 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib1f");
1421 gl_
->VertexAttrib1f(indx
, x
);
1424 void GLES2TraceImplementation::VertexAttrib1fv(GLuint indx
,
1425 const GLfloat
* values
) {
1426 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib1fv");
1427 gl_
->VertexAttrib1fv(indx
, values
);
1430 void GLES2TraceImplementation::VertexAttrib2f(GLuint indx
,
1433 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib2f");
1434 gl_
->VertexAttrib2f(indx
, x
, y
);
1437 void GLES2TraceImplementation::VertexAttrib2fv(GLuint indx
,
1438 const GLfloat
* values
) {
1439 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib2fv");
1440 gl_
->VertexAttrib2fv(indx
, values
);
1443 void GLES2TraceImplementation::VertexAttrib3f(GLuint indx
,
1447 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib3f");
1448 gl_
->VertexAttrib3f(indx
, x
, y
, z
);
1451 void GLES2TraceImplementation::VertexAttrib3fv(GLuint indx
,
1452 const GLfloat
* values
) {
1453 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib3fv");
1454 gl_
->VertexAttrib3fv(indx
, values
);
1457 void GLES2TraceImplementation::VertexAttrib4f(GLuint indx
,
1462 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib4f");
1463 gl_
->VertexAttrib4f(indx
, x
, y
, z
, w
);
1466 void GLES2TraceImplementation::VertexAttrib4fv(GLuint indx
,
1467 const GLfloat
* values
) {
1468 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib4fv");
1469 gl_
->VertexAttrib4fv(indx
, values
);
1472 void GLES2TraceImplementation::VertexAttribI4i(GLuint indx
,
1477 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4i");
1478 gl_
->VertexAttribI4i(indx
, x
, y
, z
, w
);
1481 void GLES2TraceImplementation::VertexAttribI4iv(GLuint indx
,
1482 const GLint
* values
) {
1483 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4iv");
1484 gl_
->VertexAttribI4iv(indx
, values
);
1487 void GLES2TraceImplementation::VertexAttribI4ui(GLuint indx
,
1492 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4ui");
1493 gl_
->VertexAttribI4ui(indx
, x
, y
, z
, w
);
1496 void GLES2TraceImplementation::VertexAttribI4uiv(GLuint indx
,
1497 const GLuint
* values
) {
1498 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4uiv");
1499 gl_
->VertexAttribI4uiv(indx
, values
);
1502 void GLES2TraceImplementation::VertexAttribIPointer(GLuint indx
,
1507 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribIPointer");
1508 gl_
->VertexAttribIPointer(indx
, size
, type
, stride
, ptr
);
1511 void GLES2TraceImplementation::VertexAttribPointer(GLuint indx
,
1514 GLboolean normalized
,
1517 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribPointer");
1518 gl_
->VertexAttribPointer(indx
, size
, type
, normalized
, stride
, ptr
);
1521 void GLES2TraceImplementation::Viewport(GLint x
,
1525 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Viewport");
1526 gl_
->Viewport(x
, y
, width
, height
);
1529 void GLES2TraceImplementation::WaitSync(GLsync sync
,
1532 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::WaitSync");
1533 gl_
->WaitSync(sync
, flags
, timeout
);
1536 void GLES2TraceImplementation::BlitFramebufferCHROMIUM(GLint srcX0
,
1546 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlitFramebufferCHROMIUM");
1547 gl_
->BlitFramebufferCHROMIUM(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
, dstX1
,
1548 dstY1
, mask
, filter
);
1551 void GLES2TraceImplementation::RenderbufferStorageMultisampleCHROMIUM(
1554 GLenum internalformat
,
1557 TRACE_EVENT_BINARY_EFFICIENT0(
1558 "gpu", "GLES2Trace::RenderbufferStorageMultisampleCHROMIUM");
1559 gl_
->RenderbufferStorageMultisampleCHROMIUM(target
, samples
, internalformat
,
1563 void GLES2TraceImplementation::RenderbufferStorageMultisampleEXT(
1566 GLenum internalformat
,
1569 TRACE_EVENT_BINARY_EFFICIENT0(
1570 "gpu", "GLES2Trace::RenderbufferStorageMultisampleEXT");
1571 gl_
->RenderbufferStorageMultisampleEXT(target
, samples
, internalformat
, width
,
1575 void GLES2TraceImplementation::FramebufferTexture2DMultisampleEXT(
1582 TRACE_EVENT_BINARY_EFFICIENT0(
1583 "gpu", "GLES2Trace::FramebufferTexture2DMultisampleEXT");
1584 gl_
->FramebufferTexture2DMultisampleEXT(target
, attachment
, textarget
,
1585 texture
, level
, samples
);
1588 void GLES2TraceImplementation::TexStorage2DEXT(GLenum target
,
1590 GLenum internalFormat
,
1593 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexStorage2DEXT");
1594 gl_
->TexStorage2DEXT(target
, levels
, internalFormat
, width
, height
);
1597 void GLES2TraceImplementation::GenQueriesEXT(GLsizei n
, GLuint
* queries
) {
1598 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenQueriesEXT");
1599 gl_
->GenQueriesEXT(n
, queries
);
1602 void GLES2TraceImplementation::DeleteQueriesEXT(GLsizei n
,
1603 const GLuint
* queries
) {
1604 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteQueriesEXT");
1605 gl_
->DeleteQueriesEXT(n
, queries
);
1608 GLboolean
GLES2TraceImplementation::IsQueryEXT(GLuint id
) {
1609 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsQueryEXT");
1610 return gl_
->IsQueryEXT(id
);
1613 void GLES2TraceImplementation::BeginQueryEXT(GLenum target
, GLuint id
) {
1614 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BeginQueryEXT");
1615 gl_
->BeginQueryEXT(target
, id
);
1618 void GLES2TraceImplementation::BeginTransformFeedback(GLenum primitivemode
) {
1619 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BeginTransformFeedback");
1620 gl_
->BeginTransformFeedback(primitivemode
);
1623 void GLES2TraceImplementation::EndQueryEXT(GLenum target
) {
1624 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EndQueryEXT");
1625 gl_
->EndQueryEXT(target
);
1628 void GLES2TraceImplementation::EndTransformFeedback() {
1629 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EndTransformFeedback");
1630 gl_
->EndTransformFeedback();
1633 void GLES2TraceImplementation::GetQueryivEXT(GLenum target
,
1636 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryivEXT");
1637 gl_
->GetQueryivEXT(target
, pname
, params
);
1640 void GLES2TraceImplementation::GetQueryObjectuivEXT(GLuint id
,
1643 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryObjectuivEXT");
1644 gl_
->GetQueryObjectuivEXT(id
, pname
, params
);
1647 void GLES2TraceImplementation::InsertEventMarkerEXT(GLsizei length
,
1648 const GLchar
* marker
) {
1649 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InsertEventMarkerEXT");
1650 gl_
->InsertEventMarkerEXT(length
, marker
);
1653 void GLES2TraceImplementation::PushGroupMarkerEXT(GLsizei length
,
1654 const GLchar
* marker
) {
1655 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PushGroupMarkerEXT");
1656 gl_
->PushGroupMarkerEXT(length
, marker
);
1659 void GLES2TraceImplementation::PopGroupMarkerEXT() {
1660 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PopGroupMarkerEXT");
1661 gl_
->PopGroupMarkerEXT();
1664 void GLES2TraceImplementation::GenVertexArraysOES(GLsizei n
, GLuint
* arrays
) {
1665 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenVertexArraysOES");
1666 gl_
->GenVertexArraysOES(n
, arrays
);
1669 void GLES2TraceImplementation::DeleteVertexArraysOES(GLsizei n
,
1670 const GLuint
* arrays
) {
1671 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteVertexArraysOES");
1672 gl_
->DeleteVertexArraysOES(n
, arrays
);
1675 GLboolean
GLES2TraceImplementation::IsVertexArrayOES(GLuint array
) {
1676 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsVertexArrayOES");
1677 return gl_
->IsVertexArrayOES(array
);
1680 void GLES2TraceImplementation::BindVertexArrayOES(GLuint array
) {
1681 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindVertexArrayOES");
1682 gl_
->BindVertexArrayOES(array
);
1685 void GLES2TraceImplementation::SwapBuffers() {
1686 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SwapBuffers");
1690 GLuint
GLES2TraceImplementation::GetMaxValueInBufferCHROMIUM(GLuint buffer_id
,
1694 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1695 "GLES2Trace::GetMaxValueInBufferCHROMIUM");
1696 return gl_
->GetMaxValueInBufferCHROMIUM(buffer_id
, count
, type
, offset
);
1699 GLboolean
GLES2TraceImplementation::EnableFeatureCHROMIUM(const char* feature
) {
1700 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EnableFeatureCHROMIUM");
1701 return gl_
->EnableFeatureCHROMIUM(feature
);
1704 void* GLES2TraceImplementation::MapBufferCHROMIUM(GLuint target
,
1706 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferCHROMIUM");
1707 return gl_
->MapBufferCHROMIUM(target
, access
);
1710 GLboolean
GLES2TraceImplementation::UnmapBufferCHROMIUM(GLuint target
) {
1711 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UnmapBufferCHROMIUM");
1712 return gl_
->UnmapBufferCHROMIUM(target
);
1715 void* GLES2TraceImplementation::MapBufferSubDataCHROMIUM(GLuint target
,
1719 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferSubDataCHROMIUM");
1720 return gl_
->MapBufferSubDataCHROMIUM(target
, offset
, size
, access
);
1723 void GLES2TraceImplementation::UnmapBufferSubDataCHROMIUM(const void* mem
) {
1724 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1725 "GLES2Trace::UnmapBufferSubDataCHROMIUM");
1726 gl_
->UnmapBufferSubDataCHROMIUM(mem
);
1729 void* GLES2TraceImplementation::MapBufferRange(GLenum target
,
1732 GLbitfield access
) {
1733 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferRange");
1734 return gl_
->MapBufferRange(target
, offset
, size
, access
);
1737 GLboolean
GLES2TraceImplementation::UnmapBuffer(GLenum target
) {
1738 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UnmapBuffer");
1739 return gl_
->UnmapBuffer(target
);
1742 void* GLES2TraceImplementation::MapTexSubImage2DCHROMIUM(GLenum target
,
1751 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapTexSubImage2DCHROMIUM");
1752 return gl_
->MapTexSubImage2DCHROMIUM(target
, level
, xoffset
, yoffset
, width
,
1753 height
, format
, type
, access
);
1756 void GLES2TraceImplementation::UnmapTexSubImage2DCHROMIUM(const void* mem
) {
1757 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1758 "GLES2Trace::UnmapTexSubImage2DCHROMIUM");
1759 gl_
->UnmapTexSubImage2DCHROMIUM(mem
);
1762 void GLES2TraceImplementation::ResizeCHROMIUM(GLuint width
,
1764 GLfloat scale_factor
) {
1765 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ResizeCHROMIUM");
1766 gl_
->ResizeCHROMIUM(width
, height
, scale_factor
);
1769 const GLchar
* GLES2TraceImplementation::GetRequestableExtensionsCHROMIUM() {
1770 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1771 "GLES2Trace::GetRequestableExtensionsCHROMIUM");
1772 return gl_
->GetRequestableExtensionsCHROMIUM();
1775 void GLES2TraceImplementation::RequestExtensionCHROMIUM(const char* extension
) {
1776 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RequestExtensionCHROMIUM");
1777 gl_
->RequestExtensionCHROMIUM(extension
);
1780 void GLES2TraceImplementation::RateLimitOffscreenContextCHROMIUM() {
1781 TRACE_EVENT_BINARY_EFFICIENT0(
1782 "gpu", "GLES2Trace::RateLimitOffscreenContextCHROMIUM");
1783 gl_
->RateLimitOffscreenContextCHROMIUM();
1786 void GLES2TraceImplementation::GetProgramInfoCHROMIUM(GLuint program
,
1790 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramInfoCHROMIUM");
1791 gl_
->GetProgramInfoCHROMIUM(program
, bufsize
, size
, info
);
1794 void GLES2TraceImplementation::GetUniformBlocksCHROMIUM(GLuint program
,
1798 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformBlocksCHROMIUM");
1799 gl_
->GetUniformBlocksCHROMIUM(program
, bufsize
, size
, info
);
1802 void GLES2TraceImplementation::GetTransformFeedbackVaryingsCHROMIUM(
1807 TRACE_EVENT_BINARY_EFFICIENT0(
1808 "gpu", "GLES2Trace::GetTransformFeedbackVaryingsCHROMIUM");
1809 gl_
->GetTransformFeedbackVaryingsCHROMIUM(program
, bufsize
, size
, info
);
1812 void GLES2TraceImplementation::GetUniformsES3CHROMIUM(GLuint program
,
1816 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformsES3CHROMIUM");
1817 gl_
->GetUniformsES3CHROMIUM(program
, bufsize
, size
, info
);
1820 GLuint
GLES2TraceImplementation::CreateStreamTextureCHROMIUM(GLuint texture
) {
1821 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1822 "GLES2Trace::CreateStreamTextureCHROMIUM");
1823 return gl_
->CreateStreamTextureCHROMIUM(texture
);
1826 GLuint
GLES2TraceImplementation::CreateImageCHROMIUM(ClientBuffer buffer
,
1829 GLenum internalformat
) {
1830 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateImageCHROMIUM");
1831 return gl_
->CreateImageCHROMIUM(buffer
, width
, height
, internalformat
);
1834 void GLES2TraceImplementation::DestroyImageCHROMIUM(GLuint image_id
) {
1835 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DestroyImageCHROMIUM");
1836 gl_
->DestroyImageCHROMIUM(image_id
);
1839 GLuint
GLES2TraceImplementation::CreateGpuMemoryBufferImageCHROMIUM(
1842 GLenum internalformat
,
1844 TRACE_EVENT_BINARY_EFFICIENT0(
1845 "gpu", "GLES2Trace::CreateGpuMemoryBufferImageCHROMIUM");
1846 return gl_
->CreateGpuMemoryBufferImageCHROMIUM(width
, height
, internalformat
,
1850 void GLES2TraceImplementation::GetTranslatedShaderSourceANGLE(GLuint shader
,
1854 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1855 "GLES2Trace::GetTranslatedShaderSourceANGLE");
1856 gl_
->GetTranslatedShaderSourceANGLE(shader
, bufsize
, length
, source
);
1859 void GLES2TraceImplementation::PostSubBufferCHROMIUM(GLint x
,
1863 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PostSubBufferCHROMIUM");
1864 gl_
->PostSubBufferCHROMIUM(x
, y
, width
, height
);
1867 void GLES2TraceImplementation::TexImageIOSurface2DCHROMIUM(GLenum target
,
1872 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1873 "GLES2Trace::TexImageIOSurface2DCHROMIUM");
1874 gl_
->TexImageIOSurface2DCHROMIUM(target
, width
, height
, ioSurfaceId
, plane
);
1877 void GLES2TraceImplementation::CopyTextureCHROMIUM(GLenum target
,
1880 GLint internalformat
,
1882 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTextureCHROMIUM");
1883 gl_
->CopyTextureCHROMIUM(target
, source_id
, dest_id
, internalformat
,
1887 void GLES2TraceImplementation::CopySubTextureCHROMIUM(GLenum target
,
1892 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopySubTextureCHROMIUM");
1893 gl_
->CopySubTextureCHROMIUM(target
, source_id
, dest_id
, xoffset
, yoffset
);
1896 void GLES2TraceImplementation::DrawArraysInstancedANGLE(GLenum mode
,
1899 GLsizei primcount
) {
1900 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawArraysInstancedANGLE");
1901 gl_
->DrawArraysInstancedANGLE(mode
, first
, count
, primcount
);
1904 void GLES2TraceImplementation::DrawElementsInstancedANGLE(GLenum mode
,
1907 const void* indices
,
1908 GLsizei primcount
) {
1909 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1910 "GLES2Trace::DrawElementsInstancedANGLE");
1911 gl_
->DrawElementsInstancedANGLE(mode
, count
, type
, indices
, primcount
);
1914 void GLES2TraceImplementation::VertexAttribDivisorANGLE(GLuint index
,
1916 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribDivisorANGLE");
1917 gl_
->VertexAttribDivisorANGLE(index
, divisor
);
1920 void GLES2TraceImplementation::GenMailboxCHROMIUM(GLbyte
* mailbox
) {
1921 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenMailboxCHROMIUM");
1922 gl_
->GenMailboxCHROMIUM(mailbox
);
1925 void GLES2TraceImplementation::ProduceTextureCHROMIUM(GLenum target
,
1926 const GLbyte
* mailbox
) {
1927 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ProduceTextureCHROMIUM");
1928 gl_
->ProduceTextureCHROMIUM(target
, mailbox
);
1931 void GLES2TraceImplementation::ProduceTextureDirectCHROMIUM(
1934 const GLbyte
* mailbox
) {
1935 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1936 "GLES2Trace::ProduceTextureDirectCHROMIUM");
1937 gl_
->ProduceTextureDirectCHROMIUM(texture
, target
, mailbox
);
1940 void GLES2TraceImplementation::ConsumeTextureCHROMIUM(GLenum target
,
1941 const GLbyte
* mailbox
) {
1942 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ConsumeTextureCHROMIUM");
1943 gl_
->ConsumeTextureCHROMIUM(target
, mailbox
);
1946 GLuint
GLES2TraceImplementation::CreateAndConsumeTextureCHROMIUM(
1948 const GLbyte
* mailbox
) {
1949 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1950 "GLES2Trace::CreateAndConsumeTextureCHROMIUM");
1951 return gl_
->CreateAndConsumeTextureCHROMIUM(target
, mailbox
);
1954 void GLES2TraceImplementation::BindUniformLocationCHROMIUM(GLuint program
,
1957 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1958 "GLES2Trace::BindUniformLocationCHROMIUM");
1959 gl_
->BindUniformLocationCHROMIUM(program
, location
, name
);
1962 void GLES2TraceImplementation::GenValuebuffersCHROMIUM(GLsizei n
,
1964 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenValuebuffersCHROMIUM");
1965 gl_
->GenValuebuffersCHROMIUM(n
, buffers
);
1968 void GLES2TraceImplementation::DeleteValuebuffersCHROMIUM(
1970 const GLuint
* valuebuffers
) {
1971 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1972 "GLES2Trace::DeleteValuebuffersCHROMIUM");
1973 gl_
->DeleteValuebuffersCHROMIUM(n
, valuebuffers
);
1976 GLboolean
GLES2TraceImplementation::IsValuebufferCHROMIUM(GLuint valuebuffer
) {
1977 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsValuebufferCHROMIUM");
1978 return gl_
->IsValuebufferCHROMIUM(valuebuffer
);
1981 void GLES2TraceImplementation::BindValuebufferCHROMIUM(GLenum target
,
1982 GLuint valuebuffer
) {
1983 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindValuebufferCHROMIUM");
1984 gl_
->BindValuebufferCHROMIUM(target
, valuebuffer
);
1987 void GLES2TraceImplementation::SubscribeValueCHROMIUM(GLenum target
,
1988 GLenum subscription
) {
1989 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SubscribeValueCHROMIUM");
1990 gl_
->SubscribeValueCHROMIUM(target
, subscription
);
1993 void GLES2TraceImplementation::PopulateSubscribedValuesCHROMIUM(GLenum target
) {
1994 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1995 "GLES2Trace::PopulateSubscribedValuesCHROMIUM");
1996 gl_
->PopulateSubscribedValuesCHROMIUM(target
);
1999 void GLES2TraceImplementation::UniformValuebufferCHROMIUM(GLint location
,
2001 GLenum subscription
) {
2002 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2003 "GLES2Trace::UniformValuebufferCHROMIUM");
2004 gl_
->UniformValuebufferCHROMIUM(location
, target
, subscription
);
2007 void GLES2TraceImplementation::BindTexImage2DCHROMIUM(GLenum target
,
2009 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindTexImage2DCHROMIUM");
2010 gl_
->BindTexImage2DCHROMIUM(target
, imageId
);
2013 void GLES2TraceImplementation::ReleaseTexImage2DCHROMIUM(GLenum target
,
2015 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReleaseTexImage2DCHROMIUM");
2016 gl_
->ReleaseTexImage2DCHROMIUM(target
, imageId
);
2019 void GLES2TraceImplementation::TraceBeginCHROMIUM(const char* category_name
,
2020 const char* trace_name
) {
2021 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TraceBeginCHROMIUM");
2022 gl_
->TraceBeginCHROMIUM(category_name
, trace_name
);
2025 void GLES2TraceImplementation::TraceEndCHROMIUM() {
2026 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TraceEndCHROMIUM");
2027 gl_
->TraceEndCHROMIUM();
2030 void GLES2TraceImplementation::AsyncTexSubImage2DCHROMIUM(GLenum target
,
2039 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2040 "GLES2Trace::AsyncTexSubImage2DCHROMIUM");
2041 gl_
->AsyncTexSubImage2DCHROMIUM(target
, level
, xoffset
, yoffset
, width
,
2042 height
, format
, type
, data
);
2045 void GLES2TraceImplementation::AsyncTexImage2DCHROMIUM(GLenum target
,
2047 GLenum internalformat
,
2053 const void* pixels
) {
2054 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::AsyncTexImage2DCHROMIUM");
2055 gl_
->AsyncTexImage2DCHROMIUM(target
, level
, internalformat
, width
, height
,
2056 border
, format
, type
, pixels
);
2059 void GLES2TraceImplementation::WaitAsyncTexImage2DCHROMIUM(GLenum target
) {
2060 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2061 "GLES2Trace::WaitAsyncTexImage2DCHROMIUM");
2062 gl_
->WaitAsyncTexImage2DCHROMIUM(target
);
2065 void GLES2TraceImplementation::WaitAllAsyncTexImage2DCHROMIUM() {
2066 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2067 "GLES2Trace::WaitAllAsyncTexImage2DCHROMIUM");
2068 gl_
->WaitAllAsyncTexImage2DCHROMIUM();
2071 void GLES2TraceImplementation::DiscardFramebufferEXT(
2074 const GLenum
* attachments
) {
2075 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DiscardFramebufferEXT");
2076 gl_
->DiscardFramebufferEXT(target
, count
, attachments
);
2079 void GLES2TraceImplementation::LoseContextCHROMIUM(GLenum current
,
2081 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LoseContextCHROMIUM");
2082 gl_
->LoseContextCHROMIUM(current
, other
);
2085 GLuint
GLES2TraceImplementation::InsertSyncPointCHROMIUM() {
2086 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InsertSyncPointCHROMIUM");
2087 return gl_
->InsertSyncPointCHROMIUM();
2090 void GLES2TraceImplementation::WaitSyncPointCHROMIUM(GLuint sync_point
) {
2091 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::WaitSyncPointCHROMIUM");
2092 gl_
->WaitSyncPointCHROMIUM(sync_point
);
2095 void GLES2TraceImplementation::DrawBuffersEXT(GLsizei count
,
2096 const GLenum
* bufs
) {
2097 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawBuffersEXT");
2098 gl_
->DrawBuffersEXT(count
, bufs
);
2101 void GLES2TraceImplementation::DiscardBackbufferCHROMIUM() {
2102 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DiscardBackbufferCHROMIUM");
2103 gl_
->DiscardBackbufferCHROMIUM();
2106 void GLES2TraceImplementation::ScheduleOverlayPlaneCHROMIUM(
2107 GLint plane_z_order
,
2108 GLenum plane_transform
,
2109 GLuint overlay_texture_id
,
2113 GLint bounds_height
,
2117 GLfloat uv_height
) {
2118 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2119 "GLES2Trace::ScheduleOverlayPlaneCHROMIUM");
2120 gl_
->ScheduleOverlayPlaneCHROMIUM(
2121 plane_z_order
, plane_transform
, overlay_texture_id
, bounds_x
, bounds_y
,
2122 bounds_width
, bounds_height
, uv_x
, uv_y
, uv_width
, uv_height
);
2125 void GLES2TraceImplementation::SwapInterval(GLint interval
) {
2126 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SwapInterval");
2127 gl_
->SwapInterval(interval
);
2130 void GLES2TraceImplementation::MatrixLoadfCHROMIUM(GLenum matrixMode
,
2132 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MatrixLoadfCHROMIUM");
2133 gl_
->MatrixLoadfCHROMIUM(matrixMode
, m
);
2136 void GLES2TraceImplementation::MatrixLoadIdentityCHROMIUM(GLenum matrixMode
) {
2137 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2138 "GLES2Trace::MatrixLoadIdentityCHROMIUM");
2139 gl_
->MatrixLoadIdentityCHROMIUM(matrixMode
);
2142 void GLES2TraceImplementation::BlendBarrierKHR() {
2143 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendBarrierKHR");
2144 gl_
->BlendBarrierKHR();
2147 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_