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 16 matching lines...) Expand all Loading... |
27 const char* name) { | 27 const char* name) { |
28 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindAttribLocation"); | 28 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindAttribLocation"); |
29 gl_->BindAttribLocation(program, index, name); | 29 gl_->BindAttribLocation(program, index, name); |
30 } | 30 } |
31 | 31 |
32 void GLES2TraceImplementation::BindBuffer(GLenum target, GLuint buffer) { | 32 void GLES2TraceImplementation::BindBuffer(GLenum target, GLuint buffer) { |
33 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindBuffer"); | 33 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindBuffer"); |
34 gl_->BindBuffer(target, buffer); | 34 gl_->BindBuffer(target, buffer); |
35 } | 35 } |
36 | 36 |
| 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); |
| 42 } |
| 43 |
37 void GLES2TraceImplementation::BindFramebuffer(GLenum target, | 44 void GLES2TraceImplementation::BindFramebuffer(GLenum target, |
38 GLuint framebuffer) { | 45 GLuint framebuffer) { |
39 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindFramebuffer"); | 46 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindFramebuffer"); |
40 gl_->BindFramebuffer(target, framebuffer); | 47 gl_->BindFramebuffer(target, framebuffer); |
41 } | 48 } |
42 | 49 |
43 void GLES2TraceImplementation::BindRenderbuffer(GLenum target, | 50 void GLES2TraceImplementation::BindRenderbuffer(GLenum target, |
44 GLuint renderbuffer) { | 51 GLuint renderbuffer) { |
45 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindRenderbuffer"); | 52 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BindRenderbuffer"); |
46 gl_->BindRenderbuffer(target, renderbuffer); | 53 gl_->BindRenderbuffer(target, renderbuffer); |
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
866 GLsizei height, | 873 GLsizei height, |
867 GLint border, | 874 GLint border, |
868 GLenum format, | 875 GLenum format, |
869 GLenum type, | 876 GLenum type, |
870 const void* pixels) { | 877 const void* pixels) { |
871 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImage2D"); | 878 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImage2D"); |
872 gl_->TexImage2D(target, level, internalformat, width, height, border, format, | 879 gl_->TexImage2D(target, level, internalformat, width, height, border, format, |
873 type, pixels); | 880 type, pixels); |
874 } | 881 } |
875 | 882 |
| 883 void GLES2TraceImplementation::TexImage3D(GLenum target, |
| 884 GLint level, |
| 885 GLint internalformat, |
| 886 GLsizei width, |
| 887 GLsizei height, |
| 888 GLsizei depth, |
| 889 GLint border, |
| 890 GLenum format, |
| 891 GLenum type, |
| 892 const void* pixels) { |
| 893 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexImage3D"); |
| 894 gl_->TexImage3D(target, level, internalformat, width, height, depth, border, |
| 895 format, type, pixels); |
| 896 } |
| 897 |
876 void GLES2TraceImplementation::TexParameterf(GLenum target, | 898 void GLES2TraceImplementation::TexParameterf(GLenum target, |
877 GLenum pname, | 899 GLenum pname, |
878 GLfloat param) { | 900 GLfloat param) { |
879 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterf"); | 901 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexParameterf"); |
880 gl_->TexParameterf(target, pname, param); | 902 gl_->TexParameterf(target, pname, param); |
881 } | 903 } |
882 | 904 |
883 void GLES2TraceImplementation::TexParameterfv(GLenum target, | 905 void GLES2TraceImplementation::TexParameterfv(GLenum target, |
884 GLenum pname, | 906 GLenum pname, |
885 const GLfloat* params) { | 907 const GLfloat* params) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
918 GLsizei width, | 940 GLsizei width, |
919 GLsizei height, | 941 GLsizei height, |
920 GLenum format, | 942 GLenum format, |
921 GLenum type, | 943 GLenum type, |
922 const void* pixels) { | 944 const void* pixels) { |
923 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage2D"); | 945 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage2D"); |
924 gl_->TexSubImage2D(target, level, xoffset, yoffset, width, height, format, | 946 gl_->TexSubImage2D(target, level, xoffset, yoffset, width, height, format, |
925 type, pixels); | 947 type, pixels); |
926 } | 948 } |
927 | 949 |
| 950 void GLES2TraceImplementation::TexSubImage3D(GLenum target, |
| 951 GLint level, |
| 952 GLint xoffset, |
| 953 GLint yoffset, |
| 954 GLint zoffset, |
| 955 GLsizei width, |
| 956 GLsizei height, |
| 957 GLsizei depth, |
| 958 GLenum format, |
| 959 GLenum type, |
| 960 const void* pixels) { |
| 961 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::TexSubImage3D"); |
| 962 gl_->TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, |
| 963 depth, format, type, pixels); |
| 964 } |
| 965 |
928 void GLES2TraceImplementation::Uniform1f(GLint location, GLfloat x) { | 966 void GLES2TraceImplementation::Uniform1f(GLint location, GLfloat x) { |
929 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1f"); | 967 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1f"); |
930 gl_->Uniform1f(location, x); | 968 gl_->Uniform1f(location, x); |
931 } | 969 } |
932 | 970 |
933 void GLES2TraceImplementation::Uniform1fv(GLint location, | 971 void GLES2TraceImplementation::Uniform1fv(GLint location, |
934 GLsizei count, | 972 GLsizei count, |
935 const GLfloat* v) { | 973 const GLfloat* v) { |
936 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1fv"); | 974 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Uniform1fv"); |
937 gl_->Uniform1fv(location, count, v); | 975 gl_->Uniform1fv(location, count, v); |
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1840 "GLES2Trace::MatrixLoadIdentityCHROMIUM"); | 1878 "GLES2Trace::MatrixLoadIdentityCHROMIUM"); |
1841 gl_->MatrixLoadIdentityCHROMIUM(matrixMode); | 1879 gl_->MatrixLoadIdentityCHROMIUM(matrixMode); |
1842 } | 1880 } |
1843 | 1881 |
1844 void GLES2TraceImplementation::BlendBarrierKHR() { | 1882 void GLES2TraceImplementation::BlendBarrierKHR() { |
1845 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendBarrierKHR"); | 1883 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendBarrierKHR"); |
1846 gl_->BlendBarrierKHR(); | 1884 gl_->BlendBarrierKHR(); |
1847 } | 1885 } |
1848 | 1886 |
1849 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_ | 1887 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_ |
OLD | NEW |