| 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 4031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4042 {GL_TRANSFORM_FEEDBACK_BUFFER_START, | 4042 {GL_TRANSFORM_FEEDBACK_BUFFER_START, |
| 4043 "GL_TRANSFORM_FEEDBACK_BUFFER_START"}, | 4043 "GL_TRANSFORM_FEEDBACK_BUFFER_START"}, |
| 4044 {GL_UNIFORM_BUFFER_BINDING, "GL_UNIFORM_BUFFER_BINDING"}, | 4044 {GL_UNIFORM_BUFFER_BINDING, "GL_UNIFORM_BUFFER_BINDING"}, |
| 4045 {GL_UNIFORM_BUFFER_SIZE, "GL_UNIFORM_BUFFER_SIZE"}, | 4045 {GL_UNIFORM_BUFFER_SIZE, "GL_UNIFORM_BUFFER_SIZE"}, |
| 4046 {GL_UNIFORM_BUFFER_START, "GL_UNIFORM_BUFFER_START"}, | 4046 {GL_UNIFORM_BUFFER_START, "GL_UNIFORM_BUFFER_START"}, |
| 4047 }; | 4047 }; |
| 4048 return GLES2Util::GetQualifiedEnumString(string_table, | 4048 return GLES2Util::GetQualifiedEnumString(string_table, |
| 4049 arraysize(string_table), value); | 4049 arraysize(string_table), value); |
| 4050 } | 4050 } |
| 4051 | 4051 |
| 4052 std::string GLES2Util::GetStringIndexedStringType(uint32_t value) { |
| 4053 static const EnumToString string_table[] = { |
| 4054 {GL_EXTENSIONS, "GL_EXTENSIONS"}, |
| 4055 }; |
| 4056 return GLES2Util::GetQualifiedEnumString(string_table, |
| 4057 arraysize(string_table), value); |
| 4058 } |
| 4059 |
| 4052 std::string GLES2Util::GetStringInternalFormatParameter(uint32_t value) { | 4060 std::string GLES2Util::GetStringInternalFormatParameter(uint32_t value) { |
| 4053 static const EnumToString string_table[] = { | 4061 static const EnumToString string_table[] = { |
| 4054 {GL_NUM_SAMPLE_COUNTS, "GL_NUM_SAMPLE_COUNTS"}, | 4062 {GL_NUM_SAMPLE_COUNTS, "GL_NUM_SAMPLE_COUNTS"}, |
| 4055 {GL_SAMPLES, "GL_SAMPLES"}, | 4063 {GL_SAMPLES, "GL_SAMPLES"}, |
| 4056 }; | 4064 }; |
| 4057 return GLES2Util::GetQualifiedEnumString(string_table, | 4065 return GLES2Util::GetQualifiedEnumString(string_table, |
| 4058 arraysize(string_table), value); | 4066 arraysize(string_table), value); |
| 4059 } | 4067 } |
| 4060 | 4068 |
| 4061 std::string GLES2Util::GetStringMapBufferAccess(uint32_t value) { | 4069 std::string GLES2Util::GetStringMapBufferAccess(uint32_t value) { |
| (...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5012 | 5020 |
| 5013 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { | 5021 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { |
| 5014 static const EnumToString string_table[] = { | 5022 static const EnumToString string_table[] = { |
| 5015 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, | 5023 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, |
| 5016 }; | 5024 }; |
| 5017 return GLES2Util::GetQualifiedEnumString(string_table, | 5025 return GLES2Util::GetQualifiedEnumString(string_table, |
| 5018 arraysize(string_table), value); | 5026 arraysize(string_table), value); |
| 5019 } | 5027 } |
| 5020 | 5028 |
| 5021 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ | 5029 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ |
| OLD | NEW |