Roll leveldb 3f7758:803d69 (v1.17 -> v1.18)
[chromium-blink-merge.git] / gpu / command_buffer / client / gles2_trace_implementation_impl_autogen.h
blobd7b53b4e0bf057f657777a033328b3125f81417f
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
9 // DO NOT EDIT!
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,
26 GLuint index,
27 const char* name) {
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::BindFramebuffer(GLenum target,
38 GLuint framebuffer) {
39 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindFramebuffer");
40 gl_->BindFramebuffer(target, framebuffer);
43 void GLES2TraceImplementation::BindRenderbuffer(GLenum target,
44 GLuint renderbuffer) {
45 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindRenderbuffer");
46 gl_->BindRenderbuffer(target, renderbuffer);
49 void GLES2TraceImplementation::BindTexture(GLenum target, GLuint texture) {
50 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindTexture");
51 gl_->BindTexture(target, texture);
54 void GLES2TraceImplementation::BlendColor(GLclampf red,
55 GLclampf green,
56 GLclampf blue,
57 GLclampf alpha) {
58 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendColor");
59 gl_->BlendColor(red, green, blue, alpha);
62 void GLES2TraceImplementation::BlendEquation(GLenum mode) {
63 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendEquation");
64 gl_->BlendEquation(mode);
67 void GLES2TraceImplementation::BlendEquationSeparate(GLenum modeRGB,
68 GLenum modeAlpha) {
69 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendEquationSeparate");
70 gl_->BlendEquationSeparate(modeRGB, modeAlpha);
73 void GLES2TraceImplementation::BlendFunc(GLenum sfactor, GLenum dfactor) {
74 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendFunc");
75 gl_->BlendFunc(sfactor, dfactor);
78 void GLES2TraceImplementation::BlendFuncSeparate(GLenum srcRGB,
79 GLenum dstRGB,
80 GLenum srcAlpha,
81 GLenum dstAlpha) {
82 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendFuncSeparate");
83 gl_->BlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
86 void GLES2TraceImplementation::BufferData(GLenum target,
87 GLsizeiptr size,
88 const void* data,
89 GLenum usage) {
90 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BufferData");
91 gl_->BufferData(target, size, data, usage);
94 void GLES2TraceImplementation::BufferSubData(GLenum target,
95 GLintptr offset,
96 GLsizeiptr size,
97 const void* data) {
98 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BufferSubData");
99 gl_->BufferSubData(target, offset, size, data);
102 GLenum GLES2TraceImplementation::CheckFramebufferStatus(GLenum target) {
103 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CheckFramebufferStatus");
104 return gl_->CheckFramebufferStatus(target);
107 void GLES2TraceImplementation::Clear(GLbitfield mask) {
108 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Clear");
109 gl_->Clear(mask);
112 void GLES2TraceImplementation::ClearColor(GLclampf red,
113 GLclampf green,
114 GLclampf blue,
115 GLclampf alpha) {
116 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ClearColor");
117 gl_->ClearColor(red, green, blue, alpha);
120 void GLES2TraceImplementation::ClearDepthf(GLclampf depth) {
121 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ClearDepthf");
122 gl_->ClearDepthf(depth);
125 void GLES2TraceImplementation::ClearStencil(GLint s) {
126 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ClearStencil");
127 gl_->ClearStencil(s);
130 void GLES2TraceImplementation::ColorMask(GLboolean red,
131 GLboolean green,
132 GLboolean blue,
133 GLboolean alpha) {
134 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ColorMask");
135 gl_->ColorMask(red, green, blue, alpha);
138 void GLES2TraceImplementation::CompileShader(GLuint shader) {
139 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CompileShader");
140 gl_->CompileShader(shader);
143 void GLES2TraceImplementation::CompressedTexImage2D(GLenum target,
144 GLint level,
145 GLenum internalformat,
146 GLsizei width,
147 GLsizei height,
148 GLint border,
149 GLsizei imageSize,
150 const void* data) {
151 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CompressedTexImage2D");
152 gl_->CompressedTexImage2D(target, level, internalformat, width, height,
153 border, imageSize, data);
156 void GLES2TraceImplementation::CompressedTexSubImage2D(GLenum target,
157 GLint level,
158 GLint xoffset,
159 GLint yoffset,
160 GLsizei width,
161 GLsizei height,
162 GLenum format,
163 GLsizei imageSize,
164 const void* data) {
165 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CompressedTexSubImage2D");
166 gl_->CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height,
167 format, imageSize, data);
170 void GLES2TraceImplementation::CopyTexImage2D(GLenum target,
171 GLint level,
172 GLenum internalformat,
173 GLint x,
174 GLint y,
175 GLsizei width,
176 GLsizei height,
177 GLint border) {
178 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexImage2D");
179 gl_->CopyTexImage2D(target, level, internalformat, x, y, width, height,
180 border);
183 void GLES2TraceImplementation::CopyTexSubImage2D(GLenum target,
184 GLint level,
185 GLint xoffset,
186 GLint yoffset,
187 GLint x,
188 GLint y,
189 GLsizei width,
190 GLsizei height) {
191 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexSubImage2D");
192 gl_->CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
195 GLuint GLES2TraceImplementation::CreateProgram() {
196 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateProgram");
197 return gl_->CreateProgram();
200 GLuint GLES2TraceImplementation::CreateShader(GLenum type) {
201 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateShader");
202 return gl_->CreateShader(type);
205 void GLES2TraceImplementation::CullFace(GLenum mode) {
206 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CullFace");
207 gl_->CullFace(mode);
210 void GLES2TraceImplementation::DeleteBuffers(GLsizei n, const GLuint* buffers) {
211 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteBuffers");
212 gl_->DeleteBuffers(n, buffers);
215 void GLES2TraceImplementation::DeleteFramebuffers(GLsizei n,
216 const GLuint* framebuffers) {
217 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteFramebuffers");
218 gl_->DeleteFramebuffers(n, framebuffers);
221 void GLES2TraceImplementation::DeleteProgram(GLuint program) {
222 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteProgram");
223 gl_->DeleteProgram(program);
226 void GLES2TraceImplementation::DeleteRenderbuffers(
227 GLsizei n,
228 const GLuint* renderbuffers) {
229 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteRenderbuffers");
230 gl_->DeleteRenderbuffers(n, renderbuffers);
233 void GLES2TraceImplementation::DeleteShader(GLuint shader) {
234 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteShader");
235 gl_->DeleteShader(shader);
238 void GLES2TraceImplementation::DeleteTextures(GLsizei n,
239 const GLuint* textures) {
240 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteTextures");
241 gl_->DeleteTextures(n, textures);
244 void GLES2TraceImplementation::DepthFunc(GLenum func) {
245 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DepthFunc");
246 gl_->DepthFunc(func);
249 void GLES2TraceImplementation::DepthMask(GLboolean flag) {
250 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DepthMask");
251 gl_->DepthMask(flag);
254 void GLES2TraceImplementation::DepthRangef(GLclampf zNear, GLclampf zFar) {
255 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DepthRangef");
256 gl_->DepthRangef(zNear, zFar);
259 void GLES2TraceImplementation::DetachShader(GLuint program, GLuint shader) {
260 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DetachShader");
261 gl_->DetachShader(program, shader);
264 void GLES2TraceImplementation::Disable(GLenum cap) {
265 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Disable");
266 gl_->Disable(cap);
269 void GLES2TraceImplementation::DisableVertexAttribArray(GLuint index) {
270 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DisableVertexAttribArray");
271 gl_->DisableVertexAttribArray(index);
274 void GLES2TraceImplementation::DrawArrays(GLenum mode,
275 GLint first,
276 GLsizei count) {
277 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawArrays");
278 gl_->DrawArrays(mode, first, count);
281 void GLES2TraceImplementation::DrawElements(GLenum mode,
282 GLsizei count,
283 GLenum type,
284 const void* indices) {
285 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawElements");
286 gl_->DrawElements(mode, count, type, indices);
289 void GLES2TraceImplementation::Enable(GLenum cap) {
290 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Enable");
291 gl_->Enable(cap);
294 void GLES2TraceImplementation::EnableVertexAttribArray(GLuint index) {
295 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EnableVertexAttribArray");
296 gl_->EnableVertexAttribArray(index);
299 void GLES2TraceImplementation::Finish() {
300 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Finish");
301 gl_->Finish();
304 void GLES2TraceImplementation::Flush() {
305 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Flush");
306 gl_->Flush();
309 void GLES2TraceImplementation::FramebufferRenderbuffer(
310 GLenum target,
311 GLenum attachment,
312 GLenum renderbuffertarget,
313 GLuint renderbuffer) {
314 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FramebufferRenderbuffer");
315 gl_->FramebufferRenderbuffer(target, attachment, renderbuffertarget,
316 renderbuffer);
319 void GLES2TraceImplementation::FramebufferTexture2D(GLenum target,
320 GLenum attachment,
321 GLenum textarget,
322 GLuint texture,
323 GLint level) {
324 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FramebufferTexture2D");
325 gl_->FramebufferTexture2D(target, attachment, textarget, texture, level);
328 void GLES2TraceImplementation::FrontFace(GLenum mode) {
329 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FrontFace");
330 gl_->FrontFace(mode);
333 void GLES2TraceImplementation::GenBuffers(GLsizei n, GLuint* buffers) {
334 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenBuffers");
335 gl_->GenBuffers(n, buffers);
338 void GLES2TraceImplementation::GenerateMipmap(GLenum target) {
339 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenerateMipmap");
340 gl_->GenerateMipmap(target);
343 void GLES2TraceImplementation::GenFramebuffers(GLsizei n,
344 GLuint* framebuffers) {
345 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenFramebuffers");
346 gl_->GenFramebuffers(n, framebuffers);
349 void GLES2TraceImplementation::GenRenderbuffers(GLsizei n,
350 GLuint* renderbuffers) {
351 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenRenderbuffers");
352 gl_->GenRenderbuffers(n, renderbuffers);
355 void GLES2TraceImplementation::GenTextures(GLsizei n, GLuint* textures) {
356 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenTextures");
357 gl_->GenTextures(n, textures);
360 void GLES2TraceImplementation::GetActiveAttrib(GLuint program,
361 GLuint index,
362 GLsizei bufsize,
363 GLsizei* length,
364 GLint* size,
365 GLenum* type,
366 char* name) {
367 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveAttrib");
368 gl_->GetActiveAttrib(program, index, bufsize, length, size, type, name);
371 void GLES2TraceImplementation::GetActiveUniform(GLuint program,
372 GLuint index,
373 GLsizei bufsize,
374 GLsizei* length,
375 GLint* size,
376 GLenum* type,
377 char* name) {
378 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniform");
379 gl_->GetActiveUniform(program, index, bufsize, length, size, type, name);
382 void GLES2TraceImplementation::GetAttachedShaders(GLuint program,
383 GLsizei maxcount,
384 GLsizei* count,
385 GLuint* shaders) {
386 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetAttachedShaders");
387 gl_->GetAttachedShaders(program, maxcount, count, shaders);
390 GLint GLES2TraceImplementation::GetAttribLocation(GLuint program,
391 const char* name) {
392 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetAttribLocation");
393 return gl_->GetAttribLocation(program, name);
396 void GLES2TraceImplementation::GetBooleanv(GLenum pname, GLboolean* params) {
397 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetBooleanv");
398 gl_->GetBooleanv(pname, params);
401 void GLES2TraceImplementation::GetBufferParameteriv(GLenum target,
402 GLenum pname,
403 GLint* params) {
404 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetBufferParameteriv");
405 gl_->GetBufferParameteriv(target, pname, params);
408 GLenum GLES2TraceImplementation::GetError() {
409 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetError");
410 return gl_->GetError();
413 void GLES2TraceImplementation::GetFloatv(GLenum pname, GLfloat* params) {
414 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetFloatv");
415 gl_->GetFloatv(pname, params);
418 void GLES2TraceImplementation::GetFramebufferAttachmentParameteriv(
419 GLenum target,
420 GLenum attachment,
421 GLenum pname,
422 GLint* params) {
423 TRACE_EVENT_BINARY_EFFICIENT0(
424 "gpu", "GLES2Trace::GetFramebufferAttachmentParameteriv");
425 gl_->GetFramebufferAttachmentParameteriv(target, attachment, pname, params);
428 void GLES2TraceImplementation::GetIntegerv(GLenum pname, GLint* params) {
429 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetIntegerv");
430 gl_->GetIntegerv(pname, params);
433 void GLES2TraceImplementation::GetProgramiv(GLuint program,
434 GLenum pname,
435 GLint* params) {
436 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramiv");
437 gl_->GetProgramiv(program, pname, params);
440 void GLES2TraceImplementation::GetProgramInfoLog(GLuint program,
441 GLsizei bufsize,
442 GLsizei* length,
443 char* infolog) {
444 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramInfoLog");
445 gl_->GetProgramInfoLog(program, bufsize, length, infolog);
448 void GLES2TraceImplementation::GetRenderbufferParameteriv(GLenum target,
449 GLenum pname,
450 GLint* params) {
451 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
452 "GLES2Trace::GetRenderbufferParameteriv");
453 gl_->GetRenderbufferParameteriv(target, pname, params);
456 void GLES2TraceImplementation::GetShaderiv(GLuint shader,
457 GLenum pname,
458 GLint* params) {
459 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderiv");
460 gl_->GetShaderiv(shader, pname, params);
463 void GLES2TraceImplementation::GetShaderInfoLog(GLuint shader,
464 GLsizei bufsize,
465 GLsizei* length,
466 char* infolog) {
467 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderInfoLog");
468 gl_->GetShaderInfoLog(shader, bufsize, length, infolog);
471 void GLES2TraceImplementation::GetShaderPrecisionFormat(GLenum shadertype,
472 GLenum precisiontype,
473 GLint* range,
474 GLint* precision) {
475 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderPrecisionFormat");
476 gl_->GetShaderPrecisionFormat(shadertype, precisiontype, range, precision);
479 void GLES2TraceImplementation::GetShaderSource(GLuint shader,
480 GLsizei bufsize,
481 GLsizei* length,
482 char* source) {
483 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderSource");
484 gl_->GetShaderSource(shader, bufsize, length, source);
487 const GLubyte* GLES2TraceImplementation::GetString(GLenum name) {
488 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetString");
489 return gl_->GetString(name);
492 void GLES2TraceImplementation::GetTexParameterfv(GLenum target,
493 GLenum pname,
494 GLfloat* params) {
495 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetTexParameterfv");
496 gl_->GetTexParameterfv(target, pname, params);
499 void GLES2TraceImplementation::GetTexParameteriv(GLenum target,
500 GLenum pname,
501 GLint* params) {
502 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetTexParameteriv");
503 gl_->GetTexParameteriv(target, pname, params);
506 void GLES2TraceImplementation::GetUniformfv(GLuint program,
507 GLint location,
508 GLfloat* params) {
509 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformfv");
510 gl_->GetUniformfv(program, location, params);
513 void GLES2TraceImplementation::GetUniformiv(GLuint program,
514 GLint location,
515 GLint* params) {
516 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformiv");
517 gl_->GetUniformiv(program, location, params);
520 GLint GLES2TraceImplementation::GetUniformLocation(GLuint program,
521 const char* name) {
522 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformLocation");
523 return gl_->GetUniformLocation(program, name);
526 void GLES2TraceImplementation::GetVertexAttribfv(GLuint index,
527 GLenum pname,
528 GLfloat* params) {
529 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribfv");
530 gl_->GetVertexAttribfv(index, pname, params);
533 void GLES2TraceImplementation::GetVertexAttribiv(GLuint index,
534 GLenum pname,
535 GLint* params) {
536 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribiv");
537 gl_->GetVertexAttribiv(index, pname, params);
540 void GLES2TraceImplementation::GetVertexAttribPointerv(GLuint index,
541 GLenum pname,
542 void** pointer) {
543 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribPointerv");
544 gl_->GetVertexAttribPointerv(index, pname, pointer);
547 void GLES2TraceImplementation::Hint(GLenum target, GLenum mode) {
548 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Hint");
549 gl_->Hint(target, mode);
552 GLboolean GLES2TraceImplementation::IsBuffer(GLuint buffer) {
553 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsBuffer");
554 return gl_->IsBuffer(buffer);
557 GLboolean GLES2TraceImplementation::IsEnabled(GLenum cap) {
558 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsEnabled");
559 return gl_->IsEnabled(cap);
562 GLboolean GLES2TraceImplementation::IsFramebuffer(GLuint framebuffer) {
563 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsFramebuffer");
564 return gl_->IsFramebuffer(framebuffer);
567 GLboolean GLES2TraceImplementation::IsProgram(GLuint program) {
568 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsProgram");
569 return gl_->IsProgram(program);
572 GLboolean GLES2TraceImplementation::IsRenderbuffer(GLuint renderbuffer) {
573 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsRenderbuffer");
574 return gl_->IsRenderbuffer(renderbuffer);
577 GLboolean GLES2TraceImplementation::IsShader(GLuint shader) {
578 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsShader");
579 return gl_->IsShader(shader);
582 GLboolean GLES2TraceImplementation::IsTexture(GLuint texture) {
583 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsTexture");
584 return gl_->IsTexture(texture);
587 void GLES2TraceImplementation::LineWidth(GLfloat width) {
588 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LineWidth");
589 gl_->LineWidth(width);
592 void GLES2TraceImplementation::LinkProgram(GLuint program) {
593 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LinkProgram");
594 gl_->LinkProgram(program);
597 void GLES2TraceImplementation::PixelStorei(GLenum pname, GLint param) {
598 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PixelStorei");
599 gl_->PixelStorei(pname, param);
602 void GLES2TraceImplementation::PolygonOffset(GLfloat factor, GLfloat units) {
603 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PolygonOffset");
604 gl_->PolygonOffset(factor, units);
607 void GLES2TraceImplementation::ReadPixels(GLint x,
608 GLint y,
609 GLsizei width,
610 GLsizei height,
611 GLenum format,
612 GLenum type,
613 void* pixels) {
614 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReadPixels");
615 gl_->ReadPixels(x, y, width, height, format, type, pixels);
618 void GLES2TraceImplementation::ReleaseShaderCompiler() {
619 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReleaseShaderCompiler");
620 gl_->ReleaseShaderCompiler();
623 void GLES2TraceImplementation::RenderbufferStorage(GLenum target,
624 GLenum internalformat,
625 GLsizei width,
626 GLsizei height) {
627 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RenderbufferStorage");
628 gl_->RenderbufferStorage(target, internalformat, width, height);
631 void GLES2TraceImplementation::SampleCoverage(GLclampf value,
632 GLboolean invert) {
633 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SampleCoverage");
634 gl_->SampleCoverage(value, invert);
637 void GLES2TraceImplementation::Scissor(GLint x,
638 GLint y,
639 GLsizei width,
640 GLsizei height) {
641 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Scissor");
642 gl_->Scissor(x, y, width, height);
645 void GLES2TraceImplementation::ShaderBinary(GLsizei n,
646 const GLuint* shaders,
647 GLenum binaryformat,
648 const void* binary,
649 GLsizei length) {
650 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShaderBinary");
651 gl_->ShaderBinary(n, shaders, binaryformat, binary, length);
654 void GLES2TraceImplementation::ShaderSource(GLuint shader,
655 GLsizei count,
656 const GLchar* const* str,
657 const GLint* length) {
658 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShaderSource");
659 gl_->ShaderSource(shader, count, str, length);
662 void GLES2TraceImplementation::ShallowFinishCHROMIUM() {
663 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShallowFinishCHROMIUM");
664 gl_->ShallowFinishCHROMIUM();
667 void GLES2TraceImplementation::ShallowFlushCHROMIUM() {
668 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShallowFlushCHROMIUM");
669 gl_->ShallowFlushCHROMIUM();
672 void GLES2TraceImplementation::StencilFunc(GLenum func,
673 GLint ref,
674 GLuint mask) {
675 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFunc");
676 gl_->StencilFunc(func, ref, mask);
679 void GLES2TraceImplementation::StencilFuncSeparate(GLenum face,
680 GLenum func,
681 GLint ref,
682 GLuint mask) {
683 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFuncSeparate");
684 gl_->StencilFuncSeparate(face, func, ref, mask);
687 void GLES2TraceImplementation::StencilMask(GLuint mask) {
688 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilMask");
689 gl_->StencilMask(mask);
692 void GLES2TraceImplementation::StencilMaskSeparate(GLenum face, GLuint mask) {
693 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilMaskSeparate");
694 gl_->StencilMaskSeparate(face, mask);
697 void GLES2TraceImplementation::StencilOp(GLenum fail,
698 GLenum zfail,
699 GLenum zpass) {
700 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilOp");
701 gl_->StencilOp(fail, zfail, zpass);
704 void GLES2TraceImplementation::StencilOpSeparate(GLenum face,
705 GLenum fail,
706 GLenum zfail,
707 GLenum zpass) {
708 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilOpSeparate");
709 gl_->StencilOpSeparate(face, fail, zfail, zpass);
712 void GLES2TraceImplementation::TexImage2D(GLenum target,
713 GLint level,
714 GLint internalformat,
715 GLsizei width,
716 GLsizei height,
717 GLint border,
718 GLenum format,
719 GLenum type,
720 const void* pixels) {
721 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImage2D");
722 gl_->TexImage2D(target, level, internalformat, width, height, border, format,
723 type, pixels);
726 void GLES2TraceImplementation::TexParameterf(GLenum target,
727 GLenum pname,
728 GLfloat param) {
729 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterf");
730 gl_->TexParameterf(target, pname, param);
733 void GLES2TraceImplementation::TexParameterfv(GLenum target,
734 GLenum pname,
735 const GLfloat* params) {
736 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterfv");
737 gl_->TexParameterfv(target, pname, params);
740 void GLES2TraceImplementation::TexParameteri(GLenum target,
741 GLenum pname,
742 GLint param) {
743 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameteri");
744 gl_->TexParameteri(target, pname, param);
747 void GLES2TraceImplementation::TexParameteriv(GLenum target,
748 GLenum pname,
749 const GLint* params) {
750 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameteriv");
751 gl_->TexParameteriv(target, pname, params);
754 void GLES2TraceImplementation::TexSubImage2D(GLenum target,
755 GLint level,
756 GLint xoffset,
757 GLint yoffset,
758 GLsizei width,
759 GLsizei height,
760 GLenum format,
761 GLenum type,
762 const void* pixels) {
763 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage2D");
764 gl_->TexSubImage2D(target, level, xoffset, yoffset, width, height, format,
765 type, pixels);
768 void GLES2TraceImplementation::Uniform1f(GLint location, GLfloat x) {
769 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1f");
770 gl_->Uniform1f(location, x);
773 void GLES2TraceImplementation::Uniform1fv(GLint location,
774 GLsizei count,
775 const GLfloat* v) {
776 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1fv");
777 gl_->Uniform1fv(location, count, v);
780 void GLES2TraceImplementation::Uniform1i(GLint location, GLint x) {
781 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1i");
782 gl_->Uniform1i(location, x);
785 void GLES2TraceImplementation::Uniform1iv(GLint location,
786 GLsizei count,
787 const GLint* v) {
788 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1iv");
789 gl_->Uniform1iv(location, count, v);
792 void GLES2TraceImplementation::Uniform2f(GLint location, GLfloat x, GLfloat y) {
793 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2f");
794 gl_->Uniform2f(location, x, y);
797 void GLES2TraceImplementation::Uniform2fv(GLint location,
798 GLsizei count,
799 const GLfloat* v) {
800 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2fv");
801 gl_->Uniform2fv(location, count, v);
804 void GLES2TraceImplementation::Uniform2i(GLint location, GLint x, GLint y) {
805 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2i");
806 gl_->Uniform2i(location, x, y);
809 void GLES2TraceImplementation::Uniform2iv(GLint location,
810 GLsizei count,
811 const GLint* v) {
812 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2iv");
813 gl_->Uniform2iv(location, count, v);
816 void GLES2TraceImplementation::Uniform3f(GLint location,
817 GLfloat x,
818 GLfloat y,
819 GLfloat z) {
820 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3f");
821 gl_->Uniform3f(location, x, y, z);
824 void GLES2TraceImplementation::Uniform3fv(GLint location,
825 GLsizei count,
826 const GLfloat* v) {
827 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3fv");
828 gl_->Uniform3fv(location, count, v);
831 void GLES2TraceImplementation::Uniform3i(GLint location,
832 GLint x,
833 GLint y,
834 GLint z) {
835 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3i");
836 gl_->Uniform3i(location, x, y, z);
839 void GLES2TraceImplementation::Uniform3iv(GLint location,
840 GLsizei count,
841 const GLint* v) {
842 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3iv");
843 gl_->Uniform3iv(location, count, v);
846 void GLES2TraceImplementation::Uniform4f(GLint location,
847 GLfloat x,
848 GLfloat y,
849 GLfloat z,
850 GLfloat w) {
851 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4f");
852 gl_->Uniform4f(location, x, y, z, w);
855 void GLES2TraceImplementation::Uniform4fv(GLint location,
856 GLsizei count,
857 const GLfloat* v) {
858 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4fv");
859 gl_->Uniform4fv(location, count, v);
862 void GLES2TraceImplementation::Uniform4i(GLint location,
863 GLint x,
864 GLint y,
865 GLint z,
866 GLint w) {
867 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4i");
868 gl_->Uniform4i(location, x, y, z, w);
871 void GLES2TraceImplementation::Uniform4iv(GLint location,
872 GLsizei count,
873 const GLint* v) {
874 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4iv");
875 gl_->Uniform4iv(location, count, v);
878 void GLES2TraceImplementation::UniformMatrix2fv(GLint location,
879 GLsizei count,
880 GLboolean transpose,
881 const GLfloat* value) {
882 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2fv");
883 gl_->UniformMatrix2fv(location, count, transpose, value);
886 void GLES2TraceImplementation::UniformMatrix3fv(GLint location,
887 GLsizei count,
888 GLboolean transpose,
889 const GLfloat* value) {
890 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3fv");
891 gl_->UniformMatrix3fv(location, count, transpose, value);
894 void GLES2TraceImplementation::UniformMatrix4fv(GLint location,
895 GLsizei count,
896 GLboolean transpose,
897 const GLfloat* value) {
898 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4fv");
899 gl_->UniformMatrix4fv(location, count, transpose, value);
902 void GLES2TraceImplementation::UseProgram(GLuint program) {
903 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UseProgram");
904 gl_->UseProgram(program);
907 void GLES2TraceImplementation::ValidateProgram(GLuint program) {
908 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ValidateProgram");
909 gl_->ValidateProgram(program);
912 void GLES2TraceImplementation::VertexAttrib1f(GLuint indx, GLfloat x) {
913 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib1f");
914 gl_->VertexAttrib1f(indx, x);
917 void GLES2TraceImplementation::VertexAttrib1fv(GLuint indx,
918 const GLfloat* values) {
919 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib1fv");
920 gl_->VertexAttrib1fv(indx, values);
923 void GLES2TraceImplementation::VertexAttrib2f(GLuint indx,
924 GLfloat x,
925 GLfloat y) {
926 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib2f");
927 gl_->VertexAttrib2f(indx, x, y);
930 void GLES2TraceImplementation::VertexAttrib2fv(GLuint indx,
931 const GLfloat* values) {
932 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib2fv");
933 gl_->VertexAttrib2fv(indx, values);
936 void GLES2TraceImplementation::VertexAttrib3f(GLuint indx,
937 GLfloat x,
938 GLfloat y,
939 GLfloat z) {
940 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib3f");
941 gl_->VertexAttrib3f(indx, x, y, z);
944 void GLES2TraceImplementation::VertexAttrib3fv(GLuint indx,
945 const GLfloat* values) {
946 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib3fv");
947 gl_->VertexAttrib3fv(indx, values);
950 void GLES2TraceImplementation::VertexAttrib4f(GLuint indx,
951 GLfloat x,
952 GLfloat y,
953 GLfloat z,
954 GLfloat w) {
955 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib4f");
956 gl_->VertexAttrib4f(indx, x, y, z, w);
959 void GLES2TraceImplementation::VertexAttrib4fv(GLuint indx,
960 const GLfloat* values) {
961 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib4fv");
962 gl_->VertexAttrib4fv(indx, values);
965 void GLES2TraceImplementation::VertexAttribPointer(GLuint indx,
966 GLint size,
967 GLenum type,
968 GLboolean normalized,
969 GLsizei stride,
970 const void* ptr) {
971 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribPointer");
972 gl_->VertexAttribPointer(indx, size, type, normalized, stride, ptr);
975 void GLES2TraceImplementation::Viewport(GLint x,
976 GLint y,
977 GLsizei width,
978 GLsizei height) {
979 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Viewport");
980 gl_->Viewport(x, y, width, height);
983 void GLES2TraceImplementation::BlitFramebufferCHROMIUM(GLint srcX0,
984 GLint srcY0,
985 GLint srcX1,
986 GLint srcY1,
987 GLint dstX0,
988 GLint dstY0,
989 GLint dstX1,
990 GLint dstY1,
991 GLbitfield mask,
992 GLenum filter) {
993 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlitFramebufferCHROMIUM");
994 gl_->BlitFramebufferCHROMIUM(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1,
995 dstY1, mask, filter);
998 void GLES2TraceImplementation::RenderbufferStorageMultisampleCHROMIUM(
999 GLenum target,
1000 GLsizei samples,
1001 GLenum internalformat,
1002 GLsizei width,
1003 GLsizei height) {
1004 TRACE_EVENT_BINARY_EFFICIENT0(
1005 "gpu", "GLES2Trace::RenderbufferStorageMultisampleCHROMIUM");
1006 gl_->RenderbufferStorageMultisampleCHROMIUM(target, samples, internalformat,
1007 width, height);
1010 void GLES2TraceImplementation::RenderbufferStorageMultisampleEXT(
1011 GLenum target,
1012 GLsizei samples,
1013 GLenum internalformat,
1014 GLsizei width,
1015 GLsizei height) {
1016 TRACE_EVENT_BINARY_EFFICIENT0(
1017 "gpu", "GLES2Trace::RenderbufferStorageMultisampleEXT");
1018 gl_->RenderbufferStorageMultisampleEXT(target, samples, internalformat, width,
1019 height);
1022 void GLES2TraceImplementation::FramebufferTexture2DMultisampleEXT(
1023 GLenum target,
1024 GLenum attachment,
1025 GLenum textarget,
1026 GLuint texture,
1027 GLint level,
1028 GLsizei samples) {
1029 TRACE_EVENT_BINARY_EFFICIENT0(
1030 "gpu", "GLES2Trace::FramebufferTexture2DMultisampleEXT");
1031 gl_->FramebufferTexture2DMultisampleEXT(target, attachment, textarget,
1032 texture, level, samples);
1035 void GLES2TraceImplementation::TexStorage2DEXT(GLenum target,
1036 GLsizei levels,
1037 GLenum internalFormat,
1038 GLsizei width,
1039 GLsizei height) {
1040 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexStorage2DEXT");
1041 gl_->TexStorage2DEXT(target, levels, internalFormat, width, height);
1044 void GLES2TraceImplementation::GenQueriesEXT(GLsizei n, GLuint* queries) {
1045 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenQueriesEXT");
1046 gl_->GenQueriesEXT(n, queries);
1049 void GLES2TraceImplementation::DeleteQueriesEXT(GLsizei n,
1050 const GLuint* queries) {
1051 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteQueriesEXT");
1052 gl_->DeleteQueriesEXT(n, queries);
1055 GLboolean GLES2TraceImplementation::IsQueryEXT(GLuint id) {
1056 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsQueryEXT");
1057 return gl_->IsQueryEXT(id);
1060 void GLES2TraceImplementation::BeginQueryEXT(GLenum target, GLuint id) {
1061 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BeginQueryEXT");
1062 gl_->BeginQueryEXT(target, id);
1065 void GLES2TraceImplementation::EndQueryEXT(GLenum target) {
1066 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EndQueryEXT");
1067 gl_->EndQueryEXT(target);
1070 void GLES2TraceImplementation::GetQueryivEXT(GLenum target,
1071 GLenum pname,
1072 GLint* params) {
1073 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryivEXT");
1074 gl_->GetQueryivEXT(target, pname, params);
1077 void GLES2TraceImplementation::GetQueryObjectuivEXT(GLuint id,
1078 GLenum pname,
1079 GLuint* params) {
1080 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryObjectuivEXT");
1081 gl_->GetQueryObjectuivEXT(id, pname, params);
1084 void GLES2TraceImplementation::InsertEventMarkerEXT(GLsizei length,
1085 const GLchar* marker) {
1086 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InsertEventMarkerEXT");
1087 gl_->InsertEventMarkerEXT(length, marker);
1090 void GLES2TraceImplementation::PushGroupMarkerEXT(GLsizei length,
1091 const GLchar* marker) {
1092 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PushGroupMarkerEXT");
1093 gl_->PushGroupMarkerEXT(length, marker);
1096 void GLES2TraceImplementation::PopGroupMarkerEXT() {
1097 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PopGroupMarkerEXT");
1098 gl_->PopGroupMarkerEXT();
1101 void GLES2TraceImplementation::GenVertexArraysOES(GLsizei n, GLuint* arrays) {
1102 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenVertexArraysOES");
1103 gl_->GenVertexArraysOES(n, arrays);
1106 void GLES2TraceImplementation::DeleteVertexArraysOES(GLsizei n,
1107 const GLuint* arrays) {
1108 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteVertexArraysOES");
1109 gl_->DeleteVertexArraysOES(n, arrays);
1112 GLboolean GLES2TraceImplementation::IsVertexArrayOES(GLuint array) {
1113 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsVertexArrayOES");
1114 return gl_->IsVertexArrayOES(array);
1117 void GLES2TraceImplementation::BindVertexArrayOES(GLuint array) {
1118 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindVertexArrayOES");
1119 gl_->BindVertexArrayOES(array);
1122 void GLES2TraceImplementation::SwapBuffers() {
1123 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SwapBuffers");
1124 gl_->SwapBuffers();
1127 GLuint GLES2TraceImplementation::GetMaxValueInBufferCHROMIUM(GLuint buffer_id,
1128 GLsizei count,
1129 GLenum type,
1130 GLuint offset) {
1131 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1132 "GLES2Trace::GetMaxValueInBufferCHROMIUM");
1133 return gl_->GetMaxValueInBufferCHROMIUM(buffer_id, count, type, offset);
1136 GLboolean GLES2TraceImplementation::EnableFeatureCHROMIUM(const char* feature) {
1137 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EnableFeatureCHROMIUM");
1138 return gl_->EnableFeatureCHROMIUM(feature);
1141 void* GLES2TraceImplementation::MapBufferCHROMIUM(GLuint target,
1142 GLenum access) {
1143 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferCHROMIUM");
1144 return gl_->MapBufferCHROMIUM(target, access);
1147 GLboolean GLES2TraceImplementation::UnmapBufferCHROMIUM(GLuint target) {
1148 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UnmapBufferCHROMIUM");
1149 return gl_->UnmapBufferCHROMIUM(target);
1152 void* GLES2TraceImplementation::MapBufferSubDataCHROMIUM(GLuint target,
1153 GLintptr offset,
1154 GLsizeiptr size,
1155 GLenum access) {
1156 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferSubDataCHROMIUM");
1157 return gl_->MapBufferSubDataCHROMIUM(target, offset, size, access);
1160 void GLES2TraceImplementation::UnmapBufferSubDataCHROMIUM(const void* mem) {
1161 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1162 "GLES2Trace::UnmapBufferSubDataCHROMIUM");
1163 gl_->UnmapBufferSubDataCHROMIUM(mem);
1166 void* GLES2TraceImplementation::MapTexSubImage2DCHROMIUM(GLenum target,
1167 GLint level,
1168 GLint xoffset,
1169 GLint yoffset,
1170 GLsizei width,
1171 GLsizei height,
1172 GLenum format,
1173 GLenum type,
1174 GLenum access) {
1175 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapTexSubImage2DCHROMIUM");
1176 return gl_->MapTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width,
1177 height, format, type, access);
1180 void GLES2TraceImplementation::UnmapTexSubImage2DCHROMIUM(const void* mem) {
1181 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1182 "GLES2Trace::UnmapTexSubImage2DCHROMIUM");
1183 gl_->UnmapTexSubImage2DCHROMIUM(mem);
1186 void GLES2TraceImplementation::ResizeCHROMIUM(GLuint width,
1187 GLuint height,
1188 GLfloat scale_factor) {
1189 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ResizeCHROMIUM");
1190 gl_->ResizeCHROMIUM(width, height, scale_factor);
1193 const GLchar* GLES2TraceImplementation::GetRequestableExtensionsCHROMIUM() {
1194 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1195 "GLES2Trace::GetRequestableExtensionsCHROMIUM");
1196 return gl_->GetRequestableExtensionsCHROMIUM();
1199 void GLES2TraceImplementation::RequestExtensionCHROMIUM(const char* extension) {
1200 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RequestExtensionCHROMIUM");
1201 gl_->RequestExtensionCHROMIUM(extension);
1204 void GLES2TraceImplementation::RateLimitOffscreenContextCHROMIUM() {
1205 TRACE_EVENT_BINARY_EFFICIENT0(
1206 "gpu", "GLES2Trace::RateLimitOffscreenContextCHROMIUM");
1207 gl_->RateLimitOffscreenContextCHROMIUM();
1210 void GLES2TraceImplementation::GetProgramInfoCHROMIUM(GLuint program,
1211 GLsizei bufsize,
1212 GLsizei* size,
1213 void* info) {
1214 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramInfoCHROMIUM");
1215 gl_->GetProgramInfoCHROMIUM(program, bufsize, size, info);
1218 GLuint GLES2TraceImplementation::CreateStreamTextureCHROMIUM(GLuint texture) {
1219 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1220 "GLES2Trace::CreateStreamTextureCHROMIUM");
1221 return gl_->CreateStreamTextureCHROMIUM(texture);
1224 GLuint GLES2TraceImplementation::CreateImageCHROMIUM(ClientBuffer buffer,
1225 GLsizei width,
1226 GLsizei height,
1227 GLenum internalformat) {
1228 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateImageCHROMIUM");
1229 return gl_->CreateImageCHROMIUM(buffer, width, height, internalformat);
1232 void GLES2TraceImplementation::DestroyImageCHROMIUM(GLuint image_id) {
1233 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DestroyImageCHROMIUM");
1234 gl_->DestroyImageCHROMIUM(image_id);
1237 GLuint GLES2TraceImplementation::CreateGpuMemoryBufferImageCHROMIUM(
1238 GLsizei width,
1239 GLsizei height,
1240 GLenum internalformat,
1241 GLenum usage) {
1242 TRACE_EVENT_BINARY_EFFICIENT0(
1243 "gpu", "GLES2Trace::CreateGpuMemoryBufferImageCHROMIUM");
1244 return gl_->CreateGpuMemoryBufferImageCHROMIUM(width, height, internalformat,
1245 usage);
1248 void GLES2TraceImplementation::GetTranslatedShaderSourceANGLE(GLuint shader,
1249 GLsizei bufsize,
1250 GLsizei* length,
1251 char* source) {
1252 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1253 "GLES2Trace::GetTranslatedShaderSourceANGLE");
1254 gl_->GetTranslatedShaderSourceANGLE(shader, bufsize, length, source);
1257 void GLES2TraceImplementation::PostSubBufferCHROMIUM(GLint x,
1258 GLint y,
1259 GLint width,
1260 GLint height) {
1261 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PostSubBufferCHROMIUM");
1262 gl_->PostSubBufferCHROMIUM(x, y, width, height);
1265 void GLES2TraceImplementation::TexImageIOSurface2DCHROMIUM(GLenum target,
1266 GLsizei width,
1267 GLsizei height,
1268 GLuint ioSurfaceId,
1269 GLuint plane) {
1270 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1271 "GLES2Trace::TexImageIOSurface2DCHROMIUM");
1272 gl_->TexImageIOSurface2DCHROMIUM(target, width, height, ioSurfaceId, plane);
1275 void GLES2TraceImplementation::CopyTextureCHROMIUM(GLenum target,
1276 GLenum source_id,
1277 GLenum dest_id,
1278 GLint level,
1279 GLint internalformat,
1280 GLenum dest_type) {
1281 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTextureCHROMIUM");
1282 gl_->CopyTextureCHROMIUM(target, source_id, dest_id, level, internalformat,
1283 dest_type);
1286 void GLES2TraceImplementation::DrawArraysInstancedANGLE(GLenum mode,
1287 GLint first,
1288 GLsizei count,
1289 GLsizei primcount) {
1290 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawArraysInstancedANGLE");
1291 gl_->DrawArraysInstancedANGLE(mode, first, count, primcount);
1294 void GLES2TraceImplementation::DrawElementsInstancedANGLE(GLenum mode,
1295 GLsizei count,
1296 GLenum type,
1297 const void* indices,
1298 GLsizei primcount) {
1299 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1300 "GLES2Trace::DrawElementsInstancedANGLE");
1301 gl_->DrawElementsInstancedANGLE(mode, count, type, indices, primcount);
1304 void GLES2TraceImplementation::VertexAttribDivisorANGLE(GLuint index,
1305 GLuint divisor) {
1306 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribDivisorANGLE");
1307 gl_->VertexAttribDivisorANGLE(index, divisor);
1310 void GLES2TraceImplementation::GenMailboxCHROMIUM(GLbyte* mailbox) {
1311 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenMailboxCHROMIUM");
1312 gl_->GenMailboxCHROMIUM(mailbox);
1315 void GLES2TraceImplementation::ProduceTextureCHROMIUM(GLenum target,
1316 const GLbyte* mailbox) {
1317 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ProduceTextureCHROMIUM");
1318 gl_->ProduceTextureCHROMIUM(target, mailbox);
1321 void GLES2TraceImplementation::ProduceTextureDirectCHROMIUM(
1322 GLuint texture,
1323 GLenum target,
1324 const GLbyte* mailbox) {
1325 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1326 "GLES2Trace::ProduceTextureDirectCHROMIUM");
1327 gl_->ProduceTextureDirectCHROMIUM(texture, target, mailbox);
1330 void GLES2TraceImplementation::ConsumeTextureCHROMIUM(GLenum target,
1331 const GLbyte* mailbox) {
1332 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ConsumeTextureCHROMIUM");
1333 gl_->ConsumeTextureCHROMIUM(target, mailbox);
1336 GLuint GLES2TraceImplementation::CreateAndConsumeTextureCHROMIUM(
1337 GLenum target,
1338 const GLbyte* mailbox) {
1339 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1340 "GLES2Trace::CreateAndConsumeTextureCHROMIUM");
1341 return gl_->CreateAndConsumeTextureCHROMIUM(target, mailbox);
1344 void GLES2TraceImplementation::BindUniformLocationCHROMIUM(GLuint program,
1345 GLint location,
1346 const char* name) {
1347 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1348 "GLES2Trace::BindUniformLocationCHROMIUM");
1349 gl_->BindUniformLocationCHROMIUM(program, location, name);
1352 void GLES2TraceImplementation::GenValuebuffersCHROMIUM(GLsizei n,
1353 GLuint* buffers) {
1354 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenValuebuffersCHROMIUM");
1355 gl_->GenValuebuffersCHROMIUM(n, buffers);
1358 void GLES2TraceImplementation::DeleteValuebuffersCHROMIUM(
1359 GLsizei n,
1360 const GLuint* valuebuffers) {
1361 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1362 "GLES2Trace::DeleteValuebuffersCHROMIUM");
1363 gl_->DeleteValuebuffersCHROMIUM(n, valuebuffers);
1366 GLboolean GLES2TraceImplementation::IsValuebufferCHROMIUM(GLuint valuebuffer) {
1367 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsValuebufferCHROMIUM");
1368 return gl_->IsValuebufferCHROMIUM(valuebuffer);
1371 void GLES2TraceImplementation::BindValuebufferCHROMIUM(GLenum target,
1372 GLuint valuebuffer) {
1373 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindValuebufferCHROMIUM");
1374 gl_->BindValuebufferCHROMIUM(target, valuebuffer);
1377 void GLES2TraceImplementation::SubscribeValueCHROMIUM(GLenum target,
1378 GLenum subscription) {
1379 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SubscribeValueCHROMIUM");
1380 gl_->SubscribeValueCHROMIUM(target, subscription);
1383 void GLES2TraceImplementation::PopulateSubscribedValuesCHROMIUM(GLenum target) {
1384 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1385 "GLES2Trace::PopulateSubscribedValuesCHROMIUM");
1386 gl_->PopulateSubscribedValuesCHROMIUM(target);
1389 void GLES2TraceImplementation::UniformValuebufferCHROMIUM(GLint location,
1390 GLenum target,
1391 GLenum subscription) {
1392 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1393 "GLES2Trace::UniformValuebufferCHROMIUM");
1394 gl_->UniformValuebufferCHROMIUM(location, target, subscription);
1397 void GLES2TraceImplementation::BindTexImage2DCHROMIUM(GLenum target,
1398 GLint imageId) {
1399 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindTexImage2DCHROMIUM");
1400 gl_->BindTexImage2DCHROMIUM(target, imageId);
1403 void GLES2TraceImplementation::ReleaseTexImage2DCHROMIUM(GLenum target,
1404 GLint imageId) {
1405 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReleaseTexImage2DCHROMIUM");
1406 gl_->ReleaseTexImage2DCHROMIUM(target, imageId);
1409 void GLES2TraceImplementation::TraceBeginCHROMIUM(const char* name) {
1410 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TraceBeginCHROMIUM");
1411 gl_->TraceBeginCHROMIUM(name);
1414 void GLES2TraceImplementation::TraceEndCHROMIUM() {
1415 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TraceEndCHROMIUM");
1416 gl_->TraceEndCHROMIUM();
1419 void GLES2TraceImplementation::AsyncTexSubImage2DCHROMIUM(GLenum target,
1420 GLint level,
1421 GLint xoffset,
1422 GLint yoffset,
1423 GLsizei width,
1424 GLsizei height,
1425 GLenum format,
1426 GLenum type,
1427 const void* data) {
1428 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1429 "GLES2Trace::AsyncTexSubImage2DCHROMIUM");
1430 gl_->AsyncTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width,
1431 height, format, type, data);
1434 void GLES2TraceImplementation::AsyncTexImage2DCHROMIUM(GLenum target,
1435 GLint level,
1436 GLenum internalformat,
1437 GLsizei width,
1438 GLsizei height,
1439 GLint border,
1440 GLenum format,
1441 GLenum type,
1442 const void* pixels) {
1443 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::AsyncTexImage2DCHROMIUM");
1444 gl_->AsyncTexImage2DCHROMIUM(target, level, internalformat, width, height,
1445 border, format, type, pixels);
1448 void GLES2TraceImplementation::WaitAsyncTexImage2DCHROMIUM(GLenum target) {
1449 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1450 "GLES2Trace::WaitAsyncTexImage2DCHROMIUM");
1451 gl_->WaitAsyncTexImage2DCHROMIUM(target);
1454 void GLES2TraceImplementation::WaitAllAsyncTexImage2DCHROMIUM() {
1455 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1456 "GLES2Trace::WaitAllAsyncTexImage2DCHROMIUM");
1457 gl_->WaitAllAsyncTexImage2DCHROMIUM();
1460 void GLES2TraceImplementation::DiscardFramebufferEXT(
1461 GLenum target,
1462 GLsizei count,
1463 const GLenum* attachments) {
1464 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DiscardFramebufferEXT");
1465 gl_->DiscardFramebufferEXT(target, count, attachments);
1468 void GLES2TraceImplementation::LoseContextCHROMIUM(GLenum current,
1469 GLenum other) {
1470 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LoseContextCHROMIUM");
1471 gl_->LoseContextCHROMIUM(current, other);
1474 GLuint GLES2TraceImplementation::InsertSyncPointCHROMIUM() {
1475 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InsertSyncPointCHROMIUM");
1476 return gl_->InsertSyncPointCHROMIUM();
1479 void GLES2TraceImplementation::WaitSyncPointCHROMIUM(GLuint sync_point) {
1480 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::WaitSyncPointCHROMIUM");
1481 gl_->WaitSyncPointCHROMIUM(sync_point);
1484 void GLES2TraceImplementation::DrawBuffersEXT(GLsizei count,
1485 const GLenum* bufs) {
1486 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawBuffersEXT");
1487 gl_->DrawBuffersEXT(count, bufs);
1490 void GLES2TraceImplementation::DiscardBackbufferCHROMIUM() {
1491 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DiscardBackbufferCHROMIUM");
1492 gl_->DiscardBackbufferCHROMIUM();
1495 void GLES2TraceImplementation::ScheduleOverlayPlaneCHROMIUM(
1496 GLint plane_z_order,
1497 GLenum plane_transform,
1498 GLuint overlay_texture_id,
1499 GLint bounds_x,
1500 GLint bounds_y,
1501 GLint bounds_width,
1502 GLint bounds_height,
1503 GLfloat uv_x,
1504 GLfloat uv_y,
1505 GLfloat uv_width,
1506 GLfloat uv_height) {
1507 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1508 "GLES2Trace::ScheduleOverlayPlaneCHROMIUM");
1509 gl_->ScheduleOverlayPlaneCHROMIUM(
1510 plane_z_order, plane_transform, overlay_texture_id, bounds_x, bounds_y,
1511 bounds_width, bounds_height, uv_x, uv_y, uv_width, uv_height);
1514 void GLES2TraceImplementation::MatrixLoadfCHROMIUM(GLenum matrixMode,
1515 const GLfloat* m) {
1516 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MatrixLoadfCHROMIUM");
1517 gl_->MatrixLoadfCHROMIUM(matrixMode, m);
1520 void GLES2TraceImplementation::MatrixLoadIdentityCHROMIUM(GLenum matrixMode) {
1521 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1522 "GLES2Trace::MatrixLoadIdentityCHROMIUM");
1523 gl_->MatrixLoadIdentityCHROMIUM(matrixMode);
1526 void GLES2TraceImplementation::BlendBarrierKHR() {
1527 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendBarrierKHR");
1528 gl_->BlendBarrierKHR();
1531 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_