OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file is auto-generated from | 5 // This file is auto-generated from |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 GLint xoffset, | 251 GLint xoffset, |
252 GLint yoffset, | 252 GLint yoffset, |
253 GLint x, | 253 GLint x, |
254 GLint y, | 254 GLint y, |
255 GLsizei width, | 255 GLsizei width, |
256 GLsizei height) { | 256 GLsizei height) { |
257 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexSubImage2D"); | 257 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexSubImage2D"); |
258 gl_->CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height); | 258 gl_->CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height); |
259 } | 259 } |
260 | 260 |
| 261 void GLES2TraceImplementation::CopyTexSubImage3D(GLenum target, |
| 262 GLint level, |
| 263 GLint xoffset, |
| 264 GLint yoffset, |
| 265 GLint zoffset, |
| 266 GLint x, |
| 267 GLint y, |
| 268 GLsizei width, |
| 269 GLsizei height) { |
| 270 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CopyTexSubImage3D"); |
| 271 gl_->CopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, |
| 272 height); |
| 273 } |
| 274 |
261 GLuint GLES2TraceImplementation::CreateProgram() { | 275 GLuint GLES2TraceImplementation::CreateProgram() { |
262 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateProgram"); | 276 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateProgram"); |
263 return gl_->CreateProgram(); | 277 return gl_->CreateProgram(); |
264 } | 278 } |
265 | 279 |
266 GLuint GLES2TraceImplementation::CreateShader(GLenum type) { | 280 GLuint GLES2TraceImplementation::CreateShader(GLenum type) { |
267 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateShader"); | 281 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::CreateShader"); |
268 return gl_->CreateShader(type); | 282 return gl_->CreateShader(type); |
269 } | 283 } |
270 | 284 |
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1015 GLsizei height, | 1029 GLsizei height, |
1016 GLsizei depth, | 1030 GLsizei depth, |
1017 GLenum format, | 1031 GLenum format, |
1018 GLenum type, | 1032 GLenum type, |
1019 const void* pixels) { | 1033 const void* pixels) { |
1020 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage3D"); | 1034 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage3D"); |
1021 gl_->TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, | 1035 gl_->TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, |
1022 depth, format, type, pixels); | 1036 depth, format, type, pixels); |
1023 } | 1037 } |
1024 | 1038 |
| 1039 void GLES2TraceImplementation::TransformFeedbackVaryings( |
| 1040 GLuint program, |
| 1041 GLsizei count, |
| 1042 const char* const* varyings, |
| 1043 GLenum buffermode) { |
| 1044 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TransformFeedbackVaryings"); |
| 1045 gl_->TransformFeedbackVaryings(program, count, varyings, buffermode); |
| 1046 } |
| 1047 |
1025 void GLES2TraceImplementation::Uniform1f(GLint location, GLfloat x) { | 1048 void GLES2TraceImplementation::Uniform1f(GLint location, GLfloat x) { |
1026 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1f"); | 1049 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1f"); |
1027 gl_->Uniform1f(location, x); | 1050 gl_->Uniform1f(location, x); |
1028 } | 1051 } |
1029 | 1052 |
1030 void GLES2TraceImplementation::Uniform1fv(GLint location, | 1053 void GLES2TraceImplementation::Uniform1fv(GLint location, |
1031 GLsizei count, | 1054 GLsizei count, |
1032 const GLfloat* v) { | 1055 const GLfloat* v) { |
1033 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1fv"); | 1056 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1fv"); |
1034 gl_->Uniform1fv(location, count, v); | 1057 gl_->Uniform1fv(location, count, v); |
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1937 "GLES2Trace::MatrixLoadIdentityCHROMIUM"); | 1960 "GLES2Trace::MatrixLoadIdentityCHROMIUM"); |
1938 gl_->MatrixLoadIdentityCHROMIUM(matrixMode); | 1961 gl_->MatrixLoadIdentityCHROMIUM(matrixMode); |
1939 } | 1962 } |
1940 | 1963 |
1941 void GLES2TraceImplementation::BlendBarrierKHR() { | 1964 void GLES2TraceImplementation::BlendBarrierKHR() { |
1942 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendBarrierKHR"); | 1965 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendBarrierKHR"); |
1943 gl_->BlendBarrierKHR(); | 1966 gl_->BlendBarrierKHR(); |
1944 } | 1967 } |
1945 | 1968 |
1946 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_ | 1969 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_ |
OLD | NEW |