Fix crash on app list start page keyboard navigation with <4 apps.
[chromium-blink-merge.git] / gpu / command_buffer / client / gles2_trace_implementation_impl_autogen.h
blob8e6faa7a9c37b1a34940b993347a04b4f7cafb12
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::GetTexParameterfv(GLenum target,
676 GLenum pname,
677 GLfloat* params) {
678 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetTexParameterfv");
679 gl_->GetTexParameterfv(target, pname, params);
682 void GLES2TraceImplementation::GetTexParameteriv(GLenum target,
683 GLenum pname,
684 GLint* params) {
685 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetTexParameteriv");
686 gl_->GetTexParameteriv(target, pname, params);
689 void GLES2TraceImplementation::GetTransformFeedbackVarying(GLuint program,
690 GLuint index,
691 GLsizei bufsize,
692 GLsizei* length,
693 GLsizei* size,
694 GLenum* type,
695 char* name) {
696 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
697 "GLES2Trace::GetTransformFeedbackVarying");
698 gl_->GetTransformFeedbackVarying(program, index, bufsize, length, size, type,
699 name);
702 GLuint GLES2TraceImplementation::GetUniformBlockIndex(GLuint program,
703 const char* name) {
704 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformBlockIndex");
705 return gl_->GetUniformBlockIndex(program, name);
708 void GLES2TraceImplementation::GetUniformfv(GLuint program,
709 GLint location,
710 GLfloat* params) {
711 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformfv");
712 gl_->GetUniformfv(program, location, params);
715 void GLES2TraceImplementation::GetUniformiv(GLuint program,
716 GLint location,
717 GLint* params) {
718 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformiv");
719 gl_->GetUniformiv(program, location, params);
722 void GLES2TraceImplementation::GetUniformIndices(GLuint program,
723 GLsizei count,
724 const char* const* names,
725 GLuint* indices) {
726 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformIndices");
727 gl_->GetUniformIndices(program, count, names, indices);
730 GLint GLES2TraceImplementation::GetUniformLocation(GLuint program,
731 const char* name) {
732 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformLocation");
733 return gl_->GetUniformLocation(program, name);
736 void GLES2TraceImplementation::GetVertexAttribfv(GLuint index,
737 GLenum pname,
738 GLfloat* params) {
739 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribfv");
740 gl_->GetVertexAttribfv(index, pname, params);
743 void GLES2TraceImplementation::GetVertexAttribiv(GLuint index,
744 GLenum pname,
745 GLint* params) {
746 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribiv");
747 gl_->GetVertexAttribiv(index, pname, params);
750 void GLES2TraceImplementation::GetVertexAttribPointerv(GLuint index,
751 GLenum pname,
752 void** pointer) {
753 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribPointerv");
754 gl_->GetVertexAttribPointerv(index, pname, pointer);
757 void GLES2TraceImplementation::Hint(GLenum target, GLenum mode) {
758 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Hint");
759 gl_->Hint(target, mode);
762 void GLES2TraceImplementation::InvalidateFramebuffer(
763 GLenum target,
764 GLsizei count,
765 const GLenum* attachments) {
766 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InvalidateFramebuffer");
767 gl_->InvalidateFramebuffer(target, count, attachments);
770 void GLES2TraceImplementation::InvalidateSubFramebuffer(
771 GLenum target,
772 GLsizei count,
773 const GLenum* attachments,
774 GLint x,
775 GLint y,
776 GLsizei width,
777 GLsizei height) {
778 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InvalidateSubFramebuffer");
779 gl_->InvalidateSubFramebuffer(target, count, attachments, x, y, width,
780 height);
783 GLboolean GLES2TraceImplementation::IsBuffer(GLuint buffer) {
784 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsBuffer");
785 return gl_->IsBuffer(buffer);
788 GLboolean GLES2TraceImplementation::IsEnabled(GLenum cap) {
789 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsEnabled");
790 return gl_->IsEnabled(cap);
793 GLboolean GLES2TraceImplementation::IsFramebuffer(GLuint framebuffer) {
794 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsFramebuffer");
795 return gl_->IsFramebuffer(framebuffer);
798 GLboolean GLES2TraceImplementation::IsProgram(GLuint program) {
799 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsProgram");
800 return gl_->IsProgram(program);
803 GLboolean GLES2TraceImplementation::IsRenderbuffer(GLuint renderbuffer) {
804 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsRenderbuffer");
805 return gl_->IsRenderbuffer(renderbuffer);
808 GLboolean GLES2TraceImplementation::IsSampler(GLuint sampler) {
809 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsSampler");
810 return gl_->IsSampler(sampler);
813 GLboolean GLES2TraceImplementation::IsShader(GLuint shader) {
814 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsShader");
815 return gl_->IsShader(shader);
818 GLboolean GLES2TraceImplementation::IsSync(GLsync sync) {
819 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsSync");
820 return gl_->IsSync(sync);
823 GLboolean GLES2TraceImplementation::IsTexture(GLuint texture) {
824 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsTexture");
825 return gl_->IsTexture(texture);
828 GLboolean GLES2TraceImplementation::IsTransformFeedback(
829 GLuint transformfeedback) {
830 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsTransformFeedback");
831 return gl_->IsTransformFeedback(transformfeedback);
834 void GLES2TraceImplementation::LineWidth(GLfloat width) {
835 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LineWidth");
836 gl_->LineWidth(width);
839 void GLES2TraceImplementation::LinkProgram(GLuint program) {
840 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LinkProgram");
841 gl_->LinkProgram(program);
844 void GLES2TraceImplementation::PauseTransformFeedback() {
845 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PauseTransformFeedback");
846 gl_->PauseTransformFeedback();
849 void GLES2TraceImplementation::PixelStorei(GLenum pname, GLint param) {
850 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PixelStorei");
851 gl_->PixelStorei(pname, param);
854 void GLES2TraceImplementation::PolygonOffset(GLfloat factor, GLfloat units) {
855 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PolygonOffset");
856 gl_->PolygonOffset(factor, units);
859 void GLES2TraceImplementation::ReadBuffer(GLenum src) {
860 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReadBuffer");
861 gl_->ReadBuffer(src);
864 void GLES2TraceImplementation::ReadPixels(GLint x,
865 GLint y,
866 GLsizei width,
867 GLsizei height,
868 GLenum format,
869 GLenum type,
870 void* pixels) {
871 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReadPixels");
872 gl_->ReadPixels(x, y, width, height, format, type, pixels);
875 void GLES2TraceImplementation::ReleaseShaderCompiler() {
876 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReleaseShaderCompiler");
877 gl_->ReleaseShaderCompiler();
880 void GLES2TraceImplementation::RenderbufferStorage(GLenum target,
881 GLenum internalformat,
882 GLsizei width,
883 GLsizei height) {
884 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RenderbufferStorage");
885 gl_->RenderbufferStorage(target, internalformat, width, height);
888 void GLES2TraceImplementation::ResumeTransformFeedback() {
889 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ResumeTransformFeedback");
890 gl_->ResumeTransformFeedback();
893 void GLES2TraceImplementation::SampleCoverage(GLclampf value,
894 GLboolean invert) {
895 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SampleCoverage");
896 gl_->SampleCoverage(value, invert);
899 void GLES2TraceImplementation::SamplerParameterf(GLuint sampler,
900 GLenum pname,
901 GLfloat param) {
902 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameterf");
903 gl_->SamplerParameterf(sampler, pname, param);
906 void GLES2TraceImplementation::SamplerParameterfv(GLuint sampler,
907 GLenum pname,
908 const GLfloat* params) {
909 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameterfv");
910 gl_->SamplerParameterfv(sampler, pname, params);
913 void GLES2TraceImplementation::SamplerParameteri(GLuint sampler,
914 GLenum pname,
915 GLint param) {
916 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameteri");
917 gl_->SamplerParameteri(sampler, pname, param);
920 void GLES2TraceImplementation::SamplerParameteriv(GLuint sampler,
921 GLenum pname,
922 const GLint* params) {
923 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameteriv");
924 gl_->SamplerParameteriv(sampler, pname, params);
927 void GLES2TraceImplementation::Scissor(GLint x,
928 GLint y,
929 GLsizei width,
930 GLsizei height) {
931 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Scissor");
932 gl_->Scissor(x, y, width, height);
935 void GLES2TraceImplementation::ShaderBinary(GLsizei n,
936 const GLuint* shaders,
937 GLenum binaryformat,
938 const void* binary,
939 GLsizei length) {
940 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShaderBinary");
941 gl_->ShaderBinary(n, shaders, binaryformat, binary, length);
944 void GLES2TraceImplementation::ShaderSource(GLuint shader,
945 GLsizei count,
946 const GLchar* const* str,
947 const GLint* length) {
948 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShaderSource");
949 gl_->ShaderSource(shader, count, str, length);
952 void GLES2TraceImplementation::ShallowFinishCHROMIUM() {
953 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShallowFinishCHROMIUM");
954 gl_->ShallowFinishCHROMIUM();
957 void GLES2TraceImplementation::ShallowFlushCHROMIUM() {
958 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShallowFlushCHROMIUM");
959 gl_->ShallowFlushCHROMIUM();
962 void GLES2TraceImplementation::OrderingBarrierCHROMIUM() {
963 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::OrderingBarrierCHROMIUM");
964 gl_->OrderingBarrierCHROMIUM();
967 void GLES2TraceImplementation::StencilFunc(GLenum func,
968 GLint ref,
969 GLuint mask) {
970 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFunc");
971 gl_->StencilFunc(func, ref, mask);
974 void GLES2TraceImplementation::StencilFuncSeparate(GLenum face,
975 GLenum func,
976 GLint ref,
977 GLuint mask) {
978 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFuncSeparate");
979 gl_->StencilFuncSeparate(face, func, ref, mask);
982 void GLES2TraceImplementation::StencilMask(GLuint mask) {
983 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilMask");
984 gl_->StencilMask(mask);
987 void GLES2TraceImplementation::StencilMaskSeparate(GLenum face, GLuint mask) {
988 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilMaskSeparate");
989 gl_->StencilMaskSeparate(face, mask);
992 void GLES2TraceImplementation::StencilOp(GLenum fail,
993 GLenum zfail,
994 GLenum zpass) {
995 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilOp");
996 gl_->StencilOp(fail, zfail, zpass);
999 void GLES2TraceImplementation::StencilOpSeparate(GLenum face,
1000 GLenum fail,
1001 GLenum zfail,
1002 GLenum zpass) {
1003 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilOpSeparate");
1004 gl_->StencilOpSeparate(face, fail, zfail, zpass);
1007 void GLES2TraceImplementation::TexImage2D(GLenum target,
1008 GLint level,
1009 GLint internalformat,
1010 GLsizei width,
1011 GLsizei height,
1012 GLint border,
1013 GLenum format,
1014 GLenum type,
1015 const void* pixels) {
1016 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImage2D");
1017 gl_->TexImage2D(target, level, internalformat, width, height, border, format,
1018 type, pixels);
1021 void GLES2TraceImplementation::TexImage3D(GLenum target,
1022 GLint level,
1023 GLint internalformat,
1024 GLsizei width,
1025 GLsizei height,
1026 GLsizei depth,
1027 GLint border,
1028 GLenum format,
1029 GLenum type,
1030 const void* pixels) {
1031 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImage3D");
1032 gl_->TexImage3D(target, level, internalformat, width, height, depth, border,
1033 format, type, pixels);
1036 void GLES2TraceImplementation::TexParameterf(GLenum target,
1037 GLenum pname,
1038 GLfloat param) {
1039 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterf");
1040 gl_->TexParameterf(target, pname, param);
1043 void GLES2TraceImplementation::TexParameterfv(GLenum target,
1044 GLenum pname,
1045 const GLfloat* params) {
1046 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterfv");
1047 gl_->TexParameterfv(target, pname, params);
1050 void GLES2TraceImplementation::TexParameteri(GLenum target,
1051 GLenum pname,
1052 GLint param) {
1053 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameteri");
1054 gl_->TexParameteri(target, pname, param);
1057 void GLES2TraceImplementation::TexParameteriv(GLenum target,
1058 GLenum pname,
1059 const GLint* params) {
1060 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameteriv");
1061 gl_->TexParameteriv(target, pname, params);
1064 void GLES2TraceImplementation::TexStorage3D(GLenum target,
1065 GLsizei levels,
1066 GLenum internalFormat,
1067 GLsizei width,
1068 GLsizei height,
1069 GLsizei depth) {
1070 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexStorage3D");
1071 gl_->TexStorage3D(target, levels, internalFormat, width, height, depth);
1074 void GLES2TraceImplementation::TexSubImage2D(GLenum target,
1075 GLint level,
1076 GLint xoffset,
1077 GLint yoffset,
1078 GLsizei width,
1079 GLsizei height,
1080 GLenum format,
1081 GLenum type,
1082 const void* pixels) {
1083 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage2D");
1084 gl_->TexSubImage2D(target, level, xoffset, yoffset, width, height, format,
1085 type, pixels);
1088 void GLES2TraceImplementation::TexSubImage3D(GLenum target,
1089 GLint level,
1090 GLint xoffset,
1091 GLint yoffset,
1092 GLint zoffset,
1093 GLsizei width,
1094 GLsizei height,
1095 GLsizei depth,
1096 GLenum format,
1097 GLenum type,
1098 const void* pixels) {
1099 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage3D");
1100 gl_->TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height,
1101 depth, format, type, pixels);
1104 void GLES2TraceImplementation::TransformFeedbackVaryings(
1105 GLuint program,
1106 GLsizei count,
1107 const char* const* varyings,
1108 GLenum buffermode) {
1109 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TransformFeedbackVaryings");
1110 gl_->TransformFeedbackVaryings(program, count, varyings, buffermode);
1113 void GLES2TraceImplementation::Uniform1f(GLint location, GLfloat x) {
1114 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1f");
1115 gl_->Uniform1f(location, x);
1118 void GLES2TraceImplementation::Uniform1fv(GLint location,
1119 GLsizei count,
1120 const GLfloat* v) {
1121 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1fv");
1122 gl_->Uniform1fv(location, count, v);
1125 void GLES2TraceImplementation::Uniform1i(GLint location, GLint x) {
1126 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1i");
1127 gl_->Uniform1i(location, x);
1130 void GLES2TraceImplementation::Uniform1iv(GLint location,
1131 GLsizei count,
1132 const GLint* v) {
1133 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1iv");
1134 gl_->Uniform1iv(location, count, v);
1137 void GLES2TraceImplementation::Uniform1ui(GLint location, GLuint x) {
1138 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1ui");
1139 gl_->Uniform1ui(location, x);
1142 void GLES2TraceImplementation::Uniform1uiv(GLint location,
1143 GLsizei count,
1144 const GLuint* v) {
1145 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1uiv");
1146 gl_->Uniform1uiv(location, count, v);
1149 void GLES2TraceImplementation::Uniform2f(GLint location, GLfloat x, GLfloat y) {
1150 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2f");
1151 gl_->Uniform2f(location, x, y);
1154 void GLES2TraceImplementation::Uniform2fv(GLint location,
1155 GLsizei count,
1156 const GLfloat* v) {
1157 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2fv");
1158 gl_->Uniform2fv(location, count, v);
1161 void GLES2TraceImplementation::Uniform2i(GLint location, GLint x, GLint y) {
1162 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2i");
1163 gl_->Uniform2i(location, x, y);
1166 void GLES2TraceImplementation::Uniform2iv(GLint location,
1167 GLsizei count,
1168 const GLint* v) {
1169 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2iv");
1170 gl_->Uniform2iv(location, count, v);
1173 void GLES2TraceImplementation::Uniform2ui(GLint location, GLuint x, GLuint y) {
1174 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2ui");
1175 gl_->Uniform2ui(location, x, y);
1178 void GLES2TraceImplementation::Uniform2uiv(GLint location,
1179 GLsizei count,
1180 const GLuint* v) {
1181 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2uiv");
1182 gl_->Uniform2uiv(location, count, v);
1185 void GLES2TraceImplementation::Uniform3f(GLint location,
1186 GLfloat x,
1187 GLfloat y,
1188 GLfloat z) {
1189 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3f");
1190 gl_->Uniform3f(location, x, y, z);
1193 void GLES2TraceImplementation::Uniform3fv(GLint location,
1194 GLsizei count,
1195 const GLfloat* v) {
1196 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3fv");
1197 gl_->Uniform3fv(location, count, v);
1200 void GLES2TraceImplementation::Uniform3i(GLint location,
1201 GLint x,
1202 GLint y,
1203 GLint z) {
1204 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3i");
1205 gl_->Uniform3i(location, x, y, z);
1208 void GLES2TraceImplementation::Uniform3iv(GLint location,
1209 GLsizei count,
1210 const GLint* v) {
1211 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3iv");
1212 gl_->Uniform3iv(location, count, v);
1215 void GLES2TraceImplementation::Uniform3ui(GLint location,
1216 GLuint x,
1217 GLuint y,
1218 GLuint z) {
1219 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3ui");
1220 gl_->Uniform3ui(location, x, y, z);
1223 void GLES2TraceImplementation::Uniform3uiv(GLint location,
1224 GLsizei count,
1225 const GLuint* v) {
1226 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3uiv");
1227 gl_->Uniform3uiv(location, count, v);
1230 void GLES2TraceImplementation::Uniform4f(GLint location,
1231 GLfloat x,
1232 GLfloat y,
1233 GLfloat z,
1234 GLfloat w) {
1235 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4f");
1236 gl_->Uniform4f(location, x, y, z, w);
1239 void GLES2TraceImplementation::Uniform4fv(GLint location,
1240 GLsizei count,
1241 const GLfloat* v) {
1242 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4fv");
1243 gl_->Uniform4fv(location, count, v);
1246 void GLES2TraceImplementation::Uniform4i(GLint location,
1247 GLint x,
1248 GLint y,
1249 GLint z,
1250 GLint w) {
1251 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4i");
1252 gl_->Uniform4i(location, x, y, z, w);
1255 void GLES2TraceImplementation::Uniform4iv(GLint location,
1256 GLsizei count,
1257 const GLint* v) {
1258 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4iv");
1259 gl_->Uniform4iv(location, count, v);
1262 void GLES2TraceImplementation::Uniform4ui(GLint location,
1263 GLuint x,
1264 GLuint y,
1265 GLuint z,
1266 GLuint w) {
1267 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4ui");
1268 gl_->Uniform4ui(location, x, y, z, w);
1271 void GLES2TraceImplementation::Uniform4uiv(GLint location,
1272 GLsizei count,
1273 const GLuint* v) {
1274 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4uiv");
1275 gl_->Uniform4uiv(location, count, v);
1278 void GLES2TraceImplementation::UniformBlockBinding(GLuint program,
1279 GLuint index,
1280 GLuint binding) {
1281 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformBlockBinding");
1282 gl_->UniformBlockBinding(program, index, binding);
1285 void GLES2TraceImplementation::UniformMatrix2fv(GLint location,
1286 GLsizei count,
1287 GLboolean transpose,
1288 const GLfloat* value) {
1289 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2fv");
1290 gl_->UniformMatrix2fv(location, count, transpose, value);
1293 void GLES2TraceImplementation::UniformMatrix2x3fv(GLint location,
1294 GLsizei count,
1295 GLboolean transpose,
1296 const GLfloat* value) {
1297 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2x3fv");
1298 gl_->UniformMatrix2x3fv(location, count, transpose, value);
1301 void GLES2TraceImplementation::UniformMatrix2x4fv(GLint location,
1302 GLsizei count,
1303 GLboolean transpose,
1304 const GLfloat* value) {
1305 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2x4fv");
1306 gl_->UniformMatrix2x4fv(location, count, transpose, value);
1309 void GLES2TraceImplementation::UniformMatrix3fv(GLint location,
1310 GLsizei count,
1311 GLboolean transpose,
1312 const GLfloat* value) {
1313 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3fv");
1314 gl_->UniformMatrix3fv(location, count, transpose, value);
1317 void GLES2TraceImplementation::UniformMatrix3x2fv(GLint location,
1318 GLsizei count,
1319 GLboolean transpose,
1320 const GLfloat* value) {
1321 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3x2fv");
1322 gl_->UniformMatrix3x2fv(location, count, transpose, value);
1325 void GLES2TraceImplementation::UniformMatrix3x4fv(GLint location,
1326 GLsizei count,
1327 GLboolean transpose,
1328 const GLfloat* value) {
1329 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3x4fv");
1330 gl_->UniformMatrix3x4fv(location, count, transpose, value);
1333 void GLES2TraceImplementation::UniformMatrix4fv(GLint location,
1334 GLsizei count,
1335 GLboolean transpose,
1336 const GLfloat* value) {
1337 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4fv");
1338 gl_->UniformMatrix4fv(location, count, transpose, value);
1341 void GLES2TraceImplementation::UniformMatrix4x2fv(GLint location,
1342 GLsizei count,
1343 GLboolean transpose,
1344 const GLfloat* value) {
1345 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4x2fv");
1346 gl_->UniformMatrix4x2fv(location, count, transpose, value);
1349 void GLES2TraceImplementation::UniformMatrix4x3fv(GLint location,
1350 GLsizei count,
1351 GLboolean transpose,
1352 const GLfloat* value) {
1353 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4x3fv");
1354 gl_->UniformMatrix4x3fv(location, count, transpose, value);
1357 void GLES2TraceImplementation::UseProgram(GLuint program) {
1358 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UseProgram");
1359 gl_->UseProgram(program);
1362 void GLES2TraceImplementation::ValidateProgram(GLuint program) {
1363 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ValidateProgram");
1364 gl_->ValidateProgram(program);
1367 void GLES2TraceImplementation::VertexAttrib1f(GLuint indx, GLfloat x) {
1368 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib1f");
1369 gl_->VertexAttrib1f(indx, x);
1372 void GLES2TraceImplementation::VertexAttrib1fv(GLuint indx,
1373 const GLfloat* values) {
1374 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib1fv");
1375 gl_->VertexAttrib1fv(indx, values);
1378 void GLES2TraceImplementation::VertexAttrib2f(GLuint indx,
1379 GLfloat x,
1380 GLfloat y) {
1381 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib2f");
1382 gl_->VertexAttrib2f(indx, x, y);
1385 void GLES2TraceImplementation::VertexAttrib2fv(GLuint indx,
1386 const GLfloat* values) {
1387 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib2fv");
1388 gl_->VertexAttrib2fv(indx, values);
1391 void GLES2TraceImplementation::VertexAttrib3f(GLuint indx,
1392 GLfloat x,
1393 GLfloat y,
1394 GLfloat z) {
1395 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib3f");
1396 gl_->VertexAttrib3f(indx, x, y, z);
1399 void GLES2TraceImplementation::VertexAttrib3fv(GLuint indx,
1400 const GLfloat* values) {
1401 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib3fv");
1402 gl_->VertexAttrib3fv(indx, values);
1405 void GLES2TraceImplementation::VertexAttrib4f(GLuint indx,
1406 GLfloat x,
1407 GLfloat y,
1408 GLfloat z,
1409 GLfloat w) {
1410 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib4f");
1411 gl_->VertexAttrib4f(indx, x, y, z, w);
1414 void GLES2TraceImplementation::VertexAttrib4fv(GLuint indx,
1415 const GLfloat* values) {
1416 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib4fv");
1417 gl_->VertexAttrib4fv(indx, values);
1420 void GLES2TraceImplementation::VertexAttribI4i(GLuint indx,
1421 GLint x,
1422 GLint y,
1423 GLint z,
1424 GLint w) {
1425 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4i");
1426 gl_->VertexAttribI4i(indx, x, y, z, w);
1429 void GLES2TraceImplementation::VertexAttribI4iv(GLuint indx,
1430 const GLint* values) {
1431 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4iv");
1432 gl_->VertexAttribI4iv(indx, values);
1435 void GLES2TraceImplementation::VertexAttribI4ui(GLuint indx,
1436 GLuint x,
1437 GLuint y,
1438 GLuint z,
1439 GLuint w) {
1440 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4ui");
1441 gl_->VertexAttribI4ui(indx, x, y, z, w);
1444 void GLES2TraceImplementation::VertexAttribI4uiv(GLuint indx,
1445 const GLuint* values) {
1446 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4uiv");
1447 gl_->VertexAttribI4uiv(indx, values);
1450 void GLES2TraceImplementation::VertexAttribIPointer(GLuint indx,
1451 GLint size,
1452 GLenum type,
1453 GLsizei stride,
1454 const void* ptr) {
1455 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribIPointer");
1456 gl_->VertexAttribIPointer(indx, size, type, stride, ptr);
1459 void GLES2TraceImplementation::VertexAttribPointer(GLuint indx,
1460 GLint size,
1461 GLenum type,
1462 GLboolean normalized,
1463 GLsizei stride,
1464 const void* ptr) {
1465 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribPointer");
1466 gl_->VertexAttribPointer(indx, size, type, normalized, stride, ptr);
1469 void GLES2TraceImplementation::Viewport(GLint x,
1470 GLint y,
1471 GLsizei width,
1472 GLsizei height) {
1473 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Viewport");
1474 gl_->Viewport(x, y, width, height);
1477 void GLES2TraceImplementation::WaitSync(GLsync sync,
1478 GLbitfield flags,
1479 GLuint64 timeout) {
1480 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::WaitSync");
1481 gl_->WaitSync(sync, flags, timeout);
1484 void GLES2TraceImplementation::BlitFramebufferCHROMIUM(GLint srcX0,
1485 GLint srcY0,
1486 GLint srcX1,
1487 GLint srcY1,
1488 GLint dstX0,
1489 GLint dstY0,
1490 GLint dstX1,
1491 GLint dstY1,
1492 GLbitfield mask,
1493 GLenum filter) {
1494 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlitFramebufferCHROMIUM");
1495 gl_->BlitFramebufferCHROMIUM(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1,
1496 dstY1, mask, filter);
1499 void GLES2TraceImplementation::RenderbufferStorageMultisampleCHROMIUM(
1500 GLenum target,
1501 GLsizei samples,
1502 GLenum internalformat,
1503 GLsizei width,
1504 GLsizei height) {
1505 TRACE_EVENT_BINARY_EFFICIENT0(
1506 "gpu", "GLES2Trace::RenderbufferStorageMultisampleCHROMIUM");
1507 gl_->RenderbufferStorageMultisampleCHROMIUM(target, samples, internalformat,
1508 width, height);
1511 void GLES2TraceImplementation::RenderbufferStorageMultisampleEXT(
1512 GLenum target,
1513 GLsizei samples,
1514 GLenum internalformat,
1515 GLsizei width,
1516 GLsizei height) {
1517 TRACE_EVENT_BINARY_EFFICIENT0(
1518 "gpu", "GLES2Trace::RenderbufferStorageMultisampleEXT");
1519 gl_->RenderbufferStorageMultisampleEXT(target, samples, internalformat, width,
1520 height);
1523 void GLES2TraceImplementation::FramebufferTexture2DMultisampleEXT(
1524 GLenum target,
1525 GLenum attachment,
1526 GLenum textarget,
1527 GLuint texture,
1528 GLint level,
1529 GLsizei samples) {
1530 TRACE_EVENT_BINARY_EFFICIENT0(
1531 "gpu", "GLES2Trace::FramebufferTexture2DMultisampleEXT");
1532 gl_->FramebufferTexture2DMultisampleEXT(target, attachment, textarget,
1533 texture, level, samples);
1536 void GLES2TraceImplementation::TexStorage2DEXT(GLenum target,
1537 GLsizei levels,
1538 GLenum internalFormat,
1539 GLsizei width,
1540 GLsizei height) {
1541 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexStorage2DEXT");
1542 gl_->TexStorage2DEXT(target, levels, internalFormat, width, height);
1545 void GLES2TraceImplementation::GenQueriesEXT(GLsizei n, GLuint* queries) {
1546 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenQueriesEXT");
1547 gl_->GenQueriesEXT(n, queries);
1550 void GLES2TraceImplementation::DeleteQueriesEXT(GLsizei n,
1551 const GLuint* queries) {
1552 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteQueriesEXT");
1553 gl_->DeleteQueriesEXT(n, queries);
1556 GLboolean GLES2TraceImplementation::IsQueryEXT(GLuint id) {
1557 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsQueryEXT");
1558 return gl_->IsQueryEXT(id);
1561 void GLES2TraceImplementation::BeginQueryEXT(GLenum target, GLuint id) {
1562 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BeginQueryEXT");
1563 gl_->BeginQueryEXT(target, id);
1566 void GLES2TraceImplementation::BeginTransformFeedback(GLenum primitivemode) {
1567 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BeginTransformFeedback");
1568 gl_->BeginTransformFeedback(primitivemode);
1571 void GLES2TraceImplementation::EndQueryEXT(GLenum target) {
1572 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EndQueryEXT");
1573 gl_->EndQueryEXT(target);
1576 void GLES2TraceImplementation::EndTransformFeedback() {
1577 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EndTransformFeedback");
1578 gl_->EndTransformFeedback();
1581 void GLES2TraceImplementation::GetQueryivEXT(GLenum target,
1582 GLenum pname,
1583 GLint* params) {
1584 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryivEXT");
1585 gl_->GetQueryivEXT(target, pname, params);
1588 void GLES2TraceImplementation::GetQueryObjectuivEXT(GLuint id,
1589 GLenum pname,
1590 GLuint* params) {
1591 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryObjectuivEXT");
1592 gl_->GetQueryObjectuivEXT(id, pname, params);
1595 void GLES2TraceImplementation::InsertEventMarkerEXT(GLsizei length,
1596 const GLchar* marker) {
1597 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InsertEventMarkerEXT");
1598 gl_->InsertEventMarkerEXT(length, marker);
1601 void GLES2TraceImplementation::PushGroupMarkerEXT(GLsizei length,
1602 const GLchar* marker) {
1603 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PushGroupMarkerEXT");
1604 gl_->PushGroupMarkerEXT(length, marker);
1607 void GLES2TraceImplementation::PopGroupMarkerEXT() {
1608 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PopGroupMarkerEXT");
1609 gl_->PopGroupMarkerEXT();
1612 void GLES2TraceImplementation::GenVertexArraysOES(GLsizei n, GLuint* arrays) {
1613 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenVertexArraysOES");
1614 gl_->GenVertexArraysOES(n, arrays);
1617 void GLES2TraceImplementation::DeleteVertexArraysOES(GLsizei n,
1618 const GLuint* arrays) {
1619 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteVertexArraysOES");
1620 gl_->DeleteVertexArraysOES(n, arrays);
1623 GLboolean GLES2TraceImplementation::IsVertexArrayOES(GLuint array) {
1624 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsVertexArrayOES");
1625 return gl_->IsVertexArrayOES(array);
1628 void GLES2TraceImplementation::BindVertexArrayOES(GLuint array) {
1629 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindVertexArrayOES");
1630 gl_->BindVertexArrayOES(array);
1633 void GLES2TraceImplementation::SwapBuffers() {
1634 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SwapBuffers");
1635 gl_->SwapBuffers();
1638 GLuint GLES2TraceImplementation::GetMaxValueInBufferCHROMIUM(GLuint buffer_id,
1639 GLsizei count,
1640 GLenum type,
1641 GLuint offset) {
1642 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1643 "GLES2Trace::GetMaxValueInBufferCHROMIUM");
1644 return gl_->GetMaxValueInBufferCHROMIUM(buffer_id, count, type, offset);
1647 GLboolean GLES2TraceImplementation::EnableFeatureCHROMIUM(const char* feature) {
1648 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EnableFeatureCHROMIUM");
1649 return gl_->EnableFeatureCHROMIUM(feature);
1652 void* GLES2TraceImplementation::MapBufferCHROMIUM(GLuint target,
1653 GLenum access) {
1654 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferCHROMIUM");
1655 return gl_->MapBufferCHROMIUM(target, access);
1658 GLboolean GLES2TraceImplementation::UnmapBufferCHROMIUM(GLuint target) {
1659 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UnmapBufferCHROMIUM");
1660 return gl_->UnmapBufferCHROMIUM(target);
1663 void* GLES2TraceImplementation::MapBufferSubDataCHROMIUM(GLuint target,
1664 GLintptr offset,
1665 GLsizeiptr size,
1666 GLenum access) {
1667 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferSubDataCHROMIUM");
1668 return gl_->MapBufferSubDataCHROMIUM(target, offset, size, access);
1671 void GLES2TraceImplementation::UnmapBufferSubDataCHROMIUM(const void* mem) {
1672 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1673 "GLES2Trace::UnmapBufferSubDataCHROMIUM");
1674 gl_->UnmapBufferSubDataCHROMIUM(mem);
1677 void* GLES2TraceImplementation::MapTexSubImage2DCHROMIUM(GLenum target,
1678 GLint level,
1679 GLint xoffset,
1680 GLint yoffset,
1681 GLsizei width,
1682 GLsizei height,
1683 GLenum format,
1684 GLenum type,
1685 GLenum access) {
1686 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapTexSubImage2DCHROMIUM");
1687 return gl_->MapTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width,
1688 height, format, type, access);
1691 void GLES2TraceImplementation::UnmapTexSubImage2DCHROMIUM(const void* mem) {
1692 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1693 "GLES2Trace::UnmapTexSubImage2DCHROMIUM");
1694 gl_->UnmapTexSubImage2DCHROMIUM(mem);
1697 void GLES2TraceImplementation::ResizeCHROMIUM(GLuint width,
1698 GLuint height,
1699 GLfloat scale_factor) {
1700 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ResizeCHROMIUM");
1701 gl_->ResizeCHROMIUM(width, height, scale_factor);
1704 const GLchar* GLES2TraceImplementation::GetRequestableExtensionsCHROMIUM() {
1705 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1706 "GLES2Trace::GetRequestableExtensionsCHROMIUM");
1707 return gl_->GetRequestableExtensionsCHROMIUM();
1710 void GLES2TraceImplementation::RequestExtensionCHROMIUM(const char* extension) {
1711 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RequestExtensionCHROMIUM");
1712 gl_->RequestExtensionCHROMIUM(extension);
1715 void GLES2TraceImplementation::RateLimitOffscreenContextCHROMIUM() {
1716 TRACE_EVENT_BINARY_EFFICIENT0(
1717 "gpu", "GLES2Trace::RateLimitOffscreenContextCHROMIUM");
1718 gl_->RateLimitOffscreenContextCHROMIUM();
1721 void GLES2TraceImplementation::GetProgramInfoCHROMIUM(GLuint program,
1722 GLsizei bufsize,
1723 GLsizei* size,
1724 void* info) {
1725 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramInfoCHROMIUM");
1726 gl_->GetProgramInfoCHROMIUM(program, bufsize, size, info);
1729 void GLES2TraceImplementation::GetUniformBlocksCHROMIUM(GLuint program,
1730 GLsizei bufsize,
1731 GLsizei* size,
1732 void* info) {
1733 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformBlocksCHROMIUM");
1734 gl_->GetUniformBlocksCHROMIUM(program, bufsize, size, info);
1737 void GLES2TraceImplementation::GetTransformFeedbackVaryingsCHROMIUM(
1738 GLuint program,
1739 GLsizei bufsize,
1740 GLsizei* size,
1741 void* info) {
1742 TRACE_EVENT_BINARY_EFFICIENT0(
1743 "gpu", "GLES2Trace::GetTransformFeedbackVaryingsCHROMIUM");
1744 gl_->GetTransformFeedbackVaryingsCHROMIUM(program, bufsize, size, info);
1747 void GLES2TraceImplementation::GetUniformsES3CHROMIUM(GLuint program,
1748 GLsizei bufsize,
1749 GLsizei* size,
1750 void* info) {
1751 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformsES3CHROMIUM");
1752 gl_->GetUniformsES3CHROMIUM(program, bufsize, size, info);
1755 GLuint GLES2TraceImplementation::CreateStreamTextureCHROMIUM(GLuint texture) {
1756 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1757 "GLES2Trace::CreateStreamTextureCHROMIUM");
1758 return gl_->CreateStreamTextureCHROMIUM(texture);
1761 GLuint GLES2TraceImplementation::CreateImageCHROMIUM(ClientBuffer buffer,
1762 GLsizei width,
1763 GLsizei height,
1764 GLenum internalformat) {
1765 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateImageCHROMIUM");
1766 return gl_->CreateImageCHROMIUM(buffer, width, height, internalformat);
1769 void GLES2TraceImplementation::DestroyImageCHROMIUM(GLuint image_id) {
1770 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DestroyImageCHROMIUM");
1771 gl_->DestroyImageCHROMIUM(image_id);
1774 GLuint GLES2TraceImplementation::CreateGpuMemoryBufferImageCHROMIUM(
1775 GLsizei width,
1776 GLsizei height,
1777 GLenum internalformat,
1778 GLenum usage) {
1779 TRACE_EVENT_BINARY_EFFICIENT0(
1780 "gpu", "GLES2Trace::CreateGpuMemoryBufferImageCHROMIUM");
1781 return gl_->CreateGpuMemoryBufferImageCHROMIUM(width, height, internalformat,
1782 usage);
1785 void GLES2TraceImplementation::GetTranslatedShaderSourceANGLE(GLuint shader,
1786 GLsizei bufsize,
1787 GLsizei* length,
1788 char* source) {
1789 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1790 "GLES2Trace::GetTranslatedShaderSourceANGLE");
1791 gl_->GetTranslatedShaderSourceANGLE(shader, bufsize, length, source);
1794 void GLES2TraceImplementation::PostSubBufferCHROMIUM(GLint x,
1795 GLint y,
1796 GLint width,
1797 GLint height) {
1798 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PostSubBufferCHROMIUM");
1799 gl_->PostSubBufferCHROMIUM(x, y, width, height);
1802 void GLES2TraceImplementation::TexImageIOSurface2DCHROMIUM(GLenum target,
1803 GLsizei width,
1804 GLsizei height,
1805 GLuint ioSurfaceId,
1806 GLuint plane) {
1807 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1808 "GLES2Trace::TexImageIOSurface2DCHROMIUM");
1809 gl_->TexImageIOSurface2DCHROMIUM(target, width, height, ioSurfaceId, plane);
1812 void GLES2TraceImplementation::CopyTextureCHROMIUM(GLenum target,
1813 GLenum source_id,
1814 GLenum dest_id,
1815 GLint level,
1816 GLint internalformat,
1817 GLenum dest_type) {
1818 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTextureCHROMIUM");
1819 gl_->CopyTextureCHROMIUM(target, source_id, dest_id, level, internalformat,
1820 dest_type);
1823 void GLES2TraceImplementation::DrawArraysInstancedANGLE(GLenum mode,
1824 GLint first,
1825 GLsizei count,
1826 GLsizei primcount) {
1827 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawArraysInstancedANGLE");
1828 gl_->DrawArraysInstancedANGLE(mode, first, count, primcount);
1831 void GLES2TraceImplementation::DrawElementsInstancedANGLE(GLenum mode,
1832 GLsizei count,
1833 GLenum type,
1834 const void* indices,
1835 GLsizei primcount) {
1836 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1837 "GLES2Trace::DrawElementsInstancedANGLE");
1838 gl_->DrawElementsInstancedANGLE(mode, count, type, indices, primcount);
1841 void GLES2TraceImplementation::VertexAttribDivisorANGLE(GLuint index,
1842 GLuint divisor) {
1843 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribDivisorANGLE");
1844 gl_->VertexAttribDivisorANGLE(index, divisor);
1847 void GLES2TraceImplementation::GenMailboxCHROMIUM(GLbyte* mailbox) {
1848 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenMailboxCHROMIUM");
1849 gl_->GenMailboxCHROMIUM(mailbox);
1852 void GLES2TraceImplementation::ProduceTextureCHROMIUM(GLenum target,
1853 const GLbyte* mailbox) {
1854 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ProduceTextureCHROMIUM");
1855 gl_->ProduceTextureCHROMIUM(target, mailbox);
1858 void GLES2TraceImplementation::ProduceTextureDirectCHROMIUM(
1859 GLuint texture,
1860 GLenum target,
1861 const GLbyte* mailbox) {
1862 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1863 "GLES2Trace::ProduceTextureDirectCHROMIUM");
1864 gl_->ProduceTextureDirectCHROMIUM(texture, target, mailbox);
1867 void GLES2TraceImplementation::ConsumeTextureCHROMIUM(GLenum target,
1868 const GLbyte* mailbox) {
1869 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ConsumeTextureCHROMIUM");
1870 gl_->ConsumeTextureCHROMIUM(target, mailbox);
1873 GLuint GLES2TraceImplementation::CreateAndConsumeTextureCHROMIUM(
1874 GLenum target,
1875 const GLbyte* mailbox) {
1876 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1877 "GLES2Trace::CreateAndConsumeTextureCHROMIUM");
1878 return gl_->CreateAndConsumeTextureCHROMIUM(target, mailbox);
1881 void GLES2TraceImplementation::BindUniformLocationCHROMIUM(GLuint program,
1882 GLint location,
1883 const char* name) {
1884 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1885 "GLES2Trace::BindUniformLocationCHROMIUM");
1886 gl_->BindUniformLocationCHROMIUM(program, location, name);
1889 void GLES2TraceImplementation::GenValuebuffersCHROMIUM(GLsizei n,
1890 GLuint* buffers) {
1891 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenValuebuffersCHROMIUM");
1892 gl_->GenValuebuffersCHROMIUM(n, buffers);
1895 void GLES2TraceImplementation::DeleteValuebuffersCHROMIUM(
1896 GLsizei n,
1897 const GLuint* valuebuffers) {
1898 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1899 "GLES2Trace::DeleteValuebuffersCHROMIUM");
1900 gl_->DeleteValuebuffersCHROMIUM(n, valuebuffers);
1903 GLboolean GLES2TraceImplementation::IsValuebufferCHROMIUM(GLuint valuebuffer) {
1904 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsValuebufferCHROMIUM");
1905 return gl_->IsValuebufferCHROMIUM(valuebuffer);
1908 void GLES2TraceImplementation::BindValuebufferCHROMIUM(GLenum target,
1909 GLuint valuebuffer) {
1910 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindValuebufferCHROMIUM");
1911 gl_->BindValuebufferCHROMIUM(target, valuebuffer);
1914 void GLES2TraceImplementation::SubscribeValueCHROMIUM(GLenum target,
1915 GLenum subscription) {
1916 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SubscribeValueCHROMIUM");
1917 gl_->SubscribeValueCHROMIUM(target, subscription);
1920 void GLES2TraceImplementation::PopulateSubscribedValuesCHROMIUM(GLenum target) {
1921 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1922 "GLES2Trace::PopulateSubscribedValuesCHROMIUM");
1923 gl_->PopulateSubscribedValuesCHROMIUM(target);
1926 void GLES2TraceImplementation::UniformValuebufferCHROMIUM(GLint location,
1927 GLenum target,
1928 GLenum subscription) {
1929 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1930 "GLES2Trace::UniformValuebufferCHROMIUM");
1931 gl_->UniformValuebufferCHROMIUM(location, target, subscription);
1934 void GLES2TraceImplementation::BindTexImage2DCHROMIUM(GLenum target,
1935 GLint imageId) {
1936 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindTexImage2DCHROMIUM");
1937 gl_->BindTexImage2DCHROMIUM(target, imageId);
1940 void GLES2TraceImplementation::ReleaseTexImage2DCHROMIUM(GLenum target,
1941 GLint imageId) {
1942 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReleaseTexImage2DCHROMIUM");
1943 gl_->ReleaseTexImage2DCHROMIUM(target, imageId);
1946 void GLES2TraceImplementation::TraceBeginCHROMIUM(const char* category_name,
1947 const char* trace_name) {
1948 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TraceBeginCHROMIUM");
1949 gl_->TraceBeginCHROMIUM(category_name, trace_name);
1952 void GLES2TraceImplementation::TraceEndCHROMIUM() {
1953 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TraceEndCHROMIUM");
1954 gl_->TraceEndCHROMIUM();
1957 void GLES2TraceImplementation::AsyncTexSubImage2DCHROMIUM(GLenum target,
1958 GLint level,
1959 GLint xoffset,
1960 GLint yoffset,
1961 GLsizei width,
1962 GLsizei height,
1963 GLenum format,
1964 GLenum type,
1965 const void* data) {
1966 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1967 "GLES2Trace::AsyncTexSubImage2DCHROMIUM");
1968 gl_->AsyncTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width,
1969 height, format, type, data);
1972 void GLES2TraceImplementation::AsyncTexImage2DCHROMIUM(GLenum target,
1973 GLint level,
1974 GLenum internalformat,
1975 GLsizei width,
1976 GLsizei height,
1977 GLint border,
1978 GLenum format,
1979 GLenum type,
1980 const void* pixels) {
1981 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::AsyncTexImage2DCHROMIUM");
1982 gl_->AsyncTexImage2DCHROMIUM(target, level, internalformat, width, height,
1983 border, format, type, pixels);
1986 void GLES2TraceImplementation::WaitAsyncTexImage2DCHROMIUM(GLenum target) {
1987 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1988 "GLES2Trace::WaitAsyncTexImage2DCHROMIUM");
1989 gl_->WaitAsyncTexImage2DCHROMIUM(target);
1992 void GLES2TraceImplementation::WaitAllAsyncTexImage2DCHROMIUM() {
1993 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1994 "GLES2Trace::WaitAllAsyncTexImage2DCHROMIUM");
1995 gl_->WaitAllAsyncTexImage2DCHROMIUM();
1998 void GLES2TraceImplementation::DiscardFramebufferEXT(
1999 GLenum target,
2000 GLsizei count,
2001 const GLenum* attachments) {
2002 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DiscardFramebufferEXT");
2003 gl_->DiscardFramebufferEXT(target, count, attachments);
2006 void GLES2TraceImplementation::LoseContextCHROMIUM(GLenum current,
2007 GLenum other) {
2008 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LoseContextCHROMIUM");
2009 gl_->LoseContextCHROMIUM(current, other);
2012 GLuint GLES2TraceImplementation::InsertSyncPointCHROMIUM() {
2013 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InsertSyncPointCHROMIUM");
2014 return gl_->InsertSyncPointCHROMIUM();
2017 void GLES2TraceImplementation::WaitSyncPointCHROMIUM(GLuint sync_point) {
2018 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::WaitSyncPointCHROMIUM");
2019 gl_->WaitSyncPointCHROMIUM(sync_point);
2022 void GLES2TraceImplementation::DrawBuffersEXT(GLsizei count,
2023 const GLenum* bufs) {
2024 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawBuffersEXT");
2025 gl_->DrawBuffersEXT(count, bufs);
2028 void GLES2TraceImplementation::DiscardBackbufferCHROMIUM() {
2029 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DiscardBackbufferCHROMIUM");
2030 gl_->DiscardBackbufferCHROMIUM();
2033 void GLES2TraceImplementation::ScheduleOverlayPlaneCHROMIUM(
2034 GLint plane_z_order,
2035 GLenum plane_transform,
2036 GLuint overlay_texture_id,
2037 GLint bounds_x,
2038 GLint bounds_y,
2039 GLint bounds_width,
2040 GLint bounds_height,
2041 GLfloat uv_x,
2042 GLfloat uv_y,
2043 GLfloat uv_width,
2044 GLfloat uv_height) {
2045 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2046 "GLES2Trace::ScheduleOverlayPlaneCHROMIUM");
2047 gl_->ScheduleOverlayPlaneCHROMIUM(
2048 plane_z_order, plane_transform, overlay_texture_id, bounds_x, bounds_y,
2049 bounds_width, bounds_height, uv_x, uv_y, uv_width, uv_height);
2052 void GLES2TraceImplementation::SwapInterval(GLint interval) {
2053 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SwapInterval");
2054 gl_->SwapInterval(interval);
2057 void GLES2TraceImplementation::MatrixLoadfCHROMIUM(GLenum matrixMode,
2058 const GLfloat* m) {
2059 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MatrixLoadfCHROMIUM");
2060 gl_->MatrixLoadfCHROMIUM(matrixMode, m);
2063 void GLES2TraceImplementation::MatrixLoadIdentityCHROMIUM(GLenum matrixMode) {
2064 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2065 "GLES2Trace::MatrixLoadIdentityCHROMIUM");
2066 gl_->MatrixLoadIdentityCHROMIUM(matrixMode);
2069 void GLES2TraceImplementation::BlendBarrierKHR() {
2070 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendBarrierKHR");
2071 gl_->BlendBarrierKHR();
2074 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_