Rewrite AndroidSyncSettings to be significantly simpler.
[chromium-blink-merge.git] / gpu / command_buffer / client / gles2_trace_implementation_impl_autogen.h
blob6dbbc935a7b523184b557585566160c02cf8c9bc
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::BindBufferBase(GLenum target,
38 GLuint index,
39 GLuint buffer) {
40 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindBufferBase");
41 gl_->BindBufferBase(target, index, buffer);
44 void GLES2TraceImplementation::BindBufferRange(GLenum target,
45 GLuint index,
46 GLuint buffer,
47 GLintptr offset,
48 GLsizeiptr size) {
49 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindBufferRange");
50 gl_->BindBufferRange(target, index, buffer, offset, size);
53 void GLES2TraceImplementation::BindFramebuffer(GLenum target,
54 GLuint framebuffer) {
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,
82 GLclampf green,
83 GLclampf blue,
84 GLclampf alpha) {
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,
95 GLenum modeAlpha) {
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,
106 GLenum dstRGB,
107 GLenum srcAlpha,
108 GLenum dstAlpha) {
109 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendFuncSeparate");
110 gl_->BlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
113 void GLES2TraceImplementation::BufferData(GLenum target,
114 GLsizeiptr size,
115 const void* data,
116 GLenum usage) {
117 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BufferData");
118 gl_->BufferData(target, size, data, usage);
121 void GLES2TraceImplementation::BufferSubData(GLenum target,
122 GLintptr offset,
123 GLsizeiptr size,
124 const void* data) {
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");
136 gl_->Clear(mask);
139 void GLES2TraceImplementation::ClearBufferfi(GLenum buffer,
140 GLint drawbuffers,
141 GLfloat depth,
142 GLint stencil) {
143 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ClearBufferfi");
144 gl_->ClearBufferfi(buffer, drawbuffers, depth, stencil);
147 void GLES2TraceImplementation::ClearBufferfv(GLenum buffer,
148 GLint drawbuffers,
149 const GLfloat* value) {
150 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ClearBufferfv");
151 gl_->ClearBufferfv(buffer, drawbuffers, value);
154 void GLES2TraceImplementation::ClearBufferiv(GLenum buffer,
155 GLint drawbuffers,
156 const GLint* value) {
157 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ClearBufferiv");
158 gl_->ClearBufferiv(buffer, drawbuffers, value);
161 void GLES2TraceImplementation::ClearBufferuiv(GLenum buffer,
162 GLint drawbuffers,
163 const GLuint* value) {
164 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ClearBufferuiv");
165 gl_->ClearBufferuiv(buffer, drawbuffers, value);
168 void GLES2TraceImplementation::ClearColor(GLclampf red,
169 GLclampf green,
170 GLclampf blue,
171 GLclampf alpha) {
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,
187 GLbitfield flags,
188 GLuint64 timeout) {
189 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ClientWaitSync");
190 return gl_->ClientWaitSync(sync, flags, timeout);
193 void GLES2TraceImplementation::ColorMask(GLboolean red,
194 GLboolean green,
195 GLboolean blue,
196 GLboolean alpha) {
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,
207 GLint level,
208 GLenum internalformat,
209 GLsizei width,
210 GLsizei height,
211 GLint border,
212 GLsizei imageSize,
213 const void* data) {
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,
220 GLint level,
221 GLint xoffset,
222 GLint yoffset,
223 GLsizei width,
224 GLsizei height,
225 GLenum format,
226 GLsizei imageSize,
227 const void* data) {
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,
234 GLenum writetarget,
235 GLintptr readoffset,
236 GLintptr writeoffset,
237 GLsizeiptr size) {
238 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyBufferSubData");
239 gl_->CopyBufferSubData(readtarget, writetarget, readoffset, writeoffset,
240 size);
243 void GLES2TraceImplementation::CopyTexImage2D(GLenum target,
244 GLint level,
245 GLenum internalformat,
246 GLint x,
247 GLint y,
248 GLsizei width,
249 GLsizei height,
250 GLint border) {
251 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexImage2D");
252 gl_->CopyTexImage2D(target, level, internalformat, x, y, width, height,
253 border);
256 void GLES2TraceImplementation::CopyTexSubImage2D(GLenum target,
257 GLint level,
258 GLint xoffset,
259 GLint yoffset,
260 GLint x,
261 GLint y,
262 GLsizei width,
263 GLsizei height) {
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,
269 GLint level,
270 GLint xoffset,
271 GLint yoffset,
272 GLint zoffset,
273 GLint x,
274 GLint y,
275 GLsizei width,
276 GLsizei height) {
277 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexSubImage3D");
278 gl_->CopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width,
279 height);
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");
294 gl_->CullFace(mode);
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(
314 GLsizei n,
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,
343 const GLuint* ids) {
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");
370 gl_->Disable(cap);
373 void GLES2TraceImplementation::DisableVertexAttribArray(GLuint index) {
374 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DisableVertexAttribArray");
375 gl_->DisableVertexAttribArray(index);
378 void GLES2TraceImplementation::DrawArrays(GLenum mode,
379 GLint first,
380 GLsizei count) {
381 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawArrays");
382 gl_->DrawArrays(mode, first, count);
385 void GLES2TraceImplementation::DrawElements(GLenum mode,
386 GLsizei count,
387 GLenum type,
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");
395 gl_->Enable(cap);
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");
410 gl_->Finish();
413 void GLES2TraceImplementation::Flush() {
414 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Flush");
415 gl_->Flush();
418 void GLES2TraceImplementation::FramebufferRenderbuffer(
419 GLenum target,
420 GLenum attachment,
421 GLenum renderbuffertarget,
422 GLuint renderbuffer) {
423 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FramebufferRenderbuffer");
424 gl_->FramebufferRenderbuffer(target, attachment, renderbuffertarget,
425 renderbuffer);
428 void GLES2TraceImplementation::FramebufferTexture2D(GLenum target,
429 GLenum attachment,
430 GLenum textarget,
431 GLuint texture,
432 GLint level) {
433 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FramebufferTexture2D");
434 gl_->FramebufferTexture2D(target, attachment, textarget, texture, level);
437 void GLES2TraceImplementation::FramebufferTextureLayer(GLenum target,
438 GLenum attachment,
439 GLuint texture,
440 GLint level,
441 GLint layer) {
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,
489 GLuint index,
490 GLsizei bufsize,
491 GLsizei* length,
492 GLint* size,
493 GLenum* type,
494 char* name) {
495 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveAttrib");
496 gl_->GetActiveAttrib(program, index, bufsize, length, size, type, name);
499 void GLES2TraceImplementation::GetActiveUniform(GLuint program,
500 GLuint index,
501 GLsizei bufsize,
502 GLsizei* length,
503 GLint* size,
504 GLenum* type,
505 char* name) {
506 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniform");
507 gl_->GetActiveUniform(program, index, bufsize, length, size, type, name);
510 void GLES2TraceImplementation::GetActiveUniformBlockiv(GLuint program,
511 GLuint index,
512 GLenum pname,
513 GLint* params) {
514 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniformBlockiv");
515 gl_->GetActiveUniformBlockiv(program, index, pname, params);
518 void GLES2TraceImplementation::GetActiveUniformBlockName(GLuint program,
519 GLuint index,
520 GLsizei bufsize,
521 GLsizei* length,
522 char* name) {
523 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniformBlockName");
524 gl_->GetActiveUniformBlockName(program, index, bufsize, length, name);
527 void GLES2TraceImplementation::GetActiveUniformsiv(GLuint program,
528 GLsizei count,
529 const GLuint* indices,
530 GLenum pname,
531 GLint* params) {
532 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniformsiv");
533 gl_->GetActiveUniformsiv(program, count, indices, pname, params);
536 void GLES2TraceImplementation::GetAttachedShaders(GLuint program,
537 GLsizei maxcount,
538 GLsizei* count,
539 GLuint* shaders) {
540 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetAttachedShaders");
541 gl_->GetAttachedShaders(program, maxcount, count, shaders);
544 GLint GLES2TraceImplementation::GetAttribLocation(GLuint program,
545 const char* name) {
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,
556 GLenum pname,
557 GLint* params) {
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,
573 const char* name) {
574 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetFragDataLocation");
575 return gl_->GetFragDataLocation(program, name);
578 void GLES2TraceImplementation::GetFramebufferAttachmentParameteriv(
579 GLenum target,
580 GLenum attachment,
581 GLenum pname,
582 GLint* params) {
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,
594 GLenum format,
595 GLenum pname,
596 GLsizei bufSize,
597 GLint* params) {
598 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetInternalformativ");
599 gl_->GetInternalformativ(target, format, pname, bufSize, params);
602 void GLES2TraceImplementation::GetProgramiv(GLuint program,
603 GLenum pname,
604 GLint* params) {
605 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramiv");
606 gl_->GetProgramiv(program, pname, params);
609 void GLES2TraceImplementation::GetProgramInfoLog(GLuint program,
610 GLsizei bufsize,
611 GLsizei* length,
612 char* infolog) {
613 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramInfoLog");
614 gl_->GetProgramInfoLog(program, bufsize, length, infolog);
617 void GLES2TraceImplementation::GetRenderbufferParameteriv(GLenum target,
618 GLenum pname,
619 GLint* params) {
620 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
621 "GLES2Trace::GetRenderbufferParameteriv");
622 gl_->GetRenderbufferParameteriv(target, pname, params);
625 void GLES2TraceImplementation::GetSamplerParameterfv(GLuint sampler,
626 GLenum pname,
627 GLfloat* params) {
628 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetSamplerParameterfv");
629 gl_->GetSamplerParameterfv(sampler, pname, params);
632 void GLES2TraceImplementation::GetSamplerParameteriv(GLuint sampler,
633 GLenum pname,
634 GLint* params) {
635 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetSamplerParameteriv");
636 gl_->GetSamplerParameteriv(sampler, pname, params);
639 void GLES2TraceImplementation::GetShaderiv(GLuint shader,
640 GLenum pname,
641 GLint* params) {
642 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderiv");
643 gl_->GetShaderiv(shader, pname, params);
646 void GLES2TraceImplementation::GetShaderInfoLog(GLuint shader,
647 GLsizei bufsize,
648 GLsizei* length,
649 char* infolog) {
650 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderInfoLog");
651 gl_->GetShaderInfoLog(shader, bufsize, length, infolog);
654 void GLES2TraceImplementation::GetShaderPrecisionFormat(GLenum shadertype,
655 GLenum precisiontype,
656 GLint* range,
657 GLint* precision) {
658 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderPrecisionFormat");
659 gl_->GetShaderPrecisionFormat(shadertype, precisiontype, range, precision);
662 void GLES2TraceImplementation::GetShaderSource(GLuint shader,
663 GLsizei bufsize,
664 GLsizei* length,
665 char* source) {
666 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderSource");
667 gl_->GetShaderSource(shader, bufsize, length, source);
670 const GLubyte* GLES2TraceImplementation::GetString(GLenum name) {
671 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetString");
672 return gl_->GetString(name);
675 void GLES2TraceImplementation::GetSynciv(GLsync sync,
676 GLenum pname,
677 GLsizei bufsize,
678 GLsizei* length,
679 GLint* values) {
680 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetSynciv");
681 gl_->GetSynciv(sync, pname, bufsize, length, values);
684 void GLES2TraceImplementation::GetTexParameterfv(GLenum target,
685 GLenum pname,
686 GLfloat* params) {
687 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetTexParameterfv");
688 gl_->GetTexParameterfv(target, pname, params);
691 void GLES2TraceImplementation::GetTexParameteriv(GLenum target,
692 GLenum pname,
693 GLint* params) {
694 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetTexParameteriv");
695 gl_->GetTexParameteriv(target, pname, params);
698 void GLES2TraceImplementation::GetTransformFeedbackVarying(GLuint program,
699 GLuint index,
700 GLsizei bufsize,
701 GLsizei* length,
702 GLsizei* size,
703 GLenum* type,
704 char* name) {
705 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
706 "GLES2Trace::GetTransformFeedbackVarying");
707 gl_->GetTransformFeedbackVarying(program, index, bufsize, length, size, type,
708 name);
711 GLuint GLES2TraceImplementation::GetUniformBlockIndex(GLuint program,
712 const char* name) {
713 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformBlockIndex");
714 return gl_->GetUniformBlockIndex(program, name);
717 void GLES2TraceImplementation::GetUniformfv(GLuint program,
718 GLint location,
719 GLfloat* params) {
720 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformfv");
721 gl_->GetUniformfv(program, location, params);
724 void GLES2TraceImplementation::GetUniformiv(GLuint program,
725 GLint location,
726 GLint* params) {
727 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformiv");
728 gl_->GetUniformiv(program, location, params);
731 void GLES2TraceImplementation::GetUniformIndices(GLuint program,
732 GLsizei count,
733 const char* const* names,
734 GLuint* indices) {
735 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformIndices");
736 gl_->GetUniformIndices(program, count, names, indices);
739 GLint GLES2TraceImplementation::GetUniformLocation(GLuint program,
740 const char* name) {
741 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformLocation");
742 return gl_->GetUniformLocation(program, name);
745 void GLES2TraceImplementation::GetVertexAttribfv(GLuint index,
746 GLenum pname,
747 GLfloat* params) {
748 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribfv");
749 gl_->GetVertexAttribfv(index, pname, params);
752 void GLES2TraceImplementation::GetVertexAttribiv(GLuint index,
753 GLenum pname,
754 GLint* params) {
755 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribiv");
756 gl_->GetVertexAttribiv(index, pname, params);
759 void GLES2TraceImplementation::GetVertexAttribPointerv(GLuint index,
760 GLenum pname,
761 void** pointer) {
762 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribPointerv");
763 gl_->GetVertexAttribPointerv(index, pname, pointer);
766 void GLES2TraceImplementation::Hint(GLenum target, GLenum mode) {
767 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Hint");
768 gl_->Hint(target, mode);
771 void GLES2TraceImplementation::InvalidateFramebuffer(
772 GLenum target,
773 GLsizei count,
774 const GLenum* attachments) {
775 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InvalidateFramebuffer");
776 gl_->InvalidateFramebuffer(target, count, attachments);
779 void GLES2TraceImplementation::InvalidateSubFramebuffer(
780 GLenum target,
781 GLsizei count,
782 const GLenum* attachments,
783 GLint x,
784 GLint y,
785 GLsizei width,
786 GLsizei height) {
787 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InvalidateSubFramebuffer");
788 gl_->InvalidateSubFramebuffer(target, count, attachments, x, y, width,
789 height);
792 GLboolean GLES2TraceImplementation::IsBuffer(GLuint buffer) {
793 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsBuffer");
794 return gl_->IsBuffer(buffer);
797 GLboolean GLES2TraceImplementation::IsEnabled(GLenum cap) {
798 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsEnabled");
799 return gl_->IsEnabled(cap);
802 GLboolean GLES2TraceImplementation::IsFramebuffer(GLuint framebuffer) {
803 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsFramebuffer");
804 return gl_->IsFramebuffer(framebuffer);
807 GLboolean GLES2TraceImplementation::IsProgram(GLuint program) {
808 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsProgram");
809 return gl_->IsProgram(program);
812 GLboolean GLES2TraceImplementation::IsRenderbuffer(GLuint renderbuffer) {
813 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsRenderbuffer");
814 return gl_->IsRenderbuffer(renderbuffer);
817 GLboolean GLES2TraceImplementation::IsSampler(GLuint sampler) {
818 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsSampler");
819 return gl_->IsSampler(sampler);
822 GLboolean GLES2TraceImplementation::IsShader(GLuint shader) {
823 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsShader");
824 return gl_->IsShader(shader);
827 GLboolean GLES2TraceImplementation::IsSync(GLsync sync) {
828 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsSync");
829 return gl_->IsSync(sync);
832 GLboolean GLES2TraceImplementation::IsTexture(GLuint texture) {
833 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsTexture");
834 return gl_->IsTexture(texture);
837 GLboolean GLES2TraceImplementation::IsTransformFeedback(
838 GLuint transformfeedback) {
839 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsTransformFeedback");
840 return gl_->IsTransformFeedback(transformfeedback);
843 void GLES2TraceImplementation::LineWidth(GLfloat width) {
844 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LineWidth");
845 gl_->LineWidth(width);
848 void GLES2TraceImplementation::LinkProgram(GLuint program) {
849 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LinkProgram");
850 gl_->LinkProgram(program);
853 void GLES2TraceImplementation::PauseTransformFeedback() {
854 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PauseTransformFeedback");
855 gl_->PauseTransformFeedback();
858 void GLES2TraceImplementation::PixelStorei(GLenum pname, GLint param) {
859 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PixelStorei");
860 gl_->PixelStorei(pname, param);
863 void GLES2TraceImplementation::PolygonOffset(GLfloat factor, GLfloat units) {
864 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PolygonOffset");
865 gl_->PolygonOffset(factor, units);
868 void GLES2TraceImplementation::ReadBuffer(GLenum src) {
869 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReadBuffer");
870 gl_->ReadBuffer(src);
873 void GLES2TraceImplementation::ReadPixels(GLint x,
874 GLint y,
875 GLsizei width,
876 GLsizei height,
877 GLenum format,
878 GLenum type,
879 void* pixels) {
880 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReadPixels");
881 gl_->ReadPixels(x, y, width, height, format, type, pixels);
884 void GLES2TraceImplementation::ReleaseShaderCompiler() {
885 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReleaseShaderCompiler");
886 gl_->ReleaseShaderCompiler();
889 void GLES2TraceImplementation::RenderbufferStorage(GLenum target,
890 GLenum internalformat,
891 GLsizei width,
892 GLsizei height) {
893 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RenderbufferStorage");
894 gl_->RenderbufferStorage(target, internalformat, width, height);
897 void GLES2TraceImplementation::ResumeTransformFeedback() {
898 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ResumeTransformFeedback");
899 gl_->ResumeTransformFeedback();
902 void GLES2TraceImplementation::SampleCoverage(GLclampf value,
903 GLboolean invert) {
904 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SampleCoverage");
905 gl_->SampleCoverage(value, invert);
908 void GLES2TraceImplementation::SamplerParameterf(GLuint sampler,
909 GLenum pname,
910 GLfloat param) {
911 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameterf");
912 gl_->SamplerParameterf(sampler, pname, param);
915 void GLES2TraceImplementation::SamplerParameterfv(GLuint sampler,
916 GLenum pname,
917 const GLfloat* params) {
918 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameterfv");
919 gl_->SamplerParameterfv(sampler, pname, params);
922 void GLES2TraceImplementation::SamplerParameteri(GLuint sampler,
923 GLenum pname,
924 GLint param) {
925 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameteri");
926 gl_->SamplerParameteri(sampler, pname, param);
929 void GLES2TraceImplementation::SamplerParameteriv(GLuint sampler,
930 GLenum pname,
931 const GLint* params) {
932 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameteriv");
933 gl_->SamplerParameteriv(sampler, pname, params);
936 void GLES2TraceImplementation::Scissor(GLint x,
937 GLint y,
938 GLsizei width,
939 GLsizei height) {
940 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Scissor");
941 gl_->Scissor(x, y, width, height);
944 void GLES2TraceImplementation::ShaderBinary(GLsizei n,
945 const GLuint* shaders,
946 GLenum binaryformat,
947 const void* binary,
948 GLsizei length) {
949 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShaderBinary");
950 gl_->ShaderBinary(n, shaders, binaryformat, binary, length);
953 void GLES2TraceImplementation::ShaderSource(GLuint shader,
954 GLsizei count,
955 const GLchar* const* str,
956 const GLint* length) {
957 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShaderSource");
958 gl_->ShaderSource(shader, count, str, length);
961 void GLES2TraceImplementation::ShallowFinishCHROMIUM() {
962 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShallowFinishCHROMIUM");
963 gl_->ShallowFinishCHROMIUM();
966 void GLES2TraceImplementation::ShallowFlushCHROMIUM() {
967 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShallowFlushCHROMIUM");
968 gl_->ShallowFlushCHROMIUM();
971 void GLES2TraceImplementation::OrderingBarrierCHROMIUM() {
972 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::OrderingBarrierCHROMIUM");
973 gl_->OrderingBarrierCHROMIUM();
976 void GLES2TraceImplementation::StencilFunc(GLenum func,
977 GLint ref,
978 GLuint mask) {
979 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFunc");
980 gl_->StencilFunc(func, ref, mask);
983 void GLES2TraceImplementation::StencilFuncSeparate(GLenum face,
984 GLenum func,
985 GLint ref,
986 GLuint mask) {
987 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFuncSeparate");
988 gl_->StencilFuncSeparate(face, func, ref, mask);
991 void GLES2TraceImplementation::StencilMask(GLuint mask) {
992 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilMask");
993 gl_->StencilMask(mask);
996 void GLES2TraceImplementation::StencilMaskSeparate(GLenum face, GLuint mask) {
997 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilMaskSeparate");
998 gl_->StencilMaskSeparate(face, mask);
1001 void GLES2TraceImplementation::StencilOp(GLenum fail,
1002 GLenum zfail,
1003 GLenum zpass) {
1004 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilOp");
1005 gl_->StencilOp(fail, zfail, zpass);
1008 void GLES2TraceImplementation::StencilOpSeparate(GLenum face,
1009 GLenum fail,
1010 GLenum zfail,
1011 GLenum zpass) {
1012 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilOpSeparate");
1013 gl_->StencilOpSeparate(face, fail, zfail, zpass);
1016 void GLES2TraceImplementation::TexImage2D(GLenum target,
1017 GLint level,
1018 GLint internalformat,
1019 GLsizei width,
1020 GLsizei height,
1021 GLint border,
1022 GLenum format,
1023 GLenum type,
1024 const void* pixels) {
1025 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImage2D");
1026 gl_->TexImage2D(target, level, internalformat, width, height, border, format,
1027 type, pixels);
1030 void GLES2TraceImplementation::TexImage3D(GLenum target,
1031 GLint level,
1032 GLint internalformat,
1033 GLsizei width,
1034 GLsizei height,
1035 GLsizei depth,
1036 GLint border,
1037 GLenum format,
1038 GLenum type,
1039 const void* pixels) {
1040 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImage3D");
1041 gl_->TexImage3D(target, level, internalformat, width, height, depth, border,
1042 format, type, pixels);
1045 void GLES2TraceImplementation::TexParameterf(GLenum target,
1046 GLenum pname,
1047 GLfloat param) {
1048 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterf");
1049 gl_->TexParameterf(target, pname, param);
1052 void GLES2TraceImplementation::TexParameterfv(GLenum target,
1053 GLenum pname,
1054 const GLfloat* params) {
1055 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterfv");
1056 gl_->TexParameterfv(target, pname, params);
1059 void GLES2TraceImplementation::TexParameteri(GLenum target,
1060 GLenum pname,
1061 GLint param) {
1062 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameteri");
1063 gl_->TexParameteri(target, pname, param);
1066 void GLES2TraceImplementation::TexParameteriv(GLenum target,
1067 GLenum pname,
1068 const GLint* params) {
1069 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameteriv");
1070 gl_->TexParameteriv(target, pname, params);
1073 void GLES2TraceImplementation::TexStorage3D(GLenum target,
1074 GLsizei levels,
1075 GLenum internalFormat,
1076 GLsizei width,
1077 GLsizei height,
1078 GLsizei depth) {
1079 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexStorage3D");
1080 gl_->TexStorage3D(target, levels, internalFormat, width, height, depth);
1083 void GLES2TraceImplementation::TexSubImage2D(GLenum target,
1084 GLint level,
1085 GLint xoffset,
1086 GLint yoffset,
1087 GLsizei width,
1088 GLsizei height,
1089 GLenum format,
1090 GLenum type,
1091 const void* pixels) {
1092 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage2D");
1093 gl_->TexSubImage2D(target, level, xoffset, yoffset, width, height, format,
1094 type, pixels);
1097 void GLES2TraceImplementation::TexSubImage3D(GLenum target,
1098 GLint level,
1099 GLint xoffset,
1100 GLint yoffset,
1101 GLint zoffset,
1102 GLsizei width,
1103 GLsizei height,
1104 GLsizei depth,
1105 GLenum format,
1106 GLenum type,
1107 const void* pixels) {
1108 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage3D");
1109 gl_->TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height,
1110 depth, format, type, pixels);
1113 void GLES2TraceImplementation::TransformFeedbackVaryings(
1114 GLuint program,
1115 GLsizei count,
1116 const char* const* varyings,
1117 GLenum buffermode) {
1118 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TransformFeedbackVaryings");
1119 gl_->TransformFeedbackVaryings(program, count, varyings, buffermode);
1122 void GLES2TraceImplementation::Uniform1f(GLint location, GLfloat x) {
1123 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1f");
1124 gl_->Uniform1f(location, x);
1127 void GLES2TraceImplementation::Uniform1fv(GLint location,
1128 GLsizei count,
1129 const GLfloat* v) {
1130 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1fv");
1131 gl_->Uniform1fv(location, count, v);
1134 void GLES2TraceImplementation::Uniform1i(GLint location, GLint x) {
1135 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1i");
1136 gl_->Uniform1i(location, x);
1139 void GLES2TraceImplementation::Uniform1iv(GLint location,
1140 GLsizei count,
1141 const GLint* v) {
1142 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1iv");
1143 gl_->Uniform1iv(location, count, v);
1146 void GLES2TraceImplementation::Uniform1ui(GLint location, GLuint x) {
1147 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1ui");
1148 gl_->Uniform1ui(location, x);
1151 void GLES2TraceImplementation::Uniform1uiv(GLint location,
1152 GLsizei count,
1153 const GLuint* v) {
1154 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1uiv");
1155 gl_->Uniform1uiv(location, count, v);
1158 void GLES2TraceImplementation::Uniform2f(GLint location, GLfloat x, GLfloat y) {
1159 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2f");
1160 gl_->Uniform2f(location, x, y);
1163 void GLES2TraceImplementation::Uniform2fv(GLint location,
1164 GLsizei count,
1165 const GLfloat* v) {
1166 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2fv");
1167 gl_->Uniform2fv(location, count, v);
1170 void GLES2TraceImplementation::Uniform2i(GLint location, GLint x, GLint y) {
1171 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2i");
1172 gl_->Uniform2i(location, x, y);
1175 void GLES2TraceImplementation::Uniform2iv(GLint location,
1176 GLsizei count,
1177 const GLint* v) {
1178 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2iv");
1179 gl_->Uniform2iv(location, count, v);
1182 void GLES2TraceImplementation::Uniform2ui(GLint location, GLuint x, GLuint y) {
1183 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2ui");
1184 gl_->Uniform2ui(location, x, y);
1187 void GLES2TraceImplementation::Uniform2uiv(GLint location,
1188 GLsizei count,
1189 const GLuint* v) {
1190 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2uiv");
1191 gl_->Uniform2uiv(location, count, v);
1194 void GLES2TraceImplementation::Uniform3f(GLint location,
1195 GLfloat x,
1196 GLfloat y,
1197 GLfloat z) {
1198 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3f");
1199 gl_->Uniform3f(location, x, y, z);
1202 void GLES2TraceImplementation::Uniform3fv(GLint location,
1203 GLsizei count,
1204 const GLfloat* v) {
1205 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3fv");
1206 gl_->Uniform3fv(location, count, v);
1209 void GLES2TraceImplementation::Uniform3i(GLint location,
1210 GLint x,
1211 GLint y,
1212 GLint z) {
1213 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3i");
1214 gl_->Uniform3i(location, x, y, z);
1217 void GLES2TraceImplementation::Uniform3iv(GLint location,
1218 GLsizei count,
1219 const GLint* v) {
1220 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3iv");
1221 gl_->Uniform3iv(location, count, v);
1224 void GLES2TraceImplementation::Uniform3ui(GLint location,
1225 GLuint x,
1226 GLuint y,
1227 GLuint z) {
1228 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3ui");
1229 gl_->Uniform3ui(location, x, y, z);
1232 void GLES2TraceImplementation::Uniform3uiv(GLint location,
1233 GLsizei count,
1234 const GLuint* v) {
1235 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3uiv");
1236 gl_->Uniform3uiv(location, count, v);
1239 void GLES2TraceImplementation::Uniform4f(GLint location,
1240 GLfloat x,
1241 GLfloat y,
1242 GLfloat z,
1243 GLfloat w) {
1244 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4f");
1245 gl_->Uniform4f(location, x, y, z, w);
1248 void GLES2TraceImplementation::Uniform4fv(GLint location,
1249 GLsizei count,
1250 const GLfloat* v) {
1251 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4fv");
1252 gl_->Uniform4fv(location, count, v);
1255 void GLES2TraceImplementation::Uniform4i(GLint location,
1256 GLint x,
1257 GLint y,
1258 GLint z,
1259 GLint w) {
1260 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4i");
1261 gl_->Uniform4i(location, x, y, z, w);
1264 void GLES2TraceImplementation::Uniform4iv(GLint location,
1265 GLsizei count,
1266 const GLint* v) {
1267 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4iv");
1268 gl_->Uniform4iv(location, count, v);
1271 void GLES2TraceImplementation::Uniform4ui(GLint location,
1272 GLuint x,
1273 GLuint y,
1274 GLuint z,
1275 GLuint w) {
1276 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4ui");
1277 gl_->Uniform4ui(location, x, y, z, w);
1280 void GLES2TraceImplementation::Uniform4uiv(GLint location,
1281 GLsizei count,
1282 const GLuint* v) {
1283 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4uiv");
1284 gl_->Uniform4uiv(location, count, v);
1287 void GLES2TraceImplementation::UniformBlockBinding(GLuint program,
1288 GLuint index,
1289 GLuint binding) {
1290 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformBlockBinding");
1291 gl_->UniformBlockBinding(program, index, binding);
1294 void GLES2TraceImplementation::UniformMatrix2fv(GLint location,
1295 GLsizei count,
1296 GLboolean transpose,
1297 const GLfloat* value) {
1298 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2fv");
1299 gl_->UniformMatrix2fv(location, count, transpose, value);
1302 void GLES2TraceImplementation::UniformMatrix2x3fv(GLint location,
1303 GLsizei count,
1304 GLboolean transpose,
1305 const GLfloat* value) {
1306 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2x3fv");
1307 gl_->UniformMatrix2x3fv(location, count, transpose, value);
1310 void GLES2TraceImplementation::UniformMatrix2x4fv(GLint location,
1311 GLsizei count,
1312 GLboolean transpose,
1313 const GLfloat* value) {
1314 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2x4fv");
1315 gl_->UniformMatrix2x4fv(location, count, transpose, value);
1318 void GLES2TraceImplementation::UniformMatrix3fv(GLint location,
1319 GLsizei count,
1320 GLboolean transpose,
1321 const GLfloat* value) {
1322 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3fv");
1323 gl_->UniformMatrix3fv(location, count, transpose, value);
1326 void GLES2TraceImplementation::UniformMatrix3x2fv(GLint location,
1327 GLsizei count,
1328 GLboolean transpose,
1329 const GLfloat* value) {
1330 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3x2fv");
1331 gl_->UniformMatrix3x2fv(location, count, transpose, value);
1334 void GLES2TraceImplementation::UniformMatrix3x4fv(GLint location,
1335 GLsizei count,
1336 GLboolean transpose,
1337 const GLfloat* value) {
1338 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3x4fv");
1339 gl_->UniformMatrix3x4fv(location, count, transpose, value);
1342 void GLES2TraceImplementation::UniformMatrix4fv(GLint location,
1343 GLsizei count,
1344 GLboolean transpose,
1345 const GLfloat* value) {
1346 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4fv");
1347 gl_->UniformMatrix4fv(location, count, transpose, value);
1350 void GLES2TraceImplementation::UniformMatrix4x2fv(GLint location,
1351 GLsizei count,
1352 GLboolean transpose,
1353 const GLfloat* value) {
1354 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4x2fv");
1355 gl_->UniformMatrix4x2fv(location, count, transpose, value);
1358 void GLES2TraceImplementation::UniformMatrix4x3fv(GLint location,
1359 GLsizei count,
1360 GLboolean transpose,
1361 const GLfloat* value) {
1362 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4x3fv");
1363 gl_->UniformMatrix4x3fv(location, count, transpose, value);
1366 void GLES2TraceImplementation::UseProgram(GLuint program) {
1367 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UseProgram");
1368 gl_->UseProgram(program);
1371 void GLES2TraceImplementation::ValidateProgram(GLuint program) {
1372 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ValidateProgram");
1373 gl_->ValidateProgram(program);
1376 void GLES2TraceImplementation::VertexAttrib1f(GLuint indx, GLfloat x) {
1377 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib1f");
1378 gl_->VertexAttrib1f(indx, x);
1381 void GLES2TraceImplementation::VertexAttrib1fv(GLuint indx,
1382 const GLfloat* values) {
1383 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib1fv");
1384 gl_->VertexAttrib1fv(indx, values);
1387 void GLES2TraceImplementation::VertexAttrib2f(GLuint indx,
1388 GLfloat x,
1389 GLfloat y) {
1390 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib2f");
1391 gl_->VertexAttrib2f(indx, x, y);
1394 void GLES2TraceImplementation::VertexAttrib2fv(GLuint indx,
1395 const GLfloat* values) {
1396 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib2fv");
1397 gl_->VertexAttrib2fv(indx, values);
1400 void GLES2TraceImplementation::VertexAttrib3f(GLuint indx,
1401 GLfloat x,
1402 GLfloat y,
1403 GLfloat z) {
1404 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib3f");
1405 gl_->VertexAttrib3f(indx, x, y, z);
1408 void GLES2TraceImplementation::VertexAttrib3fv(GLuint indx,
1409 const GLfloat* values) {
1410 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib3fv");
1411 gl_->VertexAttrib3fv(indx, values);
1414 void GLES2TraceImplementation::VertexAttrib4f(GLuint indx,
1415 GLfloat x,
1416 GLfloat y,
1417 GLfloat z,
1418 GLfloat w) {
1419 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib4f");
1420 gl_->VertexAttrib4f(indx, x, y, z, w);
1423 void GLES2TraceImplementation::VertexAttrib4fv(GLuint indx,
1424 const GLfloat* values) {
1425 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib4fv");
1426 gl_->VertexAttrib4fv(indx, values);
1429 void GLES2TraceImplementation::VertexAttribI4i(GLuint indx,
1430 GLint x,
1431 GLint y,
1432 GLint z,
1433 GLint w) {
1434 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4i");
1435 gl_->VertexAttribI4i(indx, x, y, z, w);
1438 void GLES2TraceImplementation::VertexAttribI4iv(GLuint indx,
1439 const GLint* values) {
1440 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4iv");
1441 gl_->VertexAttribI4iv(indx, values);
1444 void GLES2TraceImplementation::VertexAttribI4ui(GLuint indx,
1445 GLuint x,
1446 GLuint y,
1447 GLuint z,
1448 GLuint w) {
1449 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4ui");
1450 gl_->VertexAttribI4ui(indx, x, y, z, w);
1453 void GLES2TraceImplementation::VertexAttribI4uiv(GLuint indx,
1454 const GLuint* values) {
1455 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4uiv");
1456 gl_->VertexAttribI4uiv(indx, values);
1459 void GLES2TraceImplementation::VertexAttribIPointer(GLuint indx,
1460 GLint size,
1461 GLenum type,
1462 GLsizei stride,
1463 const void* ptr) {
1464 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribIPointer");
1465 gl_->VertexAttribIPointer(indx, size, type, stride, ptr);
1468 void GLES2TraceImplementation::VertexAttribPointer(GLuint indx,
1469 GLint size,
1470 GLenum type,
1471 GLboolean normalized,
1472 GLsizei stride,
1473 const void* ptr) {
1474 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribPointer");
1475 gl_->VertexAttribPointer(indx, size, type, normalized, stride, ptr);
1478 void GLES2TraceImplementation::Viewport(GLint x,
1479 GLint y,
1480 GLsizei width,
1481 GLsizei height) {
1482 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Viewport");
1483 gl_->Viewport(x, y, width, height);
1486 void GLES2TraceImplementation::WaitSync(GLsync sync,
1487 GLbitfield flags,
1488 GLuint64 timeout) {
1489 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::WaitSync");
1490 gl_->WaitSync(sync, flags, timeout);
1493 void GLES2TraceImplementation::BlitFramebufferCHROMIUM(GLint srcX0,
1494 GLint srcY0,
1495 GLint srcX1,
1496 GLint srcY1,
1497 GLint dstX0,
1498 GLint dstY0,
1499 GLint dstX1,
1500 GLint dstY1,
1501 GLbitfield mask,
1502 GLenum filter) {
1503 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlitFramebufferCHROMIUM");
1504 gl_->BlitFramebufferCHROMIUM(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1,
1505 dstY1, mask, filter);
1508 void GLES2TraceImplementation::RenderbufferStorageMultisampleCHROMIUM(
1509 GLenum target,
1510 GLsizei samples,
1511 GLenum internalformat,
1512 GLsizei width,
1513 GLsizei height) {
1514 TRACE_EVENT_BINARY_EFFICIENT0(
1515 "gpu", "GLES2Trace::RenderbufferStorageMultisampleCHROMIUM");
1516 gl_->RenderbufferStorageMultisampleCHROMIUM(target, samples, internalformat,
1517 width, height);
1520 void GLES2TraceImplementation::RenderbufferStorageMultisampleEXT(
1521 GLenum target,
1522 GLsizei samples,
1523 GLenum internalformat,
1524 GLsizei width,
1525 GLsizei height) {
1526 TRACE_EVENT_BINARY_EFFICIENT0(
1527 "gpu", "GLES2Trace::RenderbufferStorageMultisampleEXT");
1528 gl_->RenderbufferStorageMultisampleEXT(target, samples, internalformat, width,
1529 height);
1532 void GLES2TraceImplementation::FramebufferTexture2DMultisampleEXT(
1533 GLenum target,
1534 GLenum attachment,
1535 GLenum textarget,
1536 GLuint texture,
1537 GLint level,
1538 GLsizei samples) {
1539 TRACE_EVENT_BINARY_EFFICIENT0(
1540 "gpu", "GLES2Trace::FramebufferTexture2DMultisampleEXT");
1541 gl_->FramebufferTexture2DMultisampleEXT(target, attachment, textarget,
1542 texture, level, samples);
1545 void GLES2TraceImplementation::TexStorage2DEXT(GLenum target,
1546 GLsizei levels,
1547 GLenum internalFormat,
1548 GLsizei width,
1549 GLsizei height) {
1550 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexStorage2DEXT");
1551 gl_->TexStorage2DEXT(target, levels, internalFormat, width, height);
1554 void GLES2TraceImplementation::GenQueriesEXT(GLsizei n, GLuint* queries) {
1555 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenQueriesEXT");
1556 gl_->GenQueriesEXT(n, queries);
1559 void GLES2TraceImplementation::DeleteQueriesEXT(GLsizei n,
1560 const GLuint* queries) {
1561 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteQueriesEXT");
1562 gl_->DeleteQueriesEXT(n, queries);
1565 GLboolean GLES2TraceImplementation::IsQueryEXT(GLuint id) {
1566 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsQueryEXT");
1567 return gl_->IsQueryEXT(id);
1570 void GLES2TraceImplementation::BeginQueryEXT(GLenum target, GLuint id) {
1571 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BeginQueryEXT");
1572 gl_->BeginQueryEXT(target, id);
1575 void GLES2TraceImplementation::BeginTransformFeedback(GLenum primitivemode) {
1576 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BeginTransformFeedback");
1577 gl_->BeginTransformFeedback(primitivemode);
1580 void GLES2TraceImplementation::EndQueryEXT(GLenum target) {
1581 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EndQueryEXT");
1582 gl_->EndQueryEXT(target);
1585 void GLES2TraceImplementation::EndTransformFeedback() {
1586 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EndTransformFeedback");
1587 gl_->EndTransformFeedback();
1590 void GLES2TraceImplementation::GetQueryivEXT(GLenum target,
1591 GLenum pname,
1592 GLint* params) {
1593 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryivEXT");
1594 gl_->GetQueryivEXT(target, pname, params);
1597 void GLES2TraceImplementation::GetQueryObjectuivEXT(GLuint id,
1598 GLenum pname,
1599 GLuint* params) {
1600 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryObjectuivEXT");
1601 gl_->GetQueryObjectuivEXT(id, pname, params);
1604 void GLES2TraceImplementation::InsertEventMarkerEXT(GLsizei length,
1605 const GLchar* marker) {
1606 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InsertEventMarkerEXT");
1607 gl_->InsertEventMarkerEXT(length, marker);
1610 void GLES2TraceImplementation::PushGroupMarkerEXT(GLsizei length,
1611 const GLchar* marker) {
1612 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PushGroupMarkerEXT");
1613 gl_->PushGroupMarkerEXT(length, marker);
1616 void GLES2TraceImplementation::PopGroupMarkerEXT() {
1617 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PopGroupMarkerEXT");
1618 gl_->PopGroupMarkerEXT();
1621 void GLES2TraceImplementation::GenVertexArraysOES(GLsizei n, GLuint* arrays) {
1622 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenVertexArraysOES");
1623 gl_->GenVertexArraysOES(n, arrays);
1626 void GLES2TraceImplementation::DeleteVertexArraysOES(GLsizei n,
1627 const GLuint* arrays) {
1628 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteVertexArraysOES");
1629 gl_->DeleteVertexArraysOES(n, arrays);
1632 GLboolean GLES2TraceImplementation::IsVertexArrayOES(GLuint array) {
1633 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsVertexArrayOES");
1634 return gl_->IsVertexArrayOES(array);
1637 void GLES2TraceImplementation::BindVertexArrayOES(GLuint array) {
1638 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindVertexArrayOES");
1639 gl_->BindVertexArrayOES(array);
1642 void GLES2TraceImplementation::SwapBuffers() {
1643 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SwapBuffers");
1644 gl_->SwapBuffers();
1647 GLuint GLES2TraceImplementation::GetMaxValueInBufferCHROMIUM(GLuint buffer_id,
1648 GLsizei count,
1649 GLenum type,
1650 GLuint offset) {
1651 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1652 "GLES2Trace::GetMaxValueInBufferCHROMIUM");
1653 return gl_->GetMaxValueInBufferCHROMIUM(buffer_id, count, type, offset);
1656 GLboolean GLES2TraceImplementation::EnableFeatureCHROMIUM(const char* feature) {
1657 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EnableFeatureCHROMIUM");
1658 return gl_->EnableFeatureCHROMIUM(feature);
1661 void* GLES2TraceImplementation::MapBufferCHROMIUM(GLuint target,
1662 GLenum access) {
1663 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferCHROMIUM");
1664 return gl_->MapBufferCHROMIUM(target, access);
1667 GLboolean GLES2TraceImplementation::UnmapBufferCHROMIUM(GLuint target) {
1668 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UnmapBufferCHROMIUM");
1669 return gl_->UnmapBufferCHROMIUM(target);
1672 void* GLES2TraceImplementation::MapBufferSubDataCHROMIUM(GLuint target,
1673 GLintptr offset,
1674 GLsizeiptr size,
1675 GLenum access) {
1676 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferSubDataCHROMIUM");
1677 return gl_->MapBufferSubDataCHROMIUM(target, offset, size, access);
1680 void GLES2TraceImplementation::UnmapBufferSubDataCHROMIUM(const void* mem) {
1681 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1682 "GLES2Trace::UnmapBufferSubDataCHROMIUM");
1683 gl_->UnmapBufferSubDataCHROMIUM(mem);
1686 void* GLES2TraceImplementation::MapTexSubImage2DCHROMIUM(GLenum target,
1687 GLint level,
1688 GLint xoffset,
1689 GLint yoffset,
1690 GLsizei width,
1691 GLsizei height,
1692 GLenum format,
1693 GLenum type,
1694 GLenum access) {
1695 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapTexSubImage2DCHROMIUM");
1696 return gl_->MapTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width,
1697 height, format, type, access);
1700 void GLES2TraceImplementation::UnmapTexSubImage2DCHROMIUM(const void* mem) {
1701 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1702 "GLES2Trace::UnmapTexSubImage2DCHROMIUM");
1703 gl_->UnmapTexSubImage2DCHROMIUM(mem);
1706 void GLES2TraceImplementation::ResizeCHROMIUM(GLuint width,
1707 GLuint height,
1708 GLfloat scale_factor) {
1709 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ResizeCHROMIUM");
1710 gl_->ResizeCHROMIUM(width, height, scale_factor);
1713 const GLchar* GLES2TraceImplementation::GetRequestableExtensionsCHROMIUM() {
1714 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1715 "GLES2Trace::GetRequestableExtensionsCHROMIUM");
1716 return gl_->GetRequestableExtensionsCHROMIUM();
1719 void GLES2TraceImplementation::RequestExtensionCHROMIUM(const char* extension) {
1720 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RequestExtensionCHROMIUM");
1721 gl_->RequestExtensionCHROMIUM(extension);
1724 void GLES2TraceImplementation::RateLimitOffscreenContextCHROMIUM() {
1725 TRACE_EVENT_BINARY_EFFICIENT0(
1726 "gpu", "GLES2Trace::RateLimitOffscreenContextCHROMIUM");
1727 gl_->RateLimitOffscreenContextCHROMIUM();
1730 void GLES2TraceImplementation::GetProgramInfoCHROMIUM(GLuint program,
1731 GLsizei bufsize,
1732 GLsizei* size,
1733 void* info) {
1734 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramInfoCHROMIUM");
1735 gl_->GetProgramInfoCHROMIUM(program, bufsize, size, info);
1738 void GLES2TraceImplementation::GetUniformBlocksCHROMIUM(GLuint program,
1739 GLsizei bufsize,
1740 GLsizei* size,
1741 void* info) {
1742 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformBlocksCHROMIUM");
1743 gl_->GetUniformBlocksCHROMIUM(program, bufsize, size, info);
1746 void GLES2TraceImplementation::GetTransformFeedbackVaryingsCHROMIUM(
1747 GLuint program,
1748 GLsizei bufsize,
1749 GLsizei* size,
1750 void* info) {
1751 TRACE_EVENT_BINARY_EFFICIENT0(
1752 "gpu", "GLES2Trace::GetTransformFeedbackVaryingsCHROMIUM");
1753 gl_->GetTransformFeedbackVaryingsCHROMIUM(program, bufsize, size, info);
1756 void GLES2TraceImplementation::GetUniformsES3CHROMIUM(GLuint program,
1757 GLsizei bufsize,
1758 GLsizei* size,
1759 void* info) {
1760 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformsES3CHROMIUM");
1761 gl_->GetUniformsES3CHROMIUM(program, bufsize, size, info);
1764 GLuint GLES2TraceImplementation::CreateStreamTextureCHROMIUM(GLuint texture) {
1765 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1766 "GLES2Trace::CreateStreamTextureCHROMIUM");
1767 return gl_->CreateStreamTextureCHROMIUM(texture);
1770 GLuint GLES2TraceImplementation::CreateImageCHROMIUM(ClientBuffer buffer,
1771 GLsizei width,
1772 GLsizei height,
1773 GLenum internalformat) {
1774 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateImageCHROMIUM");
1775 return gl_->CreateImageCHROMIUM(buffer, width, height, internalformat);
1778 void GLES2TraceImplementation::DestroyImageCHROMIUM(GLuint image_id) {
1779 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DestroyImageCHROMIUM");
1780 gl_->DestroyImageCHROMIUM(image_id);
1783 GLuint GLES2TraceImplementation::CreateGpuMemoryBufferImageCHROMIUM(
1784 GLsizei width,
1785 GLsizei height,
1786 GLenum internalformat,
1787 GLenum usage) {
1788 TRACE_EVENT_BINARY_EFFICIENT0(
1789 "gpu", "GLES2Trace::CreateGpuMemoryBufferImageCHROMIUM");
1790 return gl_->CreateGpuMemoryBufferImageCHROMIUM(width, height, internalformat,
1791 usage);
1794 void GLES2TraceImplementation::GetTranslatedShaderSourceANGLE(GLuint shader,
1795 GLsizei bufsize,
1796 GLsizei* length,
1797 char* source) {
1798 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1799 "GLES2Trace::GetTranslatedShaderSourceANGLE");
1800 gl_->GetTranslatedShaderSourceANGLE(shader, bufsize, length, source);
1803 void GLES2TraceImplementation::PostSubBufferCHROMIUM(GLint x,
1804 GLint y,
1805 GLint width,
1806 GLint height) {
1807 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PostSubBufferCHROMIUM");
1808 gl_->PostSubBufferCHROMIUM(x, y, width, height);
1811 void GLES2TraceImplementation::TexImageIOSurface2DCHROMIUM(GLenum target,
1812 GLsizei width,
1813 GLsizei height,
1814 GLuint ioSurfaceId,
1815 GLuint plane) {
1816 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1817 "GLES2Trace::TexImageIOSurface2DCHROMIUM");
1818 gl_->TexImageIOSurface2DCHROMIUM(target, width, height, ioSurfaceId, plane);
1821 void GLES2TraceImplementation::CopyTextureCHROMIUM(GLenum target,
1822 GLenum source_id,
1823 GLenum dest_id,
1824 GLint level,
1825 GLint internalformat,
1826 GLenum dest_type) {
1827 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTextureCHROMIUM");
1828 gl_->CopyTextureCHROMIUM(target, source_id, dest_id, level, internalformat,
1829 dest_type);
1832 void GLES2TraceImplementation::DrawArraysInstancedANGLE(GLenum mode,
1833 GLint first,
1834 GLsizei count,
1835 GLsizei primcount) {
1836 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawArraysInstancedANGLE");
1837 gl_->DrawArraysInstancedANGLE(mode, first, count, primcount);
1840 void GLES2TraceImplementation::DrawElementsInstancedANGLE(GLenum mode,
1841 GLsizei count,
1842 GLenum type,
1843 const void* indices,
1844 GLsizei primcount) {
1845 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1846 "GLES2Trace::DrawElementsInstancedANGLE");
1847 gl_->DrawElementsInstancedANGLE(mode, count, type, indices, primcount);
1850 void GLES2TraceImplementation::VertexAttribDivisorANGLE(GLuint index,
1851 GLuint divisor) {
1852 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribDivisorANGLE");
1853 gl_->VertexAttribDivisorANGLE(index, divisor);
1856 void GLES2TraceImplementation::GenMailboxCHROMIUM(GLbyte* mailbox) {
1857 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenMailboxCHROMIUM");
1858 gl_->GenMailboxCHROMIUM(mailbox);
1861 void GLES2TraceImplementation::ProduceTextureCHROMIUM(GLenum target,
1862 const GLbyte* mailbox) {
1863 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ProduceTextureCHROMIUM");
1864 gl_->ProduceTextureCHROMIUM(target, mailbox);
1867 void GLES2TraceImplementation::ProduceTextureDirectCHROMIUM(
1868 GLuint texture,
1869 GLenum target,
1870 const GLbyte* mailbox) {
1871 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1872 "GLES2Trace::ProduceTextureDirectCHROMIUM");
1873 gl_->ProduceTextureDirectCHROMIUM(texture, target, mailbox);
1876 void GLES2TraceImplementation::ConsumeTextureCHROMIUM(GLenum target,
1877 const GLbyte* mailbox) {
1878 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ConsumeTextureCHROMIUM");
1879 gl_->ConsumeTextureCHROMIUM(target, mailbox);
1882 GLuint GLES2TraceImplementation::CreateAndConsumeTextureCHROMIUM(
1883 GLenum target,
1884 const GLbyte* mailbox) {
1885 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1886 "GLES2Trace::CreateAndConsumeTextureCHROMIUM");
1887 return gl_->CreateAndConsumeTextureCHROMIUM(target, mailbox);
1890 void GLES2TraceImplementation::BindUniformLocationCHROMIUM(GLuint program,
1891 GLint location,
1892 const char* name) {
1893 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1894 "GLES2Trace::BindUniformLocationCHROMIUM");
1895 gl_->BindUniformLocationCHROMIUM(program, location, name);
1898 void GLES2TraceImplementation::GenValuebuffersCHROMIUM(GLsizei n,
1899 GLuint* buffers) {
1900 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenValuebuffersCHROMIUM");
1901 gl_->GenValuebuffersCHROMIUM(n, buffers);
1904 void GLES2TraceImplementation::DeleteValuebuffersCHROMIUM(
1905 GLsizei n,
1906 const GLuint* valuebuffers) {
1907 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1908 "GLES2Trace::DeleteValuebuffersCHROMIUM");
1909 gl_->DeleteValuebuffersCHROMIUM(n, valuebuffers);
1912 GLboolean GLES2TraceImplementation::IsValuebufferCHROMIUM(GLuint valuebuffer) {
1913 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsValuebufferCHROMIUM");
1914 return gl_->IsValuebufferCHROMIUM(valuebuffer);
1917 void GLES2TraceImplementation::BindValuebufferCHROMIUM(GLenum target,
1918 GLuint valuebuffer) {
1919 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindValuebufferCHROMIUM");
1920 gl_->BindValuebufferCHROMIUM(target, valuebuffer);
1923 void GLES2TraceImplementation::SubscribeValueCHROMIUM(GLenum target,
1924 GLenum subscription) {
1925 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SubscribeValueCHROMIUM");
1926 gl_->SubscribeValueCHROMIUM(target, subscription);
1929 void GLES2TraceImplementation::PopulateSubscribedValuesCHROMIUM(GLenum target) {
1930 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1931 "GLES2Trace::PopulateSubscribedValuesCHROMIUM");
1932 gl_->PopulateSubscribedValuesCHROMIUM(target);
1935 void GLES2TraceImplementation::UniformValuebufferCHROMIUM(GLint location,
1936 GLenum target,
1937 GLenum subscription) {
1938 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1939 "GLES2Trace::UniformValuebufferCHROMIUM");
1940 gl_->UniformValuebufferCHROMIUM(location, target, subscription);
1943 void GLES2TraceImplementation::BindTexImage2DCHROMIUM(GLenum target,
1944 GLint imageId) {
1945 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindTexImage2DCHROMIUM");
1946 gl_->BindTexImage2DCHROMIUM(target, imageId);
1949 void GLES2TraceImplementation::ReleaseTexImage2DCHROMIUM(GLenum target,
1950 GLint imageId) {
1951 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReleaseTexImage2DCHROMIUM");
1952 gl_->ReleaseTexImage2DCHROMIUM(target, imageId);
1955 void GLES2TraceImplementation::TraceBeginCHROMIUM(const char* category_name,
1956 const char* trace_name) {
1957 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TraceBeginCHROMIUM");
1958 gl_->TraceBeginCHROMIUM(category_name, trace_name);
1961 void GLES2TraceImplementation::TraceEndCHROMIUM() {
1962 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TraceEndCHROMIUM");
1963 gl_->TraceEndCHROMIUM();
1966 void GLES2TraceImplementation::AsyncTexSubImage2DCHROMIUM(GLenum target,
1967 GLint level,
1968 GLint xoffset,
1969 GLint yoffset,
1970 GLsizei width,
1971 GLsizei height,
1972 GLenum format,
1973 GLenum type,
1974 const void* data) {
1975 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1976 "GLES2Trace::AsyncTexSubImage2DCHROMIUM");
1977 gl_->AsyncTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width,
1978 height, format, type, data);
1981 void GLES2TraceImplementation::AsyncTexImage2DCHROMIUM(GLenum target,
1982 GLint level,
1983 GLenum internalformat,
1984 GLsizei width,
1985 GLsizei height,
1986 GLint border,
1987 GLenum format,
1988 GLenum type,
1989 const void* pixels) {
1990 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::AsyncTexImage2DCHROMIUM");
1991 gl_->AsyncTexImage2DCHROMIUM(target, level, internalformat, width, height,
1992 border, format, type, pixels);
1995 void GLES2TraceImplementation::WaitAsyncTexImage2DCHROMIUM(GLenum target) {
1996 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1997 "GLES2Trace::WaitAsyncTexImage2DCHROMIUM");
1998 gl_->WaitAsyncTexImage2DCHROMIUM(target);
2001 void GLES2TraceImplementation::WaitAllAsyncTexImage2DCHROMIUM() {
2002 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2003 "GLES2Trace::WaitAllAsyncTexImage2DCHROMIUM");
2004 gl_->WaitAllAsyncTexImage2DCHROMIUM();
2007 void GLES2TraceImplementation::DiscardFramebufferEXT(
2008 GLenum target,
2009 GLsizei count,
2010 const GLenum* attachments) {
2011 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DiscardFramebufferEXT");
2012 gl_->DiscardFramebufferEXT(target, count, attachments);
2015 void GLES2TraceImplementation::LoseContextCHROMIUM(GLenum current,
2016 GLenum other) {
2017 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LoseContextCHROMIUM");
2018 gl_->LoseContextCHROMIUM(current, other);
2021 GLuint GLES2TraceImplementation::InsertSyncPointCHROMIUM() {
2022 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InsertSyncPointCHROMIUM");
2023 return gl_->InsertSyncPointCHROMIUM();
2026 void GLES2TraceImplementation::WaitSyncPointCHROMIUM(GLuint sync_point) {
2027 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::WaitSyncPointCHROMIUM");
2028 gl_->WaitSyncPointCHROMIUM(sync_point);
2031 void GLES2TraceImplementation::DrawBuffersEXT(GLsizei count,
2032 const GLenum* bufs) {
2033 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawBuffersEXT");
2034 gl_->DrawBuffersEXT(count, bufs);
2037 void GLES2TraceImplementation::DiscardBackbufferCHROMIUM() {
2038 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DiscardBackbufferCHROMIUM");
2039 gl_->DiscardBackbufferCHROMIUM();
2042 void GLES2TraceImplementation::ScheduleOverlayPlaneCHROMIUM(
2043 GLint plane_z_order,
2044 GLenum plane_transform,
2045 GLuint overlay_texture_id,
2046 GLint bounds_x,
2047 GLint bounds_y,
2048 GLint bounds_width,
2049 GLint bounds_height,
2050 GLfloat uv_x,
2051 GLfloat uv_y,
2052 GLfloat uv_width,
2053 GLfloat uv_height) {
2054 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2055 "GLES2Trace::ScheduleOverlayPlaneCHROMIUM");
2056 gl_->ScheduleOverlayPlaneCHROMIUM(
2057 plane_z_order, plane_transform, overlay_texture_id, bounds_x, bounds_y,
2058 bounds_width, bounds_height, uv_x, uv_y, uv_width, uv_height);
2061 void GLES2TraceImplementation::SwapInterval(GLint interval) {
2062 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SwapInterval");
2063 gl_->SwapInterval(interval);
2066 void GLES2TraceImplementation::MatrixLoadfCHROMIUM(GLenum matrixMode,
2067 const GLfloat* m) {
2068 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MatrixLoadfCHROMIUM");
2069 gl_->MatrixLoadfCHROMIUM(matrixMode, m);
2072 void GLES2TraceImplementation::MatrixLoadIdentityCHROMIUM(GLenum matrixMode) {
2073 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2074 "GLES2Trace::MatrixLoadIdentityCHROMIUM");
2075 gl_->MatrixLoadIdentityCHROMIUM(matrixMode);
2078 void GLES2TraceImplementation::BlendBarrierKHR() {
2079 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendBarrierKHR");
2080 gl_->BlendBarrierKHR();
2083 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_