Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / gpu / command_buffer / client / gles2_trace_implementation_impl_autogen.h
blob2386727619830f74d8d531a06234e87e71590c56
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::CompressedTexImage3D(GLenum target,
234 GLint level,
235 GLenum internalformat,
236 GLsizei width,
237 GLsizei height,
238 GLsizei depth,
239 GLint border,
240 GLsizei imageSize,
241 const void* data) {
242 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CompressedTexImage3D");
243 gl_->CompressedTexImage3D(target, level, internalformat, width, height, depth,
244 border, imageSize, data);
247 void GLES2TraceImplementation::CompressedTexSubImage3D(GLenum target,
248 GLint level,
249 GLint xoffset,
250 GLint yoffset,
251 GLint zoffset,
252 GLsizei width,
253 GLsizei height,
254 GLsizei depth,
255 GLenum format,
256 GLsizei imageSize,
257 const void* data) {
258 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CompressedTexSubImage3D");
259 gl_->CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width,
260 height, depth, format, imageSize, data);
263 void GLES2TraceImplementation::CopyBufferSubData(GLenum readtarget,
264 GLenum writetarget,
265 GLintptr readoffset,
266 GLintptr writeoffset,
267 GLsizeiptr size) {
268 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyBufferSubData");
269 gl_->CopyBufferSubData(readtarget, writetarget, readoffset, writeoffset,
270 size);
273 void GLES2TraceImplementation::CopyTexImage2D(GLenum target,
274 GLint level,
275 GLenum internalformat,
276 GLint x,
277 GLint y,
278 GLsizei width,
279 GLsizei height,
280 GLint border) {
281 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexImage2D");
282 gl_->CopyTexImage2D(target, level, internalformat, x, y, width, height,
283 border);
286 void GLES2TraceImplementation::CopyTexSubImage2D(GLenum target,
287 GLint level,
288 GLint xoffset,
289 GLint yoffset,
290 GLint x,
291 GLint y,
292 GLsizei width,
293 GLsizei height) {
294 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexSubImage2D");
295 gl_->CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
298 void GLES2TraceImplementation::CopyTexSubImage3D(GLenum target,
299 GLint level,
300 GLint xoffset,
301 GLint yoffset,
302 GLint zoffset,
303 GLint x,
304 GLint y,
305 GLsizei width,
306 GLsizei height) {
307 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexSubImage3D");
308 gl_->CopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width,
309 height);
312 GLuint GLES2TraceImplementation::CreateProgram() {
313 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateProgram");
314 return gl_->CreateProgram();
317 GLuint GLES2TraceImplementation::CreateShader(GLenum type) {
318 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateShader");
319 return gl_->CreateShader(type);
322 void GLES2TraceImplementation::CullFace(GLenum mode) {
323 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CullFace");
324 gl_->CullFace(mode);
327 void GLES2TraceImplementation::DeleteBuffers(GLsizei n, const GLuint* buffers) {
328 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteBuffers");
329 gl_->DeleteBuffers(n, buffers);
332 void GLES2TraceImplementation::DeleteFramebuffers(GLsizei n,
333 const GLuint* framebuffers) {
334 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteFramebuffers");
335 gl_->DeleteFramebuffers(n, framebuffers);
338 void GLES2TraceImplementation::DeleteProgram(GLuint program) {
339 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteProgram");
340 gl_->DeleteProgram(program);
343 void GLES2TraceImplementation::DeleteRenderbuffers(
344 GLsizei n,
345 const GLuint* renderbuffers) {
346 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteRenderbuffers");
347 gl_->DeleteRenderbuffers(n, renderbuffers);
350 void GLES2TraceImplementation::DeleteSamplers(GLsizei n,
351 const GLuint* samplers) {
352 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteSamplers");
353 gl_->DeleteSamplers(n, samplers);
356 void GLES2TraceImplementation::DeleteSync(GLsync sync) {
357 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteSync");
358 gl_->DeleteSync(sync);
361 void GLES2TraceImplementation::DeleteShader(GLuint shader) {
362 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteShader");
363 gl_->DeleteShader(shader);
366 void GLES2TraceImplementation::DeleteTextures(GLsizei n,
367 const GLuint* textures) {
368 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteTextures");
369 gl_->DeleteTextures(n, textures);
372 void GLES2TraceImplementation::DeleteTransformFeedbacks(GLsizei n,
373 const GLuint* ids) {
374 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteTransformFeedbacks");
375 gl_->DeleteTransformFeedbacks(n, ids);
378 void GLES2TraceImplementation::DepthFunc(GLenum func) {
379 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DepthFunc");
380 gl_->DepthFunc(func);
383 void GLES2TraceImplementation::DepthMask(GLboolean flag) {
384 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DepthMask");
385 gl_->DepthMask(flag);
388 void GLES2TraceImplementation::DepthRangef(GLclampf zNear, GLclampf zFar) {
389 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DepthRangef");
390 gl_->DepthRangef(zNear, zFar);
393 void GLES2TraceImplementation::DetachShader(GLuint program, GLuint shader) {
394 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DetachShader");
395 gl_->DetachShader(program, shader);
398 void GLES2TraceImplementation::Disable(GLenum cap) {
399 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Disable");
400 gl_->Disable(cap);
403 void GLES2TraceImplementation::DisableVertexAttribArray(GLuint index) {
404 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DisableVertexAttribArray");
405 gl_->DisableVertexAttribArray(index);
408 void GLES2TraceImplementation::DrawArrays(GLenum mode,
409 GLint first,
410 GLsizei count) {
411 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawArrays");
412 gl_->DrawArrays(mode, first, count);
415 void GLES2TraceImplementation::DrawElements(GLenum mode,
416 GLsizei count,
417 GLenum type,
418 const void* indices) {
419 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawElements");
420 gl_->DrawElements(mode, count, type, indices);
423 void GLES2TraceImplementation::DrawRangeElements(GLenum mode,
424 GLuint start,
425 GLuint end,
426 GLsizei count,
427 GLenum type,
428 const void* indices) {
429 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawRangeElements");
430 gl_->DrawRangeElements(mode, start, end, count, type, indices);
433 void GLES2TraceImplementation::Enable(GLenum cap) {
434 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Enable");
435 gl_->Enable(cap);
438 void GLES2TraceImplementation::EnableVertexAttribArray(GLuint index) {
439 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EnableVertexAttribArray");
440 gl_->EnableVertexAttribArray(index);
443 GLsync GLES2TraceImplementation::FenceSync(GLenum condition, GLbitfield flags) {
444 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FenceSync");
445 return gl_->FenceSync(condition, flags);
448 void GLES2TraceImplementation::Finish() {
449 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Finish");
450 gl_->Finish();
453 void GLES2TraceImplementation::Flush() {
454 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Flush");
455 gl_->Flush();
458 void GLES2TraceImplementation::FramebufferRenderbuffer(
459 GLenum target,
460 GLenum attachment,
461 GLenum renderbuffertarget,
462 GLuint renderbuffer) {
463 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FramebufferRenderbuffer");
464 gl_->FramebufferRenderbuffer(target, attachment, renderbuffertarget,
465 renderbuffer);
468 void GLES2TraceImplementation::FramebufferTexture2D(GLenum target,
469 GLenum attachment,
470 GLenum textarget,
471 GLuint texture,
472 GLint level) {
473 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FramebufferTexture2D");
474 gl_->FramebufferTexture2D(target, attachment, textarget, texture, level);
477 void GLES2TraceImplementation::FramebufferTextureLayer(GLenum target,
478 GLenum attachment,
479 GLuint texture,
480 GLint level,
481 GLint layer) {
482 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FramebufferTextureLayer");
483 gl_->FramebufferTextureLayer(target, attachment, texture, level, layer);
486 void GLES2TraceImplementation::FrontFace(GLenum mode) {
487 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FrontFace");
488 gl_->FrontFace(mode);
491 void GLES2TraceImplementation::GenBuffers(GLsizei n, GLuint* buffers) {
492 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenBuffers");
493 gl_->GenBuffers(n, buffers);
496 void GLES2TraceImplementation::GenerateMipmap(GLenum target) {
497 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenerateMipmap");
498 gl_->GenerateMipmap(target);
501 void GLES2TraceImplementation::GenFramebuffers(GLsizei n,
502 GLuint* framebuffers) {
503 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenFramebuffers");
504 gl_->GenFramebuffers(n, framebuffers);
507 void GLES2TraceImplementation::GenRenderbuffers(GLsizei n,
508 GLuint* renderbuffers) {
509 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenRenderbuffers");
510 gl_->GenRenderbuffers(n, renderbuffers);
513 void GLES2TraceImplementation::GenSamplers(GLsizei n, GLuint* samplers) {
514 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenSamplers");
515 gl_->GenSamplers(n, samplers);
518 void GLES2TraceImplementation::GenTextures(GLsizei n, GLuint* textures) {
519 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenTextures");
520 gl_->GenTextures(n, textures);
523 void GLES2TraceImplementation::GenTransformFeedbacks(GLsizei n, GLuint* ids) {
524 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenTransformFeedbacks");
525 gl_->GenTransformFeedbacks(n, ids);
528 void GLES2TraceImplementation::GetActiveAttrib(GLuint program,
529 GLuint index,
530 GLsizei bufsize,
531 GLsizei* length,
532 GLint* size,
533 GLenum* type,
534 char* name) {
535 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveAttrib");
536 gl_->GetActiveAttrib(program, index, bufsize, length, size, type, name);
539 void GLES2TraceImplementation::GetActiveUniform(GLuint program,
540 GLuint index,
541 GLsizei bufsize,
542 GLsizei* length,
543 GLint* size,
544 GLenum* type,
545 char* name) {
546 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniform");
547 gl_->GetActiveUniform(program, index, bufsize, length, size, type, name);
550 void GLES2TraceImplementation::GetActiveUniformBlockiv(GLuint program,
551 GLuint index,
552 GLenum pname,
553 GLint* params) {
554 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniformBlockiv");
555 gl_->GetActiveUniformBlockiv(program, index, pname, params);
558 void GLES2TraceImplementation::GetActiveUniformBlockName(GLuint program,
559 GLuint index,
560 GLsizei bufsize,
561 GLsizei* length,
562 char* name) {
563 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniformBlockName");
564 gl_->GetActiveUniformBlockName(program, index, bufsize, length, name);
567 void GLES2TraceImplementation::GetActiveUniformsiv(GLuint program,
568 GLsizei count,
569 const GLuint* indices,
570 GLenum pname,
571 GLint* params) {
572 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetActiveUniformsiv");
573 gl_->GetActiveUniformsiv(program, count, indices, pname, params);
576 void GLES2TraceImplementation::GetAttachedShaders(GLuint program,
577 GLsizei maxcount,
578 GLsizei* count,
579 GLuint* shaders) {
580 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetAttachedShaders");
581 gl_->GetAttachedShaders(program, maxcount, count, shaders);
584 GLint GLES2TraceImplementation::GetAttribLocation(GLuint program,
585 const char* name) {
586 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetAttribLocation");
587 return gl_->GetAttribLocation(program, name);
590 void GLES2TraceImplementation::GetBooleanv(GLenum pname, GLboolean* params) {
591 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetBooleanv");
592 gl_->GetBooleanv(pname, params);
595 void GLES2TraceImplementation::GetBufferParameteriv(GLenum target,
596 GLenum pname,
597 GLint* params) {
598 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetBufferParameteriv");
599 gl_->GetBufferParameteriv(target, pname, params);
602 GLenum GLES2TraceImplementation::GetError() {
603 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetError");
604 return gl_->GetError();
607 void GLES2TraceImplementation::GetFloatv(GLenum pname, GLfloat* params) {
608 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetFloatv");
609 gl_->GetFloatv(pname, params);
612 GLint GLES2TraceImplementation::GetFragDataLocation(GLuint program,
613 const char* name) {
614 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetFragDataLocation");
615 return gl_->GetFragDataLocation(program, name);
618 void GLES2TraceImplementation::GetFramebufferAttachmentParameteriv(
619 GLenum target,
620 GLenum attachment,
621 GLenum pname,
622 GLint* params) {
623 TRACE_EVENT_BINARY_EFFICIENT0(
624 "gpu", "GLES2Trace::GetFramebufferAttachmentParameteriv");
625 gl_->GetFramebufferAttachmentParameteriv(target, attachment, pname, params);
628 void GLES2TraceImplementation::GetInteger64v(GLenum pname, GLint64* params) {
629 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetInteger64v");
630 gl_->GetInteger64v(pname, params);
633 void GLES2TraceImplementation::GetIntegeri_v(GLenum pname,
634 GLuint index,
635 GLint* data) {
636 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetIntegeri_v");
637 gl_->GetIntegeri_v(pname, index, data);
640 void GLES2TraceImplementation::GetInteger64i_v(GLenum pname,
641 GLuint index,
642 GLint64* data) {
643 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetInteger64i_v");
644 gl_->GetInteger64i_v(pname, index, data);
647 void GLES2TraceImplementation::GetIntegerv(GLenum pname, GLint* params) {
648 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetIntegerv");
649 gl_->GetIntegerv(pname, params);
652 void GLES2TraceImplementation::GetInternalformativ(GLenum target,
653 GLenum format,
654 GLenum pname,
655 GLsizei bufSize,
656 GLint* params) {
657 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetInternalformativ");
658 gl_->GetInternalformativ(target, format, pname, bufSize, params);
661 void GLES2TraceImplementation::GetProgramiv(GLuint program,
662 GLenum pname,
663 GLint* params) {
664 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramiv");
665 gl_->GetProgramiv(program, pname, params);
668 void GLES2TraceImplementation::GetProgramInfoLog(GLuint program,
669 GLsizei bufsize,
670 GLsizei* length,
671 char* infolog) {
672 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramInfoLog");
673 gl_->GetProgramInfoLog(program, bufsize, length, infolog);
676 void GLES2TraceImplementation::GetRenderbufferParameteriv(GLenum target,
677 GLenum pname,
678 GLint* params) {
679 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
680 "GLES2Trace::GetRenderbufferParameteriv");
681 gl_->GetRenderbufferParameteriv(target, pname, params);
684 void GLES2TraceImplementation::GetSamplerParameterfv(GLuint sampler,
685 GLenum pname,
686 GLfloat* params) {
687 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetSamplerParameterfv");
688 gl_->GetSamplerParameterfv(sampler, pname, params);
691 void GLES2TraceImplementation::GetSamplerParameteriv(GLuint sampler,
692 GLenum pname,
693 GLint* params) {
694 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetSamplerParameteriv");
695 gl_->GetSamplerParameteriv(sampler, pname, params);
698 void GLES2TraceImplementation::GetShaderiv(GLuint shader,
699 GLenum pname,
700 GLint* params) {
701 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderiv");
702 gl_->GetShaderiv(shader, pname, params);
705 void GLES2TraceImplementation::GetShaderInfoLog(GLuint shader,
706 GLsizei bufsize,
707 GLsizei* length,
708 char* infolog) {
709 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderInfoLog");
710 gl_->GetShaderInfoLog(shader, bufsize, length, infolog);
713 void GLES2TraceImplementation::GetShaderPrecisionFormat(GLenum shadertype,
714 GLenum precisiontype,
715 GLint* range,
716 GLint* precision) {
717 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderPrecisionFormat");
718 gl_->GetShaderPrecisionFormat(shadertype, precisiontype, range, precision);
721 void GLES2TraceImplementation::GetShaderSource(GLuint shader,
722 GLsizei bufsize,
723 GLsizei* length,
724 char* source) {
725 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetShaderSource");
726 gl_->GetShaderSource(shader, bufsize, length, source);
729 const GLubyte* GLES2TraceImplementation::GetString(GLenum name) {
730 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetString");
731 return gl_->GetString(name);
734 void GLES2TraceImplementation::GetSynciv(GLsync sync,
735 GLenum pname,
736 GLsizei bufsize,
737 GLsizei* length,
738 GLint* values) {
739 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetSynciv");
740 gl_->GetSynciv(sync, pname, bufsize, length, values);
743 void GLES2TraceImplementation::GetTexParameterfv(GLenum target,
744 GLenum pname,
745 GLfloat* params) {
746 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetTexParameterfv");
747 gl_->GetTexParameterfv(target, pname, params);
750 void GLES2TraceImplementation::GetTexParameteriv(GLenum target,
751 GLenum pname,
752 GLint* params) {
753 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetTexParameteriv");
754 gl_->GetTexParameteriv(target, pname, params);
757 void GLES2TraceImplementation::GetTransformFeedbackVarying(GLuint program,
758 GLuint index,
759 GLsizei bufsize,
760 GLsizei* length,
761 GLsizei* size,
762 GLenum* type,
763 char* name) {
764 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
765 "GLES2Trace::GetTransformFeedbackVarying");
766 gl_->GetTransformFeedbackVarying(program, index, bufsize, length, size, type,
767 name);
770 GLuint GLES2TraceImplementation::GetUniformBlockIndex(GLuint program,
771 const char* name) {
772 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformBlockIndex");
773 return gl_->GetUniformBlockIndex(program, name);
776 void GLES2TraceImplementation::GetUniformfv(GLuint program,
777 GLint location,
778 GLfloat* params) {
779 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformfv");
780 gl_->GetUniformfv(program, location, params);
783 void GLES2TraceImplementation::GetUniformiv(GLuint program,
784 GLint location,
785 GLint* params) {
786 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformiv");
787 gl_->GetUniformiv(program, location, params);
790 void GLES2TraceImplementation::GetUniformuiv(GLuint program,
791 GLint location,
792 GLuint* params) {
793 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformuiv");
794 gl_->GetUniformuiv(program, location, params);
797 void GLES2TraceImplementation::GetUniformIndices(GLuint program,
798 GLsizei count,
799 const char* const* names,
800 GLuint* indices) {
801 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformIndices");
802 gl_->GetUniformIndices(program, count, names, indices);
805 GLint GLES2TraceImplementation::GetUniformLocation(GLuint program,
806 const char* name) {
807 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformLocation");
808 return gl_->GetUniformLocation(program, name);
811 void GLES2TraceImplementation::GetVertexAttribfv(GLuint index,
812 GLenum pname,
813 GLfloat* params) {
814 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribfv");
815 gl_->GetVertexAttribfv(index, pname, params);
818 void GLES2TraceImplementation::GetVertexAttribiv(GLuint index,
819 GLenum pname,
820 GLint* params) {
821 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribiv");
822 gl_->GetVertexAttribiv(index, pname, params);
825 void GLES2TraceImplementation::GetVertexAttribIiv(GLuint index,
826 GLenum pname,
827 GLint* params) {
828 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribIiv");
829 gl_->GetVertexAttribIiv(index, pname, params);
832 void GLES2TraceImplementation::GetVertexAttribIuiv(GLuint index,
833 GLenum pname,
834 GLuint* params) {
835 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribIuiv");
836 gl_->GetVertexAttribIuiv(index, pname, params);
839 void GLES2TraceImplementation::GetVertexAttribPointerv(GLuint index,
840 GLenum pname,
841 void** pointer) {
842 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribPointerv");
843 gl_->GetVertexAttribPointerv(index, pname, pointer);
846 void GLES2TraceImplementation::Hint(GLenum target, GLenum mode) {
847 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Hint");
848 gl_->Hint(target, mode);
851 void GLES2TraceImplementation::InvalidateFramebuffer(
852 GLenum target,
853 GLsizei count,
854 const GLenum* attachments) {
855 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InvalidateFramebuffer");
856 gl_->InvalidateFramebuffer(target, count, attachments);
859 void GLES2TraceImplementation::InvalidateSubFramebuffer(
860 GLenum target,
861 GLsizei count,
862 const GLenum* attachments,
863 GLint x,
864 GLint y,
865 GLsizei width,
866 GLsizei height) {
867 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InvalidateSubFramebuffer");
868 gl_->InvalidateSubFramebuffer(target, count, attachments, x, y, width,
869 height);
872 GLboolean GLES2TraceImplementation::IsBuffer(GLuint buffer) {
873 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsBuffer");
874 return gl_->IsBuffer(buffer);
877 GLboolean GLES2TraceImplementation::IsEnabled(GLenum cap) {
878 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsEnabled");
879 return gl_->IsEnabled(cap);
882 GLboolean GLES2TraceImplementation::IsFramebuffer(GLuint framebuffer) {
883 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsFramebuffer");
884 return gl_->IsFramebuffer(framebuffer);
887 GLboolean GLES2TraceImplementation::IsProgram(GLuint program) {
888 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsProgram");
889 return gl_->IsProgram(program);
892 GLboolean GLES2TraceImplementation::IsRenderbuffer(GLuint renderbuffer) {
893 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsRenderbuffer");
894 return gl_->IsRenderbuffer(renderbuffer);
897 GLboolean GLES2TraceImplementation::IsSampler(GLuint sampler) {
898 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsSampler");
899 return gl_->IsSampler(sampler);
902 GLboolean GLES2TraceImplementation::IsShader(GLuint shader) {
903 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsShader");
904 return gl_->IsShader(shader);
907 GLboolean GLES2TraceImplementation::IsSync(GLsync sync) {
908 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsSync");
909 return gl_->IsSync(sync);
912 GLboolean GLES2TraceImplementation::IsTexture(GLuint texture) {
913 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsTexture");
914 return gl_->IsTexture(texture);
917 GLboolean GLES2TraceImplementation::IsTransformFeedback(
918 GLuint transformfeedback) {
919 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsTransformFeedback");
920 return gl_->IsTransformFeedback(transformfeedback);
923 void GLES2TraceImplementation::LineWidth(GLfloat width) {
924 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LineWidth");
925 gl_->LineWidth(width);
928 void GLES2TraceImplementation::LinkProgram(GLuint program) {
929 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LinkProgram");
930 gl_->LinkProgram(program);
933 void GLES2TraceImplementation::PauseTransformFeedback() {
934 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PauseTransformFeedback");
935 gl_->PauseTransformFeedback();
938 void GLES2TraceImplementation::PixelStorei(GLenum pname, GLint param) {
939 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PixelStorei");
940 gl_->PixelStorei(pname, param);
943 void GLES2TraceImplementation::PolygonOffset(GLfloat factor, GLfloat units) {
944 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PolygonOffset");
945 gl_->PolygonOffset(factor, units);
948 void GLES2TraceImplementation::ReadBuffer(GLenum src) {
949 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReadBuffer");
950 gl_->ReadBuffer(src);
953 void GLES2TraceImplementation::ReadPixels(GLint x,
954 GLint y,
955 GLsizei width,
956 GLsizei height,
957 GLenum format,
958 GLenum type,
959 void* pixels) {
960 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReadPixels");
961 gl_->ReadPixels(x, y, width, height, format, type, pixels);
964 void GLES2TraceImplementation::ReleaseShaderCompiler() {
965 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReleaseShaderCompiler");
966 gl_->ReleaseShaderCompiler();
969 void GLES2TraceImplementation::RenderbufferStorage(GLenum target,
970 GLenum internalformat,
971 GLsizei width,
972 GLsizei height) {
973 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RenderbufferStorage");
974 gl_->RenderbufferStorage(target, internalformat, width, height);
977 void GLES2TraceImplementation::ResumeTransformFeedback() {
978 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ResumeTransformFeedback");
979 gl_->ResumeTransformFeedback();
982 void GLES2TraceImplementation::SampleCoverage(GLclampf value,
983 GLboolean invert) {
984 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SampleCoverage");
985 gl_->SampleCoverage(value, invert);
988 void GLES2TraceImplementation::SamplerParameterf(GLuint sampler,
989 GLenum pname,
990 GLfloat param) {
991 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameterf");
992 gl_->SamplerParameterf(sampler, pname, param);
995 void GLES2TraceImplementation::SamplerParameterfv(GLuint sampler,
996 GLenum pname,
997 const GLfloat* params) {
998 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameterfv");
999 gl_->SamplerParameterfv(sampler, pname, params);
1002 void GLES2TraceImplementation::SamplerParameteri(GLuint sampler,
1003 GLenum pname,
1004 GLint param) {
1005 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameteri");
1006 gl_->SamplerParameteri(sampler, pname, param);
1009 void GLES2TraceImplementation::SamplerParameteriv(GLuint sampler,
1010 GLenum pname,
1011 const GLint* params) {
1012 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SamplerParameteriv");
1013 gl_->SamplerParameteriv(sampler, pname, params);
1016 void GLES2TraceImplementation::Scissor(GLint x,
1017 GLint y,
1018 GLsizei width,
1019 GLsizei height) {
1020 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Scissor");
1021 gl_->Scissor(x, y, width, height);
1024 void GLES2TraceImplementation::ShaderBinary(GLsizei n,
1025 const GLuint* shaders,
1026 GLenum binaryformat,
1027 const void* binary,
1028 GLsizei length) {
1029 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShaderBinary");
1030 gl_->ShaderBinary(n, shaders, binaryformat, binary, length);
1033 void GLES2TraceImplementation::ShaderSource(GLuint shader,
1034 GLsizei count,
1035 const GLchar* const* str,
1036 const GLint* length) {
1037 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShaderSource");
1038 gl_->ShaderSource(shader, count, str, length);
1041 void GLES2TraceImplementation::ShallowFinishCHROMIUM() {
1042 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShallowFinishCHROMIUM");
1043 gl_->ShallowFinishCHROMIUM();
1046 void GLES2TraceImplementation::ShallowFlushCHROMIUM() {
1047 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ShallowFlushCHROMIUM");
1048 gl_->ShallowFlushCHROMIUM();
1051 void GLES2TraceImplementation::OrderingBarrierCHROMIUM() {
1052 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::OrderingBarrierCHROMIUM");
1053 gl_->OrderingBarrierCHROMIUM();
1056 void GLES2TraceImplementation::StencilFunc(GLenum func,
1057 GLint ref,
1058 GLuint mask) {
1059 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFunc");
1060 gl_->StencilFunc(func, ref, mask);
1063 void GLES2TraceImplementation::StencilFuncSeparate(GLenum face,
1064 GLenum func,
1065 GLint ref,
1066 GLuint mask) {
1067 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFuncSeparate");
1068 gl_->StencilFuncSeparate(face, func, ref, mask);
1071 void GLES2TraceImplementation::StencilMask(GLuint mask) {
1072 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilMask");
1073 gl_->StencilMask(mask);
1076 void GLES2TraceImplementation::StencilMaskSeparate(GLenum face, GLuint mask) {
1077 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilMaskSeparate");
1078 gl_->StencilMaskSeparate(face, mask);
1081 void GLES2TraceImplementation::StencilOp(GLenum fail,
1082 GLenum zfail,
1083 GLenum zpass) {
1084 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilOp");
1085 gl_->StencilOp(fail, zfail, zpass);
1088 void GLES2TraceImplementation::StencilOpSeparate(GLenum face,
1089 GLenum fail,
1090 GLenum zfail,
1091 GLenum zpass) {
1092 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilOpSeparate");
1093 gl_->StencilOpSeparate(face, fail, zfail, zpass);
1096 void GLES2TraceImplementation::TexImage2D(GLenum target,
1097 GLint level,
1098 GLint internalformat,
1099 GLsizei width,
1100 GLsizei height,
1101 GLint border,
1102 GLenum format,
1103 GLenum type,
1104 const void* pixels) {
1105 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImage2D");
1106 gl_->TexImage2D(target, level, internalformat, width, height, border, format,
1107 type, pixels);
1110 void GLES2TraceImplementation::TexImage3D(GLenum target,
1111 GLint level,
1112 GLint internalformat,
1113 GLsizei width,
1114 GLsizei height,
1115 GLsizei depth,
1116 GLint border,
1117 GLenum format,
1118 GLenum type,
1119 const void* pixels) {
1120 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImage3D");
1121 gl_->TexImage3D(target, level, internalformat, width, height, depth, border,
1122 format, type, pixels);
1125 void GLES2TraceImplementation::TexParameterf(GLenum target,
1126 GLenum pname,
1127 GLfloat param) {
1128 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterf");
1129 gl_->TexParameterf(target, pname, param);
1132 void GLES2TraceImplementation::TexParameterfv(GLenum target,
1133 GLenum pname,
1134 const GLfloat* params) {
1135 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterfv");
1136 gl_->TexParameterfv(target, pname, params);
1139 void GLES2TraceImplementation::TexParameteri(GLenum target,
1140 GLenum pname,
1141 GLint param) {
1142 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameteri");
1143 gl_->TexParameteri(target, pname, param);
1146 void GLES2TraceImplementation::TexParameteriv(GLenum target,
1147 GLenum pname,
1148 const GLint* params) {
1149 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameteriv");
1150 gl_->TexParameteriv(target, pname, params);
1153 void GLES2TraceImplementation::TexStorage3D(GLenum target,
1154 GLsizei levels,
1155 GLenum internalFormat,
1156 GLsizei width,
1157 GLsizei height,
1158 GLsizei depth) {
1159 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexStorage3D");
1160 gl_->TexStorage3D(target, levels, internalFormat, width, height, depth);
1163 void GLES2TraceImplementation::TexSubImage2D(GLenum target,
1164 GLint level,
1165 GLint xoffset,
1166 GLint yoffset,
1167 GLsizei width,
1168 GLsizei height,
1169 GLenum format,
1170 GLenum type,
1171 const void* pixels) {
1172 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage2D");
1173 gl_->TexSubImage2D(target, level, xoffset, yoffset, width, height, format,
1174 type, pixels);
1177 void GLES2TraceImplementation::TexSubImage3D(GLenum target,
1178 GLint level,
1179 GLint xoffset,
1180 GLint yoffset,
1181 GLint zoffset,
1182 GLsizei width,
1183 GLsizei height,
1184 GLsizei depth,
1185 GLenum format,
1186 GLenum type,
1187 const void* pixels) {
1188 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage3D");
1189 gl_->TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height,
1190 depth, format, type, pixels);
1193 void GLES2TraceImplementation::TransformFeedbackVaryings(
1194 GLuint program,
1195 GLsizei count,
1196 const char* const* varyings,
1197 GLenum buffermode) {
1198 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TransformFeedbackVaryings");
1199 gl_->TransformFeedbackVaryings(program, count, varyings, buffermode);
1202 void GLES2TraceImplementation::Uniform1f(GLint location, GLfloat x) {
1203 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1f");
1204 gl_->Uniform1f(location, x);
1207 void GLES2TraceImplementation::Uniform1fv(GLint location,
1208 GLsizei count,
1209 const GLfloat* v) {
1210 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1fv");
1211 gl_->Uniform1fv(location, count, v);
1214 void GLES2TraceImplementation::Uniform1i(GLint location, GLint x) {
1215 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1i");
1216 gl_->Uniform1i(location, x);
1219 void GLES2TraceImplementation::Uniform1iv(GLint location,
1220 GLsizei count,
1221 const GLint* v) {
1222 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1iv");
1223 gl_->Uniform1iv(location, count, v);
1226 void GLES2TraceImplementation::Uniform1ui(GLint location, GLuint x) {
1227 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1ui");
1228 gl_->Uniform1ui(location, x);
1231 void GLES2TraceImplementation::Uniform1uiv(GLint location,
1232 GLsizei count,
1233 const GLuint* v) {
1234 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1uiv");
1235 gl_->Uniform1uiv(location, count, v);
1238 void GLES2TraceImplementation::Uniform2f(GLint location, GLfloat x, GLfloat y) {
1239 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2f");
1240 gl_->Uniform2f(location, x, y);
1243 void GLES2TraceImplementation::Uniform2fv(GLint location,
1244 GLsizei count,
1245 const GLfloat* v) {
1246 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2fv");
1247 gl_->Uniform2fv(location, count, v);
1250 void GLES2TraceImplementation::Uniform2i(GLint location, GLint x, GLint y) {
1251 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2i");
1252 gl_->Uniform2i(location, x, y);
1255 void GLES2TraceImplementation::Uniform2iv(GLint location,
1256 GLsizei count,
1257 const GLint* v) {
1258 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2iv");
1259 gl_->Uniform2iv(location, count, v);
1262 void GLES2TraceImplementation::Uniform2ui(GLint location, GLuint x, GLuint y) {
1263 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2ui");
1264 gl_->Uniform2ui(location, x, y);
1267 void GLES2TraceImplementation::Uniform2uiv(GLint location,
1268 GLsizei count,
1269 const GLuint* v) {
1270 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform2uiv");
1271 gl_->Uniform2uiv(location, count, v);
1274 void GLES2TraceImplementation::Uniform3f(GLint location,
1275 GLfloat x,
1276 GLfloat y,
1277 GLfloat z) {
1278 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3f");
1279 gl_->Uniform3f(location, x, y, z);
1282 void GLES2TraceImplementation::Uniform3fv(GLint location,
1283 GLsizei count,
1284 const GLfloat* v) {
1285 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3fv");
1286 gl_->Uniform3fv(location, count, v);
1289 void GLES2TraceImplementation::Uniform3i(GLint location,
1290 GLint x,
1291 GLint y,
1292 GLint z) {
1293 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3i");
1294 gl_->Uniform3i(location, x, y, z);
1297 void GLES2TraceImplementation::Uniform3iv(GLint location,
1298 GLsizei count,
1299 const GLint* v) {
1300 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3iv");
1301 gl_->Uniform3iv(location, count, v);
1304 void GLES2TraceImplementation::Uniform3ui(GLint location,
1305 GLuint x,
1306 GLuint y,
1307 GLuint z) {
1308 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3ui");
1309 gl_->Uniform3ui(location, x, y, z);
1312 void GLES2TraceImplementation::Uniform3uiv(GLint location,
1313 GLsizei count,
1314 const GLuint* v) {
1315 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform3uiv");
1316 gl_->Uniform3uiv(location, count, v);
1319 void GLES2TraceImplementation::Uniform4f(GLint location,
1320 GLfloat x,
1321 GLfloat y,
1322 GLfloat z,
1323 GLfloat w) {
1324 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4f");
1325 gl_->Uniform4f(location, x, y, z, w);
1328 void GLES2TraceImplementation::Uniform4fv(GLint location,
1329 GLsizei count,
1330 const GLfloat* v) {
1331 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4fv");
1332 gl_->Uniform4fv(location, count, v);
1335 void GLES2TraceImplementation::Uniform4i(GLint location,
1336 GLint x,
1337 GLint y,
1338 GLint z,
1339 GLint w) {
1340 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4i");
1341 gl_->Uniform4i(location, x, y, z, w);
1344 void GLES2TraceImplementation::Uniform4iv(GLint location,
1345 GLsizei count,
1346 const GLint* v) {
1347 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4iv");
1348 gl_->Uniform4iv(location, count, v);
1351 void GLES2TraceImplementation::Uniform4ui(GLint location,
1352 GLuint x,
1353 GLuint y,
1354 GLuint z,
1355 GLuint w) {
1356 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4ui");
1357 gl_->Uniform4ui(location, x, y, z, w);
1360 void GLES2TraceImplementation::Uniform4uiv(GLint location,
1361 GLsizei count,
1362 const GLuint* v) {
1363 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform4uiv");
1364 gl_->Uniform4uiv(location, count, v);
1367 void GLES2TraceImplementation::UniformBlockBinding(GLuint program,
1368 GLuint index,
1369 GLuint binding) {
1370 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformBlockBinding");
1371 gl_->UniformBlockBinding(program, index, binding);
1374 void GLES2TraceImplementation::UniformMatrix2fv(GLint location,
1375 GLsizei count,
1376 GLboolean transpose,
1377 const GLfloat* value) {
1378 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2fv");
1379 gl_->UniformMatrix2fv(location, count, transpose, value);
1382 void GLES2TraceImplementation::UniformMatrix2x3fv(GLint location,
1383 GLsizei count,
1384 GLboolean transpose,
1385 const GLfloat* value) {
1386 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2x3fv");
1387 gl_->UniformMatrix2x3fv(location, count, transpose, value);
1390 void GLES2TraceImplementation::UniformMatrix2x4fv(GLint location,
1391 GLsizei count,
1392 GLboolean transpose,
1393 const GLfloat* value) {
1394 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix2x4fv");
1395 gl_->UniformMatrix2x4fv(location, count, transpose, value);
1398 void GLES2TraceImplementation::UniformMatrix3fv(GLint location,
1399 GLsizei count,
1400 GLboolean transpose,
1401 const GLfloat* value) {
1402 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3fv");
1403 gl_->UniformMatrix3fv(location, count, transpose, value);
1406 void GLES2TraceImplementation::UniformMatrix3x2fv(GLint location,
1407 GLsizei count,
1408 GLboolean transpose,
1409 const GLfloat* value) {
1410 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3x2fv");
1411 gl_->UniformMatrix3x2fv(location, count, transpose, value);
1414 void GLES2TraceImplementation::UniformMatrix3x4fv(GLint location,
1415 GLsizei count,
1416 GLboolean transpose,
1417 const GLfloat* value) {
1418 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix3x4fv");
1419 gl_->UniformMatrix3x4fv(location, count, transpose, value);
1422 void GLES2TraceImplementation::UniformMatrix4fv(GLint location,
1423 GLsizei count,
1424 GLboolean transpose,
1425 const GLfloat* value) {
1426 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4fv");
1427 gl_->UniformMatrix4fv(location, count, transpose, value);
1430 void GLES2TraceImplementation::UniformMatrix4x2fv(GLint location,
1431 GLsizei count,
1432 GLboolean transpose,
1433 const GLfloat* value) {
1434 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4x2fv");
1435 gl_->UniformMatrix4x2fv(location, count, transpose, value);
1438 void GLES2TraceImplementation::UniformMatrix4x3fv(GLint location,
1439 GLsizei count,
1440 GLboolean transpose,
1441 const GLfloat* value) {
1442 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UniformMatrix4x3fv");
1443 gl_->UniformMatrix4x3fv(location, count, transpose, value);
1446 void GLES2TraceImplementation::UseProgram(GLuint program) {
1447 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UseProgram");
1448 gl_->UseProgram(program);
1451 void GLES2TraceImplementation::ValidateProgram(GLuint program) {
1452 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ValidateProgram");
1453 gl_->ValidateProgram(program);
1456 void GLES2TraceImplementation::VertexAttrib1f(GLuint indx, GLfloat x) {
1457 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib1f");
1458 gl_->VertexAttrib1f(indx, x);
1461 void GLES2TraceImplementation::VertexAttrib1fv(GLuint indx,
1462 const GLfloat* values) {
1463 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib1fv");
1464 gl_->VertexAttrib1fv(indx, values);
1467 void GLES2TraceImplementation::VertexAttrib2f(GLuint indx,
1468 GLfloat x,
1469 GLfloat y) {
1470 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib2f");
1471 gl_->VertexAttrib2f(indx, x, y);
1474 void GLES2TraceImplementation::VertexAttrib2fv(GLuint indx,
1475 const GLfloat* values) {
1476 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib2fv");
1477 gl_->VertexAttrib2fv(indx, values);
1480 void GLES2TraceImplementation::VertexAttrib3f(GLuint indx,
1481 GLfloat x,
1482 GLfloat y,
1483 GLfloat z) {
1484 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib3f");
1485 gl_->VertexAttrib3f(indx, x, y, z);
1488 void GLES2TraceImplementation::VertexAttrib3fv(GLuint indx,
1489 const GLfloat* values) {
1490 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib3fv");
1491 gl_->VertexAttrib3fv(indx, values);
1494 void GLES2TraceImplementation::VertexAttrib4f(GLuint indx,
1495 GLfloat x,
1496 GLfloat y,
1497 GLfloat z,
1498 GLfloat w) {
1499 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib4f");
1500 gl_->VertexAttrib4f(indx, x, y, z, w);
1503 void GLES2TraceImplementation::VertexAttrib4fv(GLuint indx,
1504 const GLfloat* values) {
1505 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttrib4fv");
1506 gl_->VertexAttrib4fv(indx, values);
1509 void GLES2TraceImplementation::VertexAttribI4i(GLuint indx,
1510 GLint x,
1511 GLint y,
1512 GLint z,
1513 GLint w) {
1514 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4i");
1515 gl_->VertexAttribI4i(indx, x, y, z, w);
1518 void GLES2TraceImplementation::VertexAttribI4iv(GLuint indx,
1519 const GLint* values) {
1520 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4iv");
1521 gl_->VertexAttribI4iv(indx, values);
1524 void GLES2TraceImplementation::VertexAttribI4ui(GLuint indx,
1525 GLuint x,
1526 GLuint y,
1527 GLuint z,
1528 GLuint w) {
1529 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4ui");
1530 gl_->VertexAttribI4ui(indx, x, y, z, w);
1533 void GLES2TraceImplementation::VertexAttribI4uiv(GLuint indx,
1534 const GLuint* values) {
1535 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribI4uiv");
1536 gl_->VertexAttribI4uiv(indx, values);
1539 void GLES2TraceImplementation::VertexAttribIPointer(GLuint indx,
1540 GLint size,
1541 GLenum type,
1542 GLsizei stride,
1543 const void* ptr) {
1544 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribIPointer");
1545 gl_->VertexAttribIPointer(indx, size, type, stride, ptr);
1548 void GLES2TraceImplementation::VertexAttribPointer(GLuint indx,
1549 GLint size,
1550 GLenum type,
1551 GLboolean normalized,
1552 GLsizei stride,
1553 const void* ptr) {
1554 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribPointer");
1555 gl_->VertexAttribPointer(indx, size, type, normalized, stride, ptr);
1558 void GLES2TraceImplementation::Viewport(GLint x,
1559 GLint y,
1560 GLsizei width,
1561 GLsizei height) {
1562 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Viewport");
1563 gl_->Viewport(x, y, width, height);
1566 void GLES2TraceImplementation::WaitSync(GLsync sync,
1567 GLbitfield flags,
1568 GLuint64 timeout) {
1569 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::WaitSync");
1570 gl_->WaitSync(sync, flags, timeout);
1573 void GLES2TraceImplementation::BlitFramebufferCHROMIUM(GLint srcX0,
1574 GLint srcY0,
1575 GLint srcX1,
1576 GLint srcY1,
1577 GLint dstX0,
1578 GLint dstY0,
1579 GLint dstX1,
1580 GLint dstY1,
1581 GLbitfield mask,
1582 GLenum filter) {
1583 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlitFramebufferCHROMIUM");
1584 gl_->BlitFramebufferCHROMIUM(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1,
1585 dstY1, mask, filter);
1588 void GLES2TraceImplementation::RenderbufferStorageMultisampleCHROMIUM(
1589 GLenum target,
1590 GLsizei samples,
1591 GLenum internalformat,
1592 GLsizei width,
1593 GLsizei height) {
1594 TRACE_EVENT_BINARY_EFFICIENT0(
1595 "gpu", "GLES2Trace::RenderbufferStorageMultisampleCHROMIUM");
1596 gl_->RenderbufferStorageMultisampleCHROMIUM(target, samples, internalformat,
1597 width, height);
1600 void GLES2TraceImplementation::RenderbufferStorageMultisampleEXT(
1601 GLenum target,
1602 GLsizei samples,
1603 GLenum internalformat,
1604 GLsizei width,
1605 GLsizei height) {
1606 TRACE_EVENT_BINARY_EFFICIENT0(
1607 "gpu", "GLES2Trace::RenderbufferStorageMultisampleEXT");
1608 gl_->RenderbufferStorageMultisampleEXT(target, samples, internalformat, width,
1609 height);
1612 void GLES2TraceImplementation::FramebufferTexture2DMultisampleEXT(
1613 GLenum target,
1614 GLenum attachment,
1615 GLenum textarget,
1616 GLuint texture,
1617 GLint level,
1618 GLsizei samples) {
1619 TRACE_EVENT_BINARY_EFFICIENT0(
1620 "gpu", "GLES2Trace::FramebufferTexture2DMultisampleEXT");
1621 gl_->FramebufferTexture2DMultisampleEXT(target, attachment, textarget,
1622 texture, level, samples);
1625 void GLES2TraceImplementation::TexStorage2DEXT(GLenum target,
1626 GLsizei levels,
1627 GLenum internalFormat,
1628 GLsizei width,
1629 GLsizei height) {
1630 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexStorage2DEXT");
1631 gl_->TexStorage2DEXT(target, levels, internalFormat, width, height);
1634 void GLES2TraceImplementation::GenQueriesEXT(GLsizei n, GLuint* queries) {
1635 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenQueriesEXT");
1636 gl_->GenQueriesEXT(n, queries);
1639 void GLES2TraceImplementation::DeleteQueriesEXT(GLsizei n,
1640 const GLuint* queries) {
1641 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteQueriesEXT");
1642 gl_->DeleteQueriesEXT(n, queries);
1645 void GLES2TraceImplementation::QueryCounterEXT(GLuint id, GLenum target) {
1646 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::QueryCounterEXT");
1647 gl_->QueryCounterEXT(id, target);
1650 GLboolean GLES2TraceImplementation::IsQueryEXT(GLuint id) {
1651 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsQueryEXT");
1652 return gl_->IsQueryEXT(id);
1655 void GLES2TraceImplementation::BeginQueryEXT(GLenum target, GLuint id) {
1656 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BeginQueryEXT");
1657 gl_->BeginQueryEXT(target, id);
1660 void GLES2TraceImplementation::BeginTransformFeedback(GLenum primitivemode) {
1661 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BeginTransformFeedback");
1662 gl_->BeginTransformFeedback(primitivemode);
1665 void GLES2TraceImplementation::EndQueryEXT(GLenum target) {
1666 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EndQueryEXT");
1667 gl_->EndQueryEXT(target);
1670 void GLES2TraceImplementation::EndTransformFeedback() {
1671 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EndTransformFeedback");
1672 gl_->EndTransformFeedback();
1675 void GLES2TraceImplementation::GetQueryivEXT(GLenum target,
1676 GLenum pname,
1677 GLint* params) {
1678 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryivEXT");
1679 gl_->GetQueryivEXT(target, pname, params);
1682 void GLES2TraceImplementation::GetQueryObjectuivEXT(GLuint id,
1683 GLenum pname,
1684 GLuint* params) {
1685 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryObjectuivEXT");
1686 gl_->GetQueryObjectuivEXT(id, pname, params);
1689 void GLES2TraceImplementation::GetQueryObjectui64vEXT(GLuint id,
1690 GLenum pname,
1691 GLuint64* params) {
1692 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetQueryObjectui64vEXT");
1693 gl_->GetQueryObjectui64vEXT(id, pname, params);
1696 void GLES2TraceImplementation::InsertEventMarkerEXT(GLsizei length,
1697 const GLchar* marker) {
1698 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InsertEventMarkerEXT");
1699 gl_->InsertEventMarkerEXT(length, marker);
1702 void GLES2TraceImplementation::PushGroupMarkerEXT(GLsizei length,
1703 const GLchar* marker) {
1704 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PushGroupMarkerEXT");
1705 gl_->PushGroupMarkerEXT(length, marker);
1708 void GLES2TraceImplementation::PopGroupMarkerEXT() {
1709 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PopGroupMarkerEXT");
1710 gl_->PopGroupMarkerEXT();
1713 void GLES2TraceImplementation::GenVertexArraysOES(GLsizei n, GLuint* arrays) {
1714 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenVertexArraysOES");
1715 gl_->GenVertexArraysOES(n, arrays);
1718 void GLES2TraceImplementation::DeleteVertexArraysOES(GLsizei n,
1719 const GLuint* arrays) {
1720 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeleteVertexArraysOES");
1721 gl_->DeleteVertexArraysOES(n, arrays);
1724 GLboolean GLES2TraceImplementation::IsVertexArrayOES(GLuint array) {
1725 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsVertexArrayOES");
1726 return gl_->IsVertexArrayOES(array);
1729 void GLES2TraceImplementation::BindVertexArrayOES(GLuint array) {
1730 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindVertexArrayOES");
1731 gl_->BindVertexArrayOES(array);
1734 void GLES2TraceImplementation::SwapBuffers() {
1735 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SwapBuffers");
1736 gl_->SwapBuffers();
1739 GLuint GLES2TraceImplementation::GetMaxValueInBufferCHROMIUM(GLuint buffer_id,
1740 GLsizei count,
1741 GLenum type,
1742 GLuint offset) {
1743 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1744 "GLES2Trace::GetMaxValueInBufferCHROMIUM");
1745 return gl_->GetMaxValueInBufferCHROMIUM(buffer_id, count, type, offset);
1748 GLboolean GLES2TraceImplementation::EnableFeatureCHROMIUM(const char* feature) {
1749 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::EnableFeatureCHROMIUM");
1750 return gl_->EnableFeatureCHROMIUM(feature);
1753 void* GLES2TraceImplementation::MapBufferCHROMIUM(GLuint target,
1754 GLenum access) {
1755 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferCHROMIUM");
1756 return gl_->MapBufferCHROMIUM(target, access);
1759 GLboolean GLES2TraceImplementation::UnmapBufferCHROMIUM(GLuint target) {
1760 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UnmapBufferCHROMIUM");
1761 return gl_->UnmapBufferCHROMIUM(target);
1764 void* GLES2TraceImplementation::MapBufferSubDataCHROMIUM(GLuint target,
1765 GLintptr offset,
1766 GLsizeiptr size,
1767 GLenum access) {
1768 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferSubDataCHROMIUM");
1769 return gl_->MapBufferSubDataCHROMIUM(target, offset, size, access);
1772 void GLES2TraceImplementation::UnmapBufferSubDataCHROMIUM(const void* mem) {
1773 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1774 "GLES2Trace::UnmapBufferSubDataCHROMIUM");
1775 gl_->UnmapBufferSubDataCHROMIUM(mem);
1778 void* GLES2TraceImplementation::MapBufferRange(GLenum target,
1779 GLintptr offset,
1780 GLsizeiptr size,
1781 GLbitfield access) {
1782 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapBufferRange");
1783 return gl_->MapBufferRange(target, offset, size, access);
1786 GLboolean GLES2TraceImplementation::UnmapBuffer(GLenum target) {
1787 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::UnmapBuffer");
1788 return gl_->UnmapBuffer(target);
1791 void* GLES2TraceImplementation::MapTexSubImage2DCHROMIUM(GLenum target,
1792 GLint level,
1793 GLint xoffset,
1794 GLint yoffset,
1795 GLsizei width,
1796 GLsizei height,
1797 GLenum format,
1798 GLenum type,
1799 GLenum access) {
1800 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MapTexSubImage2DCHROMIUM");
1801 return gl_->MapTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width,
1802 height, format, type, access);
1805 void GLES2TraceImplementation::UnmapTexSubImage2DCHROMIUM(const void* mem) {
1806 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1807 "GLES2Trace::UnmapTexSubImage2DCHROMIUM");
1808 gl_->UnmapTexSubImage2DCHROMIUM(mem);
1811 void GLES2TraceImplementation::ResizeCHROMIUM(GLuint width,
1812 GLuint height,
1813 GLfloat scale_factor) {
1814 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ResizeCHROMIUM");
1815 gl_->ResizeCHROMIUM(width, height, scale_factor);
1818 const GLchar* GLES2TraceImplementation::GetRequestableExtensionsCHROMIUM() {
1819 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1820 "GLES2Trace::GetRequestableExtensionsCHROMIUM");
1821 return gl_->GetRequestableExtensionsCHROMIUM();
1824 void GLES2TraceImplementation::RequestExtensionCHROMIUM(const char* extension) {
1825 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::RequestExtensionCHROMIUM");
1826 gl_->RequestExtensionCHROMIUM(extension);
1829 void GLES2TraceImplementation::RateLimitOffscreenContextCHROMIUM() {
1830 TRACE_EVENT_BINARY_EFFICIENT0(
1831 "gpu", "GLES2Trace::RateLimitOffscreenContextCHROMIUM");
1832 gl_->RateLimitOffscreenContextCHROMIUM();
1835 void GLES2TraceImplementation::GetProgramInfoCHROMIUM(GLuint program,
1836 GLsizei bufsize,
1837 GLsizei* size,
1838 void* info) {
1839 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetProgramInfoCHROMIUM");
1840 gl_->GetProgramInfoCHROMIUM(program, bufsize, size, info);
1843 void GLES2TraceImplementation::GetUniformBlocksCHROMIUM(GLuint program,
1844 GLsizei bufsize,
1845 GLsizei* size,
1846 void* info) {
1847 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformBlocksCHROMIUM");
1848 gl_->GetUniformBlocksCHROMIUM(program, bufsize, size, info);
1851 void GLES2TraceImplementation::GetTransformFeedbackVaryingsCHROMIUM(
1852 GLuint program,
1853 GLsizei bufsize,
1854 GLsizei* size,
1855 void* info) {
1856 TRACE_EVENT_BINARY_EFFICIENT0(
1857 "gpu", "GLES2Trace::GetTransformFeedbackVaryingsCHROMIUM");
1858 gl_->GetTransformFeedbackVaryingsCHROMIUM(program, bufsize, size, info);
1861 void GLES2TraceImplementation::GetUniformsES3CHROMIUM(GLuint program,
1862 GLsizei bufsize,
1863 GLsizei* size,
1864 void* info) {
1865 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetUniformsES3CHROMIUM");
1866 gl_->GetUniformsES3CHROMIUM(program, bufsize, size, info);
1869 GLuint GLES2TraceImplementation::CreateStreamTextureCHROMIUM(GLuint texture) {
1870 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1871 "GLES2Trace::CreateStreamTextureCHROMIUM");
1872 return gl_->CreateStreamTextureCHROMIUM(texture);
1875 GLuint GLES2TraceImplementation::CreateImageCHROMIUM(ClientBuffer buffer,
1876 GLsizei width,
1877 GLsizei height,
1878 GLenum internalformat) {
1879 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateImageCHROMIUM");
1880 return gl_->CreateImageCHROMIUM(buffer, width, height, internalformat);
1883 void GLES2TraceImplementation::DestroyImageCHROMIUM(GLuint image_id) {
1884 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DestroyImageCHROMIUM");
1885 gl_->DestroyImageCHROMIUM(image_id);
1888 GLuint GLES2TraceImplementation::CreateGpuMemoryBufferImageCHROMIUM(
1889 GLsizei width,
1890 GLsizei height,
1891 GLenum internalformat,
1892 GLenum usage) {
1893 TRACE_EVENT_BINARY_EFFICIENT0(
1894 "gpu", "GLES2Trace::CreateGpuMemoryBufferImageCHROMIUM");
1895 return gl_->CreateGpuMemoryBufferImageCHROMIUM(width, height, internalformat,
1896 usage);
1899 void GLES2TraceImplementation::GetTranslatedShaderSourceANGLE(GLuint shader,
1900 GLsizei bufsize,
1901 GLsizei* length,
1902 char* source) {
1903 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1904 "GLES2Trace::GetTranslatedShaderSourceANGLE");
1905 gl_->GetTranslatedShaderSourceANGLE(shader, bufsize, length, source);
1908 void GLES2TraceImplementation::PostSubBufferCHROMIUM(GLint x,
1909 GLint y,
1910 GLint width,
1911 GLint height) {
1912 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PostSubBufferCHROMIUM");
1913 gl_->PostSubBufferCHROMIUM(x, y, width, height);
1916 void GLES2TraceImplementation::TexImageIOSurface2DCHROMIUM(GLenum target,
1917 GLsizei width,
1918 GLsizei height,
1919 GLuint ioSurfaceId,
1920 GLuint plane) {
1921 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1922 "GLES2Trace::TexImageIOSurface2DCHROMIUM");
1923 gl_->TexImageIOSurface2DCHROMIUM(target, width, height, ioSurfaceId, plane);
1926 void GLES2TraceImplementation::CopyTextureCHROMIUM(
1927 GLenum target,
1928 GLenum source_id,
1929 GLenum dest_id,
1930 GLint internalformat,
1931 GLenum dest_type,
1932 GLboolean unpack_flip_y,
1933 GLboolean unpack_premultiply_alpha,
1934 GLboolean unpack_unmultiply_alpha) {
1935 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTextureCHROMIUM");
1936 gl_->CopyTextureCHROMIUM(target, source_id, dest_id, internalformat,
1937 dest_type, unpack_flip_y, unpack_premultiply_alpha,
1938 unpack_unmultiply_alpha);
1941 void GLES2TraceImplementation::CopySubTextureCHROMIUM(
1942 GLenum target,
1943 GLenum source_id,
1944 GLenum dest_id,
1945 GLint xoffset,
1946 GLint yoffset,
1947 GLint x,
1948 GLint y,
1949 GLsizei width,
1950 GLsizei height,
1951 GLboolean unpack_flip_y,
1952 GLboolean unpack_premultiply_alpha,
1953 GLboolean unpack_unmultiply_alpha) {
1954 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopySubTextureCHROMIUM");
1955 gl_->CopySubTextureCHROMIUM(
1956 target, source_id, dest_id, xoffset, yoffset, x, y, width, height,
1957 unpack_flip_y, unpack_premultiply_alpha, unpack_unmultiply_alpha);
1960 void GLES2TraceImplementation::CompressedCopyTextureCHROMIUM(GLenum target,
1961 GLenum source_id,
1962 GLenum dest_id) {
1963 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1964 "GLES2Trace::CompressedCopyTextureCHROMIUM");
1965 gl_->CompressedCopyTextureCHROMIUM(target, source_id, dest_id);
1968 void GLES2TraceImplementation::DrawArraysInstancedANGLE(GLenum mode,
1969 GLint first,
1970 GLsizei count,
1971 GLsizei primcount) {
1972 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawArraysInstancedANGLE");
1973 gl_->DrawArraysInstancedANGLE(mode, first, count, primcount);
1976 void GLES2TraceImplementation::DrawElementsInstancedANGLE(GLenum mode,
1977 GLsizei count,
1978 GLenum type,
1979 const void* indices,
1980 GLsizei primcount) {
1981 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
1982 "GLES2Trace::DrawElementsInstancedANGLE");
1983 gl_->DrawElementsInstancedANGLE(mode, count, type, indices, primcount);
1986 void GLES2TraceImplementation::VertexAttribDivisorANGLE(GLuint index,
1987 GLuint divisor) {
1988 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::VertexAttribDivisorANGLE");
1989 gl_->VertexAttribDivisorANGLE(index, divisor);
1992 void GLES2TraceImplementation::GenMailboxCHROMIUM(GLbyte* mailbox) {
1993 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenMailboxCHROMIUM");
1994 gl_->GenMailboxCHROMIUM(mailbox);
1997 void GLES2TraceImplementation::ProduceTextureCHROMIUM(GLenum target,
1998 const GLbyte* mailbox) {
1999 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ProduceTextureCHROMIUM");
2000 gl_->ProduceTextureCHROMIUM(target, mailbox);
2003 void GLES2TraceImplementation::ProduceTextureDirectCHROMIUM(
2004 GLuint texture,
2005 GLenum target,
2006 const GLbyte* mailbox) {
2007 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2008 "GLES2Trace::ProduceTextureDirectCHROMIUM");
2009 gl_->ProduceTextureDirectCHROMIUM(texture, target, mailbox);
2012 void GLES2TraceImplementation::ConsumeTextureCHROMIUM(GLenum target,
2013 const GLbyte* mailbox) {
2014 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ConsumeTextureCHROMIUM");
2015 gl_->ConsumeTextureCHROMIUM(target, mailbox);
2018 GLuint GLES2TraceImplementation::CreateAndConsumeTextureCHROMIUM(
2019 GLenum target,
2020 const GLbyte* mailbox) {
2021 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2022 "GLES2Trace::CreateAndConsumeTextureCHROMIUM");
2023 return gl_->CreateAndConsumeTextureCHROMIUM(target, mailbox);
2026 void GLES2TraceImplementation::BindUniformLocationCHROMIUM(GLuint program,
2027 GLint location,
2028 const char* name) {
2029 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2030 "GLES2Trace::BindUniformLocationCHROMIUM");
2031 gl_->BindUniformLocationCHROMIUM(program, location, name);
2034 void GLES2TraceImplementation::GenValuebuffersCHROMIUM(GLsizei n,
2035 GLuint* buffers) {
2036 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenValuebuffersCHROMIUM");
2037 gl_->GenValuebuffersCHROMIUM(n, buffers);
2040 void GLES2TraceImplementation::DeleteValuebuffersCHROMIUM(
2041 GLsizei n,
2042 const GLuint* valuebuffers) {
2043 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2044 "GLES2Trace::DeleteValuebuffersCHROMIUM");
2045 gl_->DeleteValuebuffersCHROMIUM(n, valuebuffers);
2048 GLboolean GLES2TraceImplementation::IsValuebufferCHROMIUM(GLuint valuebuffer) {
2049 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsValuebufferCHROMIUM");
2050 return gl_->IsValuebufferCHROMIUM(valuebuffer);
2053 void GLES2TraceImplementation::BindValuebufferCHROMIUM(GLenum target,
2054 GLuint valuebuffer) {
2055 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindValuebufferCHROMIUM");
2056 gl_->BindValuebufferCHROMIUM(target, valuebuffer);
2059 void GLES2TraceImplementation::SubscribeValueCHROMIUM(GLenum target,
2060 GLenum subscription) {
2061 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SubscribeValueCHROMIUM");
2062 gl_->SubscribeValueCHROMIUM(target, subscription);
2065 void GLES2TraceImplementation::PopulateSubscribedValuesCHROMIUM(GLenum target) {
2066 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2067 "GLES2Trace::PopulateSubscribedValuesCHROMIUM");
2068 gl_->PopulateSubscribedValuesCHROMIUM(target);
2071 void GLES2TraceImplementation::UniformValuebufferCHROMIUM(GLint location,
2072 GLenum target,
2073 GLenum subscription) {
2074 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2075 "GLES2Trace::UniformValuebufferCHROMIUM");
2076 gl_->UniformValuebufferCHROMIUM(location, target, subscription);
2079 void GLES2TraceImplementation::BindTexImage2DCHROMIUM(GLenum target,
2080 GLint imageId) {
2081 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindTexImage2DCHROMIUM");
2082 gl_->BindTexImage2DCHROMIUM(target, imageId);
2085 void GLES2TraceImplementation::ReleaseTexImage2DCHROMIUM(GLenum target,
2086 GLint imageId) {
2087 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReleaseTexImage2DCHROMIUM");
2088 gl_->ReleaseTexImage2DCHROMIUM(target, imageId);
2091 void GLES2TraceImplementation::TraceBeginCHROMIUM(const char* category_name,
2092 const char* trace_name) {
2093 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TraceBeginCHROMIUM");
2094 gl_->TraceBeginCHROMIUM(category_name, trace_name);
2097 void GLES2TraceImplementation::TraceEndCHROMIUM() {
2098 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TraceEndCHROMIUM");
2099 gl_->TraceEndCHROMIUM();
2102 void GLES2TraceImplementation::AsyncTexSubImage2DCHROMIUM(GLenum target,
2103 GLint level,
2104 GLint xoffset,
2105 GLint yoffset,
2106 GLsizei width,
2107 GLsizei height,
2108 GLenum format,
2109 GLenum type,
2110 const void* data) {
2111 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2112 "GLES2Trace::AsyncTexSubImage2DCHROMIUM");
2113 gl_->AsyncTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width,
2114 height, format, type, data);
2117 void GLES2TraceImplementation::AsyncTexImage2DCHROMIUM(GLenum target,
2118 GLint level,
2119 GLenum internalformat,
2120 GLsizei width,
2121 GLsizei height,
2122 GLint border,
2123 GLenum format,
2124 GLenum type,
2125 const void* pixels) {
2126 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::AsyncTexImage2DCHROMIUM");
2127 gl_->AsyncTexImage2DCHROMIUM(target, level, internalformat, width, height,
2128 border, format, type, pixels);
2131 void GLES2TraceImplementation::WaitAsyncTexImage2DCHROMIUM(GLenum target) {
2132 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2133 "GLES2Trace::WaitAsyncTexImage2DCHROMIUM");
2134 gl_->WaitAsyncTexImage2DCHROMIUM(target);
2137 void GLES2TraceImplementation::WaitAllAsyncTexImage2DCHROMIUM() {
2138 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2139 "GLES2Trace::WaitAllAsyncTexImage2DCHROMIUM");
2140 gl_->WaitAllAsyncTexImage2DCHROMIUM();
2143 void GLES2TraceImplementation::DiscardFramebufferEXT(
2144 GLenum target,
2145 GLsizei count,
2146 const GLenum* attachments) {
2147 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DiscardFramebufferEXT");
2148 gl_->DiscardFramebufferEXT(target, count, attachments);
2151 void GLES2TraceImplementation::LoseContextCHROMIUM(GLenum current,
2152 GLenum other) {
2153 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::LoseContextCHROMIUM");
2154 gl_->LoseContextCHROMIUM(current, other);
2157 GLuint GLES2TraceImplementation::InsertSyncPointCHROMIUM() {
2158 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InsertSyncPointCHROMIUM");
2159 return gl_->InsertSyncPointCHROMIUM();
2162 void GLES2TraceImplementation::WaitSyncPointCHROMIUM(GLuint sync_point) {
2163 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::WaitSyncPointCHROMIUM");
2164 gl_->WaitSyncPointCHROMIUM(sync_point);
2167 void GLES2TraceImplementation::DrawBuffersEXT(GLsizei count,
2168 const GLenum* bufs) {
2169 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DrawBuffersEXT");
2170 gl_->DrawBuffersEXT(count, bufs);
2173 void GLES2TraceImplementation::DiscardBackbufferCHROMIUM() {
2174 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DiscardBackbufferCHROMIUM");
2175 gl_->DiscardBackbufferCHROMIUM();
2178 void GLES2TraceImplementation::ScheduleOverlayPlaneCHROMIUM(
2179 GLint plane_z_order,
2180 GLenum plane_transform,
2181 GLuint overlay_texture_id,
2182 GLint bounds_x,
2183 GLint bounds_y,
2184 GLint bounds_width,
2185 GLint bounds_height,
2186 GLfloat uv_x,
2187 GLfloat uv_y,
2188 GLfloat uv_width,
2189 GLfloat uv_height) {
2190 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2191 "GLES2Trace::ScheduleOverlayPlaneCHROMIUM");
2192 gl_->ScheduleOverlayPlaneCHROMIUM(
2193 plane_z_order, plane_transform, overlay_texture_id, bounds_x, bounds_y,
2194 bounds_width, bounds_height, uv_x, uv_y, uv_width, uv_height);
2197 void GLES2TraceImplementation::SwapInterval(GLint interval) {
2198 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SwapInterval");
2199 gl_->SwapInterval(interval);
2202 void GLES2TraceImplementation::FlushDriverCachesCHROMIUM() {
2203 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::FlushDriverCachesCHROMIUM");
2204 gl_->FlushDriverCachesCHROMIUM();
2207 void GLES2TraceImplementation::MatrixLoadfCHROMIUM(GLenum matrixMode,
2208 const GLfloat* m) {
2209 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MatrixLoadfCHROMIUM");
2210 gl_->MatrixLoadfCHROMIUM(matrixMode, m);
2213 void GLES2TraceImplementation::MatrixLoadIdentityCHROMIUM(GLenum matrixMode) {
2214 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2215 "GLES2Trace::MatrixLoadIdentityCHROMIUM");
2216 gl_->MatrixLoadIdentityCHROMIUM(matrixMode);
2219 GLuint GLES2TraceImplementation::GenPathsCHROMIUM(GLsizei range) {
2220 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GenPathsCHROMIUM");
2221 return gl_->GenPathsCHROMIUM(range);
2224 void GLES2TraceImplementation::DeletePathsCHROMIUM(GLuint path, GLsizei range) {
2225 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DeletePathsCHROMIUM");
2226 gl_->DeletePathsCHROMIUM(path, range);
2229 GLboolean GLES2TraceImplementation::IsPathCHROMIUM(GLuint path) {
2230 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsPathCHROMIUM");
2231 return gl_->IsPathCHROMIUM(path);
2234 void GLES2TraceImplementation::PathCommandsCHROMIUM(GLuint path,
2235 GLsizei numCommands,
2236 const GLubyte* commands,
2237 GLsizei numCoords,
2238 GLenum coordType,
2239 const GLvoid* coords) {
2240 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PathCommandsCHROMIUM");
2241 gl_->PathCommandsCHROMIUM(path, numCommands, commands, numCoords, coordType,
2242 coords);
2245 void GLES2TraceImplementation::PathParameterfCHROMIUM(GLuint path,
2246 GLenum pname,
2247 GLfloat value) {
2248 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PathParameterfCHROMIUM");
2249 gl_->PathParameterfCHROMIUM(path, pname, value);
2252 void GLES2TraceImplementation::PathParameteriCHROMIUM(GLuint path,
2253 GLenum pname,
2254 GLint value) {
2255 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PathParameteriCHROMIUM");
2256 gl_->PathParameteriCHROMIUM(path, pname, value);
2259 void GLES2TraceImplementation::PathStencilFuncCHROMIUM(GLenum func,
2260 GLint ref,
2261 GLuint mask) {
2262 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PathStencilFuncCHROMIUM");
2263 gl_->PathStencilFuncCHROMIUM(func, ref, mask);
2266 void GLES2TraceImplementation::StencilFillPathCHROMIUM(GLuint path,
2267 GLenum fillMode,
2268 GLuint mask) {
2269 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilFillPathCHROMIUM");
2270 gl_->StencilFillPathCHROMIUM(path, fillMode, mask);
2273 void GLES2TraceImplementation::StencilStrokePathCHROMIUM(GLuint path,
2274 GLint reference,
2275 GLuint mask) {
2276 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::StencilStrokePathCHROMIUM");
2277 gl_->StencilStrokePathCHROMIUM(path, reference, mask);
2280 void GLES2TraceImplementation::CoverFillPathCHROMIUM(GLuint path,
2281 GLenum coverMode) {
2282 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CoverFillPathCHROMIUM");
2283 gl_->CoverFillPathCHROMIUM(path, coverMode);
2286 void GLES2TraceImplementation::CoverStrokePathCHROMIUM(GLuint path,
2287 GLenum coverMode) {
2288 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CoverStrokePathCHROMIUM");
2289 gl_->CoverStrokePathCHROMIUM(path, coverMode);
2292 void GLES2TraceImplementation::StencilThenCoverFillPathCHROMIUM(
2293 GLuint path,
2294 GLenum fillMode,
2295 GLuint mask,
2296 GLenum coverMode) {
2297 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
2298 "GLES2Trace::StencilThenCoverFillPathCHROMIUM");
2299 gl_->StencilThenCoverFillPathCHROMIUM(path, fillMode, mask, coverMode);
2302 void GLES2TraceImplementation::StencilThenCoverStrokePathCHROMIUM(
2303 GLuint path,
2304 GLint reference,
2305 GLuint mask,
2306 GLenum coverMode) {
2307 TRACE_EVENT_BINARY_EFFICIENT0(
2308 "gpu", "GLES2Trace::StencilThenCoverStrokePathCHROMIUM");
2309 gl_->StencilThenCoverStrokePathCHROMIUM(path, reference, mask, coverMode);
2312 GLenum GLES2TraceImplementation::GetGraphicsResetStatusKHR() {
2313 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetGraphicsResetStatusKHR");
2314 return gl_->GetGraphicsResetStatusKHR();
2317 void GLES2TraceImplementation::BlendBarrierKHR() {
2318 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendBarrierKHR");
2319 gl_->BlendBarrierKHR();
2322 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_