| 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 4457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4468 } | 4468 } |
| 4469 | 4469 |
| 4470 std::string GLES2Util::GetStringBlitFilter(uint32_t value) { | 4470 std::string GLES2Util::GetStringBlitFilter(uint32_t value) { |
| 4471 static const EnumToString string_table[] = { | 4471 static const EnumToString string_table[] = { |
| 4472 {GL_NEAREST, "GL_NEAREST"}, {GL_LINEAR, "GL_LINEAR"}, | 4472 {GL_NEAREST, "GL_NEAREST"}, {GL_LINEAR, "GL_LINEAR"}, |
| 4473 }; | 4473 }; |
| 4474 return GLES2Util::GetQualifiedEnumString(string_table, | 4474 return GLES2Util::GetQualifiedEnumString(string_table, |
| 4475 arraysize(string_table), value); | 4475 arraysize(string_table), value); |
| 4476 } | 4476 } |
| 4477 | 4477 |
| 4478 std::string GLES2Util::GetStringBufferMode(uint32_t value) { |
| 4479 static const EnumToString string_table[] = { |
| 4480 {GL_INTERLEAVED_ATTRIBS, "GL_INTERLEAVED_ATTRIBS"}, |
| 4481 {GL_SEPARATE_ATTRIBS, "GL_SEPARATE_ATTRIBS"}, |
| 4482 }; |
| 4483 return GLES2Util::GetQualifiedEnumString(string_table, |
| 4484 arraysize(string_table), value); |
| 4485 } |
| 4486 |
| 4478 std::string GLES2Util::GetStringBufferParameter(uint32_t value) { | 4487 std::string GLES2Util::GetStringBufferParameter(uint32_t value) { |
| 4479 static const EnumToString string_table[] = { | 4488 static const EnumToString string_table[] = { |
| 4480 {GL_BUFFER_SIZE, "GL_BUFFER_SIZE"}, {GL_BUFFER_USAGE, "GL_BUFFER_USAGE"}, | 4489 {GL_BUFFER_SIZE, "GL_BUFFER_SIZE"}, {GL_BUFFER_USAGE, "GL_BUFFER_USAGE"}, |
| 4481 }; | 4490 }; |
| 4482 return GLES2Util::GetQualifiedEnumString(string_table, | 4491 return GLES2Util::GetQualifiedEnumString(string_table, |
| 4483 arraysize(string_table), value); | 4492 arraysize(string_table), value); |
| 4484 } | 4493 } |
| 4485 | 4494 |
| 4486 std::string GLES2Util::GetStringBufferTarget(uint32_t value) { | 4495 std::string GLES2Util::GetStringBufferTarget(uint32_t value) { |
| 4487 static const EnumToString string_table[] = { | 4496 static const EnumToString string_table[] = { |
| (...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5289 | 5298 |
| 5290 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { | 5299 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { |
| 5291 static const EnumToString string_table[] = { | 5300 static const EnumToString string_table[] = { |
| 5292 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, | 5301 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, |
| 5293 }; | 5302 }; |
| 5294 return GLES2Util::GetQualifiedEnumString(string_table, | 5303 return GLES2Util::GetQualifiedEnumString(string_table, |
| 5295 arraysize(string_table), value); | 5304 arraysize(string_table), value); |
| 5296 } | 5305 } |
| 5297 | 5306 |
| 5298 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ | 5307 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ |
| OLD | NEW |