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::GetTexParameterfv(GLenum target
,
678 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetTexParameterfv");
679 gl_
->GetTexParameterfv(target
, pname
, params
);
682 void GLES2TraceImplementation::GetTexParameteriv(GLenum target
,
685 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetTexParameteriv");
686 gl_
->GetTexParameteriv(target
, pname
, params
);
689 void GLES2TraceImplementation::GetTransformFeedbackVarying(GLuint program
,
696 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
697 "GLES2Trace::GetTransformFeedbackVarying");
698 gl_
->GetTransformFeedbackVarying(program
, index
, bufsize
, length
, size
, type
,
702 GLuint
GLES2TraceImplementation::GetUniformBlockIndex(GLuint program
,
704 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformBlockIndex");
705 return gl_
->GetUniformBlockIndex(program
, name
);
708 void GLES2TraceImplementation::GetUniformfv(GLuint program
,
711 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformfv");
712 gl_
->GetUniformfv(program
, location
, params
);
715 void GLES2TraceImplementation::GetUniformiv(GLuint program
,
718 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformiv");
719 gl_
->GetUniformiv(program
, location
, params
);
722 void GLES2TraceImplementation::GetUniformIndices(GLuint program
,
724 const char* const* names
,
726 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformIndices");
727 gl_
->GetUniformIndices(program
, count
, names
, indices
);
730 GLint
GLES2TraceImplementation::GetUniformLocation(GLuint program
,
732 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformLocation");
733 return gl_
->GetUniformLocation(program
, name
);
736 void GLES2TraceImplementation::GetVertexAttribfv(GLuint index
,
739 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribfv");
740 gl_
->GetVertexAttribfv(index
, pname
, params
);
743 void GLES2TraceImplementation::GetVertexAttribiv(GLuint index
,
746 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribiv");
747 gl_
->GetVertexAttribiv(index
, pname
, params
);
750 void GLES2TraceImplementation::GetVertexAttribPointerv(GLuint index
,
753 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribPointerv");
754 gl_
->GetVertexAttribPointerv(index
, pname
, pointer
);
757 void GLES2TraceImplementation::Hint(GLenum target
, GLenum mode
) {
758 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Hint");
759 gl_
->Hint(target
, mode
);
762 void GLES2TraceImplementation::InvalidateFramebuffer(
765 const GLenum
* attachments
) {
766 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InvalidateFramebuffer");
767 gl_
->InvalidateFramebuffer(target
, count
, attachments
);
770 void GLES2TraceImplementation::InvalidateSubFramebuffer(
773 const GLenum
* attachments
,
778 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InvalidateSubFramebuffer");
779 gl_
->InvalidateSubFramebuffer(target
, count
, attachments
, x
, y
, width
,
783 GLboolean
GLES2TraceImplementation::IsBuffer(GLuint buffer
) {
784 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsBuffer");
785 return gl_
->IsBuffer(buffer
);
788 GLboolean
GLES2TraceImplementation::IsEnabled(GLenum cap
) {
789 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsEnabled");
790 return gl_
->IsEnabled(cap
);
793 GLboolean
GLES2TraceImplementation::IsFramebuffer(GLuint framebuffer
) {
794 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsFramebuffer");
795 return gl_
->IsFramebuffer(framebuffer
);
798 GLboolean
GLES2TraceImplementation::IsProgram(GLuint program
) {
799 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsProgram");
800 return gl_
->IsProgram(program
);
803 GLboolean
GLES2TraceImplementation::IsRenderbuffer(GLuint renderbuffer
) {
804 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsRenderbuffer");
805 return gl_
->IsRenderbuffer(renderbuffer
);
808 GLboolean
GLES2TraceImplementation::IsSampler(GLuint sampler
) {
809 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsSampler");
810 return gl_
->IsSampler(sampler
);
813 GLboolean
GLES2TraceImplementation::IsShader(GLuint shader
) {
814 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsShader");
815 return gl_
->IsShader(shader
);
818 GLboolean
GLES2TraceImplementation::IsSync(GLsync sync
) {
819 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsSync");
820 return gl_
->IsSync(sync
);
823 GLboolean
GLES2TraceImplementation::IsTexture(GLuint texture
) {
824 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsTexture");
825 return gl_
->IsTexture(texture
);
828 GLboolean
GLES2TraceImplementation::IsTransformFeedback(
829 GLuint transformfeedback
) {
830 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsTransformFeedback");
831 return gl_
->IsTransformFeedback(transformfeedback
);
834 void GLES2TraceImplementation::LineWidth(GLfloat width
) {
835 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LineWidth");
836 gl_
->LineWidth(width
);
839 void GLES2TraceImplementation::LinkProgram(GLuint program
) {
840 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LinkProgram");
841 gl_
->LinkProgram(program
);
844 void GLES2TraceImplementation::PauseTransformFeedback() {
845 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PauseTransformFeedback");
846 gl_
->PauseTransformFeedback();
849 void GLES2TraceImplementation::PixelStorei(GLenum pname
, GLint param
) {
850 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PixelStorei");
851 gl_
->PixelStorei(pname
, param
);
854 void GLES2TraceImplementation::PolygonOffset(GLfloat factor
, GLfloat units
) {
855 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PolygonOffset");
856 gl_
->PolygonOffset(factor
, units
);
859 void GLES2TraceImplementation::ReadBuffer(GLenum src
) {
860 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReadBuffer");
861 gl_
->ReadBuffer(src
);
864 void GLES2TraceImplementation::ReadPixels(GLint x
,
871 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReadPixels");
872 gl_
->ReadPixels(x
, y
, width
, height
, format
, type
, pixels
);
875 void GLES2TraceImplementation::ReleaseShaderCompiler() {
876 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReleaseShaderCompiler");
877 gl_
->ReleaseShaderCompiler();
880 void GLES2TraceImplementation::RenderbufferStorage(GLenum target
,
881 GLenum internalformat
,
884 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RenderbufferStorage");
885 gl_
->RenderbufferStorage(target
, internalformat
, width
, height
);
888 void GLES2TraceImplementation::ResumeTransformFeedback() {
889 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ResumeTransformFeedback");
890 gl_
->ResumeTransformFeedback();
893 void GLES2TraceImplementation::SampleCoverage(GLclampf value
,
895 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SampleCoverage");
896 gl_
->SampleCoverage(value
, invert
);
899 void GLES2TraceImplementation::SamplerParameterf(GLuint sampler
,
902 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameterf");
903 gl_
->SamplerParameterf(sampler
, pname
, param
);
906 void GLES2TraceImplementation::SamplerParameterfv(GLuint sampler
,
908 const GLfloat
* params
) {
909 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameterfv");
910 gl_
->SamplerParameterfv(sampler
, pname
, params
);
913 void GLES2TraceImplementation::SamplerParameteri(GLuint sampler
,
916 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameteri");
917 gl_
->SamplerParameteri(sampler
, pname
, param
);
920 void GLES2TraceImplementation::SamplerParameteriv(GLuint sampler
,
922 const GLint
* params
) {
923 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameteriv");
924 gl_
->SamplerParameteriv(sampler
, pname
, params
);
927 void GLES2TraceImplementation::Scissor(GLint x
,
931 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Scissor");
932 gl_
->Scissor(x
, y
, width
, height
);
935 void GLES2TraceImplementation::ShaderBinary(GLsizei n
,
936 const GLuint
* shaders
,
940 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShaderBinary");
941 gl_
->ShaderBinary(n
, shaders
, binaryformat
, binary
, length
);
944 void GLES2TraceImplementation::ShaderSource(GLuint shader
,
946 const GLchar
* const* str
,
947 const GLint
* length
) {
948 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShaderSource");
949 gl_
->ShaderSource(shader
, count
, str
, length
);
952 void GLES2TraceImplementation::ShallowFinishCHROMIUM() {
953 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShallowFinishCHROMIUM");
954 gl_
->ShallowFinishCHROMIUM();
957 void GLES2TraceImplementation::ShallowFlushCHROMIUM() {
958 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShallowFlushCHROMIUM");
959 gl_
->ShallowFlushCHROMIUM();
962 void GLES2TraceImplementation::OrderingBarrierCHROMIUM() {
963 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::OrderingBarrierCHROMIUM");
964 gl_
->OrderingBarrierCHROMIUM();
967 void GLES2TraceImplementation::StencilFunc(GLenum func
,
970 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFunc");
971 gl_
->StencilFunc(func
, ref
, mask
);
974 void GLES2TraceImplementation::StencilFuncSeparate(GLenum face
,
978 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFuncSeparate");
979 gl_
->StencilFuncSeparate(face
, func
, ref
, mask
);
982 void GLES2TraceImplementation::StencilMask(GLuint mask
) {
983 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilMask");
984 gl_
->StencilMask(mask
);
987 void GLES2TraceImplementation::StencilMaskSeparate(GLenum face
, GLuint mask
) {
988 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilMaskSeparate");
989 gl_
->StencilMaskSeparate(face
, mask
);
992 void GLES2TraceImplementation::StencilOp(GLenum fail
,
995 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilOp");
996 gl_
->StencilOp(fail
, zfail
, zpass
);
999 void GLES2TraceImplementation::StencilOpSeparate(GLenum face
,
1003 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilOpSeparate");
1004 gl_
->StencilOpSeparate(face
, fail
, zfail
, zpass
);
1007 void GLES2TraceImplementation::TexImage2D(GLenum target
,
1009 GLint internalformat
,
1015 const void* pixels
) {
1016 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImage2D");
1017 gl_
->TexImage2D(target
, level
, internalformat
, width
, height
, border
, format
,
1021 void GLES2TraceImplementation::TexImage3D(GLenum target
,
1023 GLint internalformat
,
1030 const void* pixels
) {
1031 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImage3D");
1032 gl_
->TexImage3D(target
, level
, internalformat
, width
, height
, depth
, border
,
1033 format
, type
, pixels
);
1036 void GLES2TraceImplementation::TexParameterf(GLenum target
,
1039 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterf");
1040 gl_
->TexParameterf(target
, pname
, param
);
1043 void GLES2TraceImplementation::TexParameterfv(GLenum target
,
1045 const GLfloat
* params
) {
1046 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterfv");
1047 gl_
->TexParameterfv(target
, pname
, params
);
1050 void GLES2TraceImplementation::TexParameteri(GLenum target
,
1053 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameteri");
1054 gl_
->TexParameteri(target
, pname
, param
);
1057 void GLES2TraceImplementation::TexParameteriv(GLenum target
,
1059 const GLint
* params
) {
1060 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameteriv");
1061 gl_
->TexParameteriv(target
, pname
, params
);
1064 void GLES2TraceImplementation::TexStorage3D(GLenum target
,
1066 GLenum internalFormat
,
1070 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexStorage3D");
1071 gl_
->TexStorage3D(target
, levels
, internalFormat
, width
, height
, depth
);
1074 void GLES2TraceImplementation::TexSubImage2D(GLenum target
,
1082 const void* pixels
) {
1083 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage2D");
1084 gl_
->TexSubImage2D(target
, level
, xoffset
, yoffset
, width
, height
, format
,
1088 void GLES2TraceImplementation::TexSubImage3D(GLenum target
,
1098 const void* pixels
) {
1099 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage3D");
1100 gl_
->TexSubImage3D(target
, level
, xoffset
, yoffset
, zoffset
, width
, height
,
1101 depth
, format
, type
, pixels
);
1104 void GLES2TraceImplementation::TransformFeedbackVaryings(
1107 const char* const* varyings
,
1108 GLenum buffermode
) {
1109 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TransformFeedbackVaryings");
1110 gl_
->TransformFeedbackVaryings(program
, count
, varyings
, buffermode
);
1113 void GLES2TraceImplementation::Uniform1f(GLint location
, GLfloat x
) {
1114 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1f");
1115 gl_
->Uniform1f(location
, x
);
1118 void GLES2TraceImplementation::Uniform1fv(GLint location
,
1121 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1fv");
1122 gl_
->Uniform1fv(location
, count
, v
);
1125 void GLES2TraceImplementation::Uniform1i(GLint location
, GLint x
) {
1126 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1i");
1127 gl_
->Uniform1i(location
, x
);
1130 void GLES2TraceImplementation::Uniform1iv(GLint location
,
1133 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1iv");
1134 gl_
->Uniform1iv(location
, count
, v
);
1137 void GLES2TraceImplementation::Uniform1ui(GLint location
, GLuint x
) {
1138 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1ui");
1139 gl_
->Uniform1ui(location
, x
);
1142 void GLES2TraceImplementation::Uniform1uiv(GLint location
,
1145 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1uiv");
1146 gl_
->Uniform1uiv(location
, count
, v
);
1149 void GLES2TraceImplementation::Uniform2f(GLint location
, GLfloat x
, GLfloat y
) {
1150 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2f");
1151 gl_
->Uniform2f(location
, x
, y
);
1154 void GLES2TraceImplementation::Uniform2fv(GLint location
,
1157 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2fv");
1158 gl_
->Uniform2fv(location
, count
, v
);
1161 void GLES2TraceImplementation::Uniform2i(GLint location
, GLint x
, GLint y
) {
1162 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2i");
1163 gl_
->Uniform2i(location
, x
, y
);
1166 void GLES2TraceImplementation::Uniform2iv(GLint location
,
1169 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2iv");
1170 gl_
->Uniform2iv(location
, count
, v
);
1173 void GLES2TraceImplementation::Uniform2ui(GLint location
, GLuint x
, GLuint y
) {
1174 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2ui");
1175 gl_
->Uniform2ui(location
, x
, y
);
1178 void GLES2TraceImplementation::Uniform2uiv(GLint location
,
1181 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2uiv");
1182 gl_
->Uniform2uiv(location
, count
, v
);
1185 void GLES2TraceImplementation::Uniform3f(GLint location
,
1189 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3f");
1190 gl_
->Uniform3f(location
, x
, y
, z
);
1193 void GLES2TraceImplementation::Uniform3fv(GLint location
,
1196 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3fv");
1197 gl_
->Uniform3fv(location
, count
, v
);
1200 void GLES2TraceImplementation::Uniform3i(GLint location
,
1204 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3i");
1205 gl_
->Uniform3i(location
, x
, y
, z
);
1208 void GLES2TraceImplementation::Uniform3iv(GLint location
,
1211 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3iv");
1212 gl_
->Uniform3iv(location
, count
, v
);
1215 void GLES2TraceImplementation::Uniform3ui(GLint location
,
1219 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3ui");
1220 gl_
->Uniform3ui(location
, x
, y
, z
);
1223 void GLES2TraceImplementation::Uniform3uiv(GLint location
,
1226 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3uiv");
1227 gl_
->Uniform3uiv(location
, count
, v
);
1230 void GLES2TraceImplementation::Uniform4f(GLint location
,
1235 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4f");
1236 gl_
->Uniform4f(location
, x
, y
, z
, w
);
1239 void GLES2TraceImplementation::Uniform4fv(GLint location
,
1242 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4fv");
1243 gl_
->Uniform4fv(location
, count
, v
);
1246 void GLES2TraceImplementation::Uniform4i(GLint location
,
1251 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4i");
1252 gl_
->Uniform4i(location
, x
, y
, z
, w
);
1255 void GLES2TraceImplementation::Uniform4iv(GLint location
,
1258 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4iv");
1259 gl_
->Uniform4iv(location
, count
, v
);
1262 void GLES2TraceImplementation::Uniform4ui(GLint location
,
1267 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4ui");
1268 gl_
->Uniform4ui(location
, x
, y
, z
, w
);
1271 void GLES2TraceImplementation::Uniform4uiv(GLint location
,
1274 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4uiv");
1275 gl_
->Uniform4uiv(location
, count
, v
);
1278 void GLES2TraceImplementation::UniformBlockBinding(GLuint program
,
1281 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformBlockBinding");
1282 gl_
->UniformBlockBinding(program
, index
, binding
);
1285 void GLES2TraceImplementation::UniformMatrix2fv(GLint location
,
1287 GLboolean transpose
,
1288 const GLfloat
* value
) {
1289 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2fv");
1290 gl_
->UniformMatrix2fv(location
, count
, transpose
, value
);
1293 void GLES2TraceImplementation::UniformMatrix2x3fv(GLint location
,
1295 GLboolean transpose
,
1296 const GLfloat
* value
) {
1297 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2x3fv");
1298 gl_
->UniformMatrix2x3fv(location
, count
, transpose
, value
);
1301 void GLES2TraceImplementation::UniformMatrix2x4fv(GLint location
,
1303 GLboolean transpose
,
1304 const GLfloat
* value
) {
1305 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2x4fv");
1306 gl_
->UniformMatrix2x4fv(location
, count
, transpose
, value
);
1309 void GLES2TraceImplementation::UniformMatrix3fv(GLint location
,
1311 GLboolean transpose
,
1312 const GLfloat
* value
) {
1313 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3fv");
1314 gl_
->UniformMatrix3fv(location
, count
, transpose
, value
);
1317 void GLES2TraceImplementation::UniformMatrix3x2fv(GLint location
,
1319 GLboolean transpose
,
1320 const GLfloat
* value
) {
1321 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3x2fv");
1322 gl_
->UniformMatrix3x2fv(location
, count
, transpose
, value
);
1325 void GLES2TraceImplementation::UniformMatrix3x4fv(GLint location
,
1327 GLboolean transpose
,
1328 const GLfloat
* value
) {
1329 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3x4fv");
1330 gl_
->UniformMatrix3x4fv(location
, count
, transpose
, value
);
1333 void GLES2TraceImplementation::UniformMatrix4fv(GLint location
,
1335 GLboolean transpose
,
1336 const GLfloat
* value
) {
1337 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4fv");
1338 gl_
->UniformMatrix4fv(location
, count
, transpose
, value
);
1341 void GLES2TraceImplementation::UniformMatrix4x2fv(GLint location
,
1343 GLboolean transpose
,
1344 const GLfloat
* value
) {
1345 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4x2fv");
1346 gl_
->UniformMatrix4x2fv(location
, count
, transpose
, value
);
1349 void GLES2TraceImplementation::UniformMatrix4x3fv(GLint location
,
1351 GLboolean transpose
,
1352 const GLfloat
* value
) {
1353 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4x3fv");
1354 gl_
->UniformMatrix4x3fv(location
, count
, transpose
, value
);
1357 void GLES2TraceImplementation::UseProgram(GLuint program
) {
1358 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UseProgram");
1359 gl_
->UseProgram(program
);
1362 void GLES2TraceImplementation::ValidateProgram(GLuint program
) {
1363 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ValidateProgram");
1364 gl_
->ValidateProgram(program
);
1367 void GLES2TraceImplementation::VertexAttrib1f(GLuint indx
, GLfloat x
) {
1368 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib1f");
1369 gl_
->VertexAttrib1f(indx
, x
);
1372 void GLES2TraceImplementation::VertexAttrib1fv(GLuint indx
,
1373 const GLfloat
* values
) {
1374 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib1fv");
1375 gl_
->VertexAttrib1fv(indx
, values
);
1378 void GLES2TraceImplementation::VertexAttrib2f(GLuint indx
,
1381 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib2f");
1382 gl_
->VertexAttrib2f(indx
, x
, y
);
1385 void GLES2TraceImplementation::VertexAttrib2fv(GLuint indx
,
1386 const GLfloat
* values
) {
1387 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib2fv");
1388 gl_
->VertexAttrib2fv(indx
, values
);
1391 void GLES2TraceImplementation::VertexAttrib3f(GLuint indx
,
1395 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib3f");
1396 gl_
->VertexAttrib3f(indx
, x
, y
, z
);
1399 void GLES2TraceImplementation::VertexAttrib3fv(GLuint indx
,
1400 const GLfloat
* values
) {
1401 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib3fv");
1402 gl_
->VertexAttrib3fv(indx
, values
);
1405 void GLES2TraceImplementation::VertexAttrib4f(GLuint indx
,
1410 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib4f");
1411 gl_
->VertexAttrib4f(indx
, x
, y
, z
, w
);
1414 void GLES2TraceImplementation::VertexAttrib4fv(GLuint indx
,
1415 const GLfloat
* values
) {
1416 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib4fv");
1417 gl_
->VertexAttrib4fv(indx
, values
);
1420 void GLES2TraceImplementation::VertexAttribI4i(GLuint indx
,
1425 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4i");
1426 gl_
->VertexAttribI4i(indx
, x
, y
, z
, w
);
1429 void GLES2TraceImplementation::VertexAttribI4iv(GLuint indx
,
1430 const GLint
* values
) {
1431 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4iv");
1432 gl_
->VertexAttribI4iv(indx
, values
);
1435 void GLES2TraceImplementation::VertexAttribI4ui(GLuint indx
,
1440 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4ui");
1441 gl_
->VertexAttribI4ui(indx
, x
, y
, z
, w
);
1444 void GLES2TraceImplementation::VertexAttribI4uiv(GLuint indx
,
1445 const GLuint
* values
) {
1446 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4uiv");
1447 gl_
->VertexAttribI4uiv(indx
, values
);
1450 void GLES2TraceImplementation::VertexAttribIPointer(GLuint indx
,
1455 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribIPointer");
1456 gl_
->VertexAttribIPointer(indx
, size
, type
, stride
, ptr
);
1459 void GLES2TraceImplementation::VertexAttribPointer(GLuint indx
,
1462 GLboolean normalized
,
1465 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribPointer");
1466 gl_
->VertexAttribPointer(indx
, size
, type
, normalized
, stride
, ptr
);
1469 void GLES2TraceImplementation::Viewport(GLint x
,
1473 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Viewport");
1474 gl_
->Viewport(x
, y
, width
, height
);
1477 void GLES2TraceImplementation::WaitSync(GLsync sync
,
1480 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::WaitSync");
1481 gl_
->WaitSync(sync
, flags
, timeout
);
1484 void GLES2TraceImplementation::BlitFramebufferCHROMIUM(GLint srcX0
,
1494 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlitFramebufferCHROMIUM");
1495 gl_
->BlitFramebufferCHROMIUM(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
, dstX1
,
1496 dstY1
, mask
, filter
);
1499 void GLES2TraceImplementation::RenderbufferStorageMultisampleCHROMIUM(
1502 GLenum internalformat
,
1505 TRACE_EVENT_BINARY_EFFICIENT0(
1506 "gpu", "GLES2Trace::RenderbufferStorageMultisampleCHROMIUM");
1507 gl_
->RenderbufferStorageMultisampleCHROMIUM(target
, samples
, internalformat
,
1511 void GLES2TraceImplementation::RenderbufferStorageMultisampleEXT(
1514 GLenum internalformat
,
1517 TRACE_EVENT_BINARY_EFFICIENT0(
1518 "gpu", "GLES2Trace::RenderbufferStorageMultisampleEXT");
1519 gl_
->RenderbufferStorageMultisampleEXT(target
, samples
, internalformat
, width
,
1523 void GLES2TraceImplementation::FramebufferTexture2DMultisampleEXT(
1530 TRACE_EVENT_BINARY_EFFICIENT0(
1531 "gpu", "GLES2Trace::FramebufferTexture2DMultisampleEXT");
1532 gl_
->FramebufferTexture2DMultisampleEXT(target
, attachment
, textarget
,
1533 texture
, level
, samples
);
1536 void GLES2TraceImplementation::TexStorage2DEXT(GLenum target
,
1538 GLenum internalFormat
,
1541 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexStorage2DEXT");
1542 gl_
->TexStorage2DEXT(target
, levels
, internalFormat
, width
, height
);
1545 void GLES2TraceImplementation::GenQueriesEXT(GLsizei n
, GLuint
* queries
) {
1546 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenQueriesEXT");
1547 gl_
->GenQueriesEXT(n
, queries
);
1550 void GLES2TraceImplementation::DeleteQueriesEXT(GLsizei n
,
1551 const GLuint
* queries
) {
1552 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteQueriesEXT");
1553 gl_
->DeleteQueriesEXT(n
, queries
);
1556 GLboolean
GLES2TraceImplementation::IsQueryEXT(GLuint id
) {
1557 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsQueryEXT");
1558 return gl_
->IsQueryEXT(id
);
1561 void GLES2TraceImplementation::BeginQueryEXT(GLenum target
, GLuint id
) {
1562 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BeginQueryEXT");
1563 gl_
->BeginQueryEXT(target
, id
);
1566 void GLES2TraceImplementation::BeginTransformFeedback(GLenum primitivemode
) {
1567 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BeginTransformFeedback");
1568 gl_
->BeginTransformFeedback(primitivemode
);
1571 void GLES2TraceImplementation::EndQueryEXT(GLenum target
) {
1572 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EndQueryEXT");
1573 gl_
->EndQueryEXT(target
);
1576 void GLES2TraceImplementation::EndTransformFeedback() {
1577 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EndTransformFeedback");
1578 gl_
->EndTransformFeedback();
1581 void GLES2TraceImplementation::GetQueryivEXT(GLenum target
,
1584 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryivEXT");
1585 gl_
->GetQueryivEXT(target
, pname
, params
);
1588 void GLES2TraceImplementation::GetQueryObjectuivEXT(GLuint id
,
1591 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryObjectuivEXT");
1592 gl_
->GetQueryObjectuivEXT(id
, pname
, params
);
1595 void GLES2TraceImplementation::InsertEventMarkerEXT(GLsizei length
,
1596 const GLchar
* marker
) {
1597 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InsertEventMarkerEXT");
1598 gl_
->InsertEventMarkerEXT(length
, marker
);
1601 void GLES2TraceImplementation::PushGroupMarkerEXT(GLsizei length
,
1602 const GLchar
* marker
) {
1603 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PushGroupMarkerEXT");
1604 gl_
->PushGroupMarkerEXT(length
, marker
);
1607 void GLES2TraceImplementation::PopGroupMarkerEXT() {
1608 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PopGroupMarkerEXT");
1609 gl_
->PopGroupMarkerEXT();
1612 void GLES2TraceImplementation::GenVertexArraysOES(GLsizei n
, GLuint
* arrays
) {
1613 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenVertexArraysOES");
1614 gl_
->GenVertexArraysOES(n
, arrays
);
1617 void GLES2TraceImplementation::DeleteVertexArraysOES(GLsizei n
,
1618 const GLuint
* arrays
) {
1619 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteVertexArraysOES");
1620 gl_
->DeleteVertexArraysOES(n
, arrays
);
1623 GLboolean
GLES2TraceImplementation::IsVertexArrayOES(GLuint array
) {
1624 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsVertexArrayOES");
1625 return gl_
->IsVertexArrayOES(array
);
1628 void GLES2TraceImplementation::BindVertexArrayOES(GLuint array
) {
1629 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindVertexArrayOES");
1630 gl_
->BindVertexArrayOES(array
);
1633 void GLES2TraceImplementation::SwapBuffers() {
1634 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SwapBuffers");
1638 GLuint
GLES2TraceImplementation::GetMaxValueInBufferCHROMIUM(GLuint buffer_id
,
1642 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1643 "GLES2Trace::GetMaxValueInBufferCHROMIUM");
1644 return gl_
->GetMaxValueInBufferCHROMIUM(buffer_id
, count
, type
, offset
);
1647 GLboolean
GLES2TraceImplementation::EnableFeatureCHROMIUM(const char* feature
) {
1648 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EnableFeatureCHROMIUM");
1649 return gl_
->EnableFeatureCHROMIUM(feature
);
1652 void* GLES2TraceImplementation::MapBufferCHROMIUM(GLuint target
,
1654 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferCHROMIUM");
1655 return gl_
->MapBufferCHROMIUM(target
, access
);
1658 GLboolean
GLES2TraceImplementation::UnmapBufferCHROMIUM(GLuint target
) {
1659 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UnmapBufferCHROMIUM");
1660 return gl_
->UnmapBufferCHROMIUM(target
);
1663 void* GLES2TraceImplementation::MapBufferSubDataCHROMIUM(GLuint target
,
1667 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferSubDataCHROMIUM");
1668 return gl_
->MapBufferSubDataCHROMIUM(target
, offset
, size
, access
);
1671 void GLES2TraceImplementation::UnmapBufferSubDataCHROMIUM(const void* mem
) {
1672 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1673 "GLES2Trace::UnmapBufferSubDataCHROMIUM");
1674 gl_
->UnmapBufferSubDataCHROMIUM(mem
);
1677 void* GLES2TraceImplementation::MapTexSubImage2DCHROMIUM(GLenum target
,
1686 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapTexSubImage2DCHROMIUM");
1687 return gl_
->MapTexSubImage2DCHROMIUM(target
, level
, xoffset
, yoffset
, width
,
1688 height
, format
, type
, access
);
1691 void GLES2TraceImplementation::UnmapTexSubImage2DCHROMIUM(const void* mem
) {
1692 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1693 "GLES2Trace::UnmapTexSubImage2DCHROMIUM");
1694 gl_
->UnmapTexSubImage2DCHROMIUM(mem
);
1697 void GLES2TraceImplementation::ResizeCHROMIUM(GLuint width
,
1699 GLfloat scale_factor
) {
1700 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ResizeCHROMIUM");
1701 gl_
->ResizeCHROMIUM(width
, height
, scale_factor
);
1704 const GLchar
* GLES2TraceImplementation::GetRequestableExtensionsCHROMIUM() {
1705 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1706 "GLES2Trace::GetRequestableExtensionsCHROMIUM");
1707 return gl_
->GetRequestableExtensionsCHROMIUM();
1710 void GLES2TraceImplementation::RequestExtensionCHROMIUM(const char* extension
) {
1711 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RequestExtensionCHROMIUM");
1712 gl_
->RequestExtensionCHROMIUM(extension
);
1715 void GLES2TraceImplementation::RateLimitOffscreenContextCHROMIUM() {
1716 TRACE_EVENT_BINARY_EFFICIENT0(
1717 "gpu", "GLES2Trace::RateLimitOffscreenContextCHROMIUM");
1718 gl_
->RateLimitOffscreenContextCHROMIUM();
1721 void GLES2TraceImplementation::GetProgramInfoCHROMIUM(GLuint program
,
1725 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramInfoCHROMIUM");
1726 gl_
->GetProgramInfoCHROMIUM(program
, bufsize
, size
, info
);
1729 void GLES2TraceImplementation::GetUniformBlocksCHROMIUM(GLuint program
,
1733 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformBlocksCHROMIUM");
1734 gl_
->GetUniformBlocksCHROMIUM(program
, bufsize
, size
, info
);
1737 void GLES2TraceImplementation::GetTransformFeedbackVaryingsCHROMIUM(
1742 TRACE_EVENT_BINARY_EFFICIENT0(
1743 "gpu", "GLES2Trace::GetTransformFeedbackVaryingsCHROMIUM");
1744 gl_
->GetTransformFeedbackVaryingsCHROMIUM(program
, bufsize
, size
, info
);
1747 void GLES2TraceImplementation::GetUniformsES3CHROMIUM(GLuint program
,
1751 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformsES3CHROMIUM");
1752 gl_
->GetUniformsES3CHROMIUM(program
, bufsize
, size
, info
);
1755 GLuint
GLES2TraceImplementation::CreateStreamTextureCHROMIUM(GLuint texture
) {
1756 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1757 "GLES2Trace::CreateStreamTextureCHROMIUM");
1758 return gl_
->CreateStreamTextureCHROMIUM(texture
);
1761 GLuint
GLES2TraceImplementation::CreateImageCHROMIUM(ClientBuffer buffer
,
1764 GLenum internalformat
) {
1765 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateImageCHROMIUM");
1766 return gl_
->CreateImageCHROMIUM(buffer
, width
, height
, internalformat
);
1769 void GLES2TraceImplementation::DestroyImageCHROMIUM(GLuint image_id
) {
1770 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DestroyImageCHROMIUM");
1771 gl_
->DestroyImageCHROMIUM(image_id
);
1774 GLuint
GLES2TraceImplementation::CreateGpuMemoryBufferImageCHROMIUM(
1777 GLenum internalformat
,
1779 TRACE_EVENT_BINARY_EFFICIENT0(
1780 "gpu", "GLES2Trace::CreateGpuMemoryBufferImageCHROMIUM");
1781 return gl_
->CreateGpuMemoryBufferImageCHROMIUM(width
, height
, internalformat
,
1785 void GLES2TraceImplementation::GetTranslatedShaderSourceANGLE(GLuint shader
,
1789 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1790 "GLES2Trace::GetTranslatedShaderSourceANGLE");
1791 gl_
->GetTranslatedShaderSourceANGLE(shader
, bufsize
, length
, source
);
1794 void GLES2TraceImplementation::PostSubBufferCHROMIUM(GLint x
,
1798 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PostSubBufferCHROMIUM");
1799 gl_
->PostSubBufferCHROMIUM(x
, y
, width
, height
);
1802 void GLES2TraceImplementation::TexImageIOSurface2DCHROMIUM(GLenum target
,
1807 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1808 "GLES2Trace::TexImageIOSurface2DCHROMIUM");
1809 gl_
->TexImageIOSurface2DCHROMIUM(target
, width
, height
, ioSurfaceId
, plane
);
1812 void GLES2TraceImplementation::CopyTextureCHROMIUM(GLenum target
,
1816 GLint internalformat
,
1818 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTextureCHROMIUM");
1819 gl_
->CopyTextureCHROMIUM(target
, source_id
, dest_id
, level
, internalformat
,
1823 void GLES2TraceImplementation::DrawArraysInstancedANGLE(GLenum mode
,
1826 GLsizei primcount
) {
1827 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawArraysInstancedANGLE");
1828 gl_
->DrawArraysInstancedANGLE(mode
, first
, count
, primcount
);
1831 void GLES2TraceImplementation::DrawElementsInstancedANGLE(GLenum mode
,
1834 const void* indices
,
1835 GLsizei primcount
) {
1836 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1837 "GLES2Trace::DrawElementsInstancedANGLE");
1838 gl_
->DrawElementsInstancedANGLE(mode
, count
, type
, indices
, primcount
);
1841 void GLES2TraceImplementation::VertexAttribDivisorANGLE(GLuint index
,
1843 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribDivisorANGLE");
1844 gl_
->VertexAttribDivisorANGLE(index
, divisor
);
1847 void GLES2TraceImplementation::GenMailboxCHROMIUM(GLbyte
* mailbox
) {
1848 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenMailboxCHROMIUM");
1849 gl_
->GenMailboxCHROMIUM(mailbox
);
1852 void GLES2TraceImplementation::ProduceTextureCHROMIUM(GLenum target
,
1853 const GLbyte
* mailbox
) {
1854 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ProduceTextureCHROMIUM");
1855 gl_
->ProduceTextureCHROMIUM(target
, mailbox
);
1858 void GLES2TraceImplementation::ProduceTextureDirectCHROMIUM(
1861 const GLbyte
* mailbox
) {
1862 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1863 "GLES2Trace::ProduceTextureDirectCHROMIUM");
1864 gl_
->ProduceTextureDirectCHROMIUM(texture
, target
, mailbox
);
1867 void GLES2TraceImplementation::ConsumeTextureCHROMIUM(GLenum target
,
1868 const GLbyte
* mailbox
) {
1869 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ConsumeTextureCHROMIUM");
1870 gl_
->ConsumeTextureCHROMIUM(target
, mailbox
);
1873 GLuint
GLES2TraceImplementation::CreateAndConsumeTextureCHROMIUM(
1875 const GLbyte
* mailbox
) {
1876 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1877 "GLES2Trace::CreateAndConsumeTextureCHROMIUM");
1878 return gl_
->CreateAndConsumeTextureCHROMIUM(target
, mailbox
);
1881 void GLES2TraceImplementation::BindUniformLocationCHROMIUM(GLuint program
,
1884 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1885 "GLES2Trace::BindUniformLocationCHROMIUM");
1886 gl_
->BindUniformLocationCHROMIUM(program
, location
, name
);
1889 void GLES2TraceImplementation::GenValuebuffersCHROMIUM(GLsizei n
,
1891 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenValuebuffersCHROMIUM");
1892 gl_
->GenValuebuffersCHROMIUM(n
, buffers
);
1895 void GLES2TraceImplementation::DeleteValuebuffersCHROMIUM(
1897 const GLuint
* valuebuffers
) {
1898 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1899 "GLES2Trace::DeleteValuebuffersCHROMIUM");
1900 gl_
->DeleteValuebuffersCHROMIUM(n
, valuebuffers
);
1903 GLboolean
GLES2TraceImplementation::IsValuebufferCHROMIUM(GLuint valuebuffer
) {
1904 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsValuebufferCHROMIUM");
1905 return gl_
->IsValuebufferCHROMIUM(valuebuffer
);
1908 void GLES2TraceImplementation::BindValuebufferCHROMIUM(GLenum target
,
1909 GLuint valuebuffer
) {
1910 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindValuebufferCHROMIUM");
1911 gl_
->BindValuebufferCHROMIUM(target
, valuebuffer
);
1914 void GLES2TraceImplementation::SubscribeValueCHROMIUM(GLenum target
,
1915 GLenum subscription
) {
1916 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SubscribeValueCHROMIUM");
1917 gl_
->SubscribeValueCHROMIUM(target
, subscription
);
1920 void GLES2TraceImplementation::PopulateSubscribedValuesCHROMIUM(GLenum target
) {
1921 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1922 "GLES2Trace::PopulateSubscribedValuesCHROMIUM");
1923 gl_
->PopulateSubscribedValuesCHROMIUM(target
);
1926 void GLES2TraceImplementation::UniformValuebufferCHROMIUM(GLint location
,
1928 GLenum subscription
) {
1929 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1930 "GLES2Trace::UniformValuebufferCHROMIUM");
1931 gl_
->UniformValuebufferCHROMIUM(location
, target
, subscription
);
1934 void GLES2TraceImplementation::BindTexImage2DCHROMIUM(GLenum target
,
1936 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindTexImage2DCHROMIUM");
1937 gl_
->BindTexImage2DCHROMIUM(target
, imageId
);
1940 void GLES2TraceImplementation::ReleaseTexImage2DCHROMIUM(GLenum target
,
1942 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReleaseTexImage2DCHROMIUM");
1943 gl_
->ReleaseTexImage2DCHROMIUM(target
, imageId
);
1946 void GLES2TraceImplementation::TraceBeginCHROMIUM(const char* category_name
,
1947 const char* trace_name
) {
1948 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TraceBeginCHROMIUM");
1949 gl_
->TraceBeginCHROMIUM(category_name
, trace_name
);
1952 void GLES2TraceImplementation::TraceEndCHROMIUM() {
1953 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TraceEndCHROMIUM");
1954 gl_
->TraceEndCHROMIUM();
1957 void GLES2TraceImplementation::AsyncTexSubImage2DCHROMIUM(GLenum target
,
1966 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1967 "GLES2Trace::AsyncTexSubImage2DCHROMIUM");
1968 gl_
->AsyncTexSubImage2DCHROMIUM(target
, level
, xoffset
, yoffset
, width
,
1969 height
, format
, type
, data
);
1972 void GLES2TraceImplementation::AsyncTexImage2DCHROMIUM(GLenum target
,
1974 GLenum internalformat
,
1980 const void* pixels
) {
1981 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::AsyncTexImage2DCHROMIUM");
1982 gl_
->AsyncTexImage2DCHROMIUM(target
, level
, internalformat
, width
, height
,
1983 border
, format
, type
, pixels
);
1986 void GLES2TraceImplementation::WaitAsyncTexImage2DCHROMIUM(GLenum target
) {
1987 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1988 "GLES2Trace::WaitAsyncTexImage2DCHROMIUM");
1989 gl_
->WaitAsyncTexImage2DCHROMIUM(target
);
1992 void GLES2TraceImplementation::WaitAllAsyncTexImage2DCHROMIUM() {
1993 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1994 "GLES2Trace::WaitAllAsyncTexImage2DCHROMIUM");
1995 gl_
->WaitAllAsyncTexImage2DCHROMIUM();
1998 void GLES2TraceImplementation::DiscardFramebufferEXT(
2001 const GLenum
* attachments
) {
2002 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DiscardFramebufferEXT");
2003 gl_
->DiscardFramebufferEXT(target
, count
, attachments
);
2006 void GLES2TraceImplementation::LoseContextCHROMIUM(GLenum current
,
2008 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LoseContextCHROMIUM");
2009 gl_
->LoseContextCHROMIUM(current
, other
);
2012 GLuint
GLES2TraceImplementation::InsertSyncPointCHROMIUM() {
2013 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InsertSyncPointCHROMIUM");
2014 return gl_
->InsertSyncPointCHROMIUM();
2017 void GLES2TraceImplementation::WaitSyncPointCHROMIUM(GLuint sync_point
) {
2018 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::WaitSyncPointCHROMIUM");
2019 gl_
->WaitSyncPointCHROMIUM(sync_point
);
2022 void GLES2TraceImplementation::DrawBuffersEXT(GLsizei count
,
2023 const GLenum
* bufs
) {
2024 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawBuffersEXT");
2025 gl_
->DrawBuffersEXT(count
, bufs
);
2028 void GLES2TraceImplementation::DiscardBackbufferCHROMIUM() {
2029 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DiscardBackbufferCHROMIUM");
2030 gl_
->DiscardBackbufferCHROMIUM();
2033 void GLES2TraceImplementation::ScheduleOverlayPlaneCHROMIUM(
2034 GLint plane_z_order
,
2035 GLenum plane_transform
,
2036 GLuint overlay_texture_id
,
2040 GLint bounds_height
,
2044 GLfloat uv_height
) {
2045 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2046 "GLES2Trace::ScheduleOverlayPlaneCHROMIUM");
2047 gl_
->ScheduleOverlayPlaneCHROMIUM(
2048 plane_z_order
, plane_transform
, overlay_texture_id
, bounds_x
, bounds_y
,
2049 bounds_width
, bounds_height
, uv_x
, uv_y
, uv_width
, uv_height
);
2052 void GLES2TraceImplementation::SwapInterval(GLint interval
) {
2053 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SwapInterval");
2054 gl_
->SwapInterval(interval
);
2057 void GLES2TraceImplementation::MatrixLoadfCHROMIUM(GLenum matrixMode
,
2059 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MatrixLoadfCHROMIUM");
2060 gl_
->MatrixLoadfCHROMIUM(matrixMode
, m
);
2063 void GLES2TraceImplementation::MatrixLoadIdentityCHROMIUM(GLenum matrixMode
) {
2064 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2065 "GLES2Trace::MatrixLoadIdentityCHROMIUM");
2066 gl_
->MatrixLoadIdentityCHROMIUM(matrixMode
);
2069 void GLES2TraceImplementation::BlendBarrierKHR() {
2070 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendBarrierKHR");
2071 gl_
->BlendBarrierKHR();
2074 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_