Chromium Code Reviews| 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 3614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3625 {GL_NEVER, "GL_NEVER"}, {GL_LESS, "GL_LESS"}, | 3625 {GL_NEVER, "GL_NEVER"}, {GL_LESS, "GL_LESS"}, |
| 3626 {GL_EQUAL, "GL_EQUAL"}, {GL_LEQUAL, "GL_LEQUAL"}, | 3626 {GL_EQUAL, "GL_EQUAL"}, {GL_LEQUAL, "GL_LEQUAL"}, |
| 3627 {GL_GREATER, "GL_GREATER"}, {GL_NOTEQUAL, "GL_NOTEQUAL"}, | 3627 {GL_GREATER, "GL_GREATER"}, {GL_NOTEQUAL, "GL_NOTEQUAL"}, |
| 3628 {GL_GEQUAL, "GL_GEQUAL"}, {GL_ALWAYS, "GL_ALWAYS"}, | 3628 {GL_GEQUAL, "GL_GEQUAL"}, {GL_ALWAYS, "GL_ALWAYS"}, |
| 3629 }; | 3629 }; |
| 3630 return GLES2Util::GetQualifiedEnumString(string_table, | 3630 return GLES2Util::GetQualifiedEnumString(string_table, |
| 3631 arraysize(string_table), value); | 3631 arraysize(string_table), value); |
| 3632 } | 3632 } |
| 3633 | 3633 |
| 3634 std::string GLES2Util::GetStringCompressedTextureFormat(uint32_t value) { | 3634 std::string GLES2Util::GetStringCompressedTextureFormat(uint32_t value) { |
| 3635 static const EnumToString string_table[] = { | 3635 return GLES2Util::GetQualifiedEnumString(NULL, 0, value); |
|
Kai Ninomiya
2016/09/21 22:31:17
Is this change in the autogenerated code okay?
Kai Ninomiya
2016/09/21 22:46:47
Never mind, once my brain started working again I
| |
| 3636 {GL_COMPRESSED_R11_EAC, "GL_COMPRESSED_R11_EAC"}, | |
| 3637 {GL_COMPRESSED_SIGNED_R11_EAC, "GL_COMPRESSED_SIGNED_R11_EAC"}, | |
| 3638 {GL_COMPRESSED_RG11_EAC, "GL_COMPRESSED_RG11_EAC"}, | |
| 3639 {GL_COMPRESSED_SIGNED_RG11_EAC, "GL_COMPRESSED_SIGNED_RG11_EAC"}, | |
| 3640 {GL_COMPRESSED_RGB8_ETC2, "GL_COMPRESSED_RGB8_ETC2"}, | |
| 3641 {GL_COMPRESSED_SRGB8_ETC2, "GL_COMPRESSED_SRGB8_ETC2"}, | |
| 3642 {GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2, | |
| 3643 "GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2"}, | |
| 3644 {GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2, | |
| 3645 "GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2"}, | |
| 3646 {GL_COMPRESSED_RGBA8_ETC2_EAC, "GL_COMPRESSED_RGBA8_ETC2_EAC"}, | |
| 3647 {GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC, | |
| 3648 "GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}, | |
| 3649 }; | |
| 3650 return GLES2Util::GetQualifiedEnumString(string_table, | |
| 3651 arraysize(string_table), value); | |
| 3652 } | 3636 } |
| 3653 | 3637 |
| 3654 std::string GLES2Util::GetStringCoverageModulationComponents(uint32_t value) { | 3638 std::string GLES2Util::GetStringCoverageModulationComponents(uint32_t value) { |
| 3655 static const EnumToString string_table[] = { | 3639 static const EnumToString string_table[] = { |
| 3656 {GL_RGB, "GL_RGB"}, | 3640 {GL_RGB, "GL_RGB"}, |
| 3657 {GL_RGBA, "GL_RGBA"}, | 3641 {GL_RGBA, "GL_RGBA"}, |
| 3658 {GL_ALPHA, "GL_ALPHA"}, | 3642 {GL_ALPHA, "GL_ALPHA"}, |
| 3659 {GL_NONE, "GL_NONE"}, | 3643 {GL_NONE, "GL_NONE"}, |
| 3660 }; | 3644 }; |
| 3661 return GLES2Util::GetQualifiedEnumString(string_table, | 3645 return GLES2Util::GetQualifiedEnumString(string_table, |
| (...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4724 {GL_RGB10_A2UI, "GL_RGB10_A2UI"}, | 4708 {GL_RGB10_A2UI, "GL_RGB10_A2UI"}, |
| 4725 {GL_RGBA16UI, "GL_RGBA16UI"}, | 4709 {GL_RGBA16UI, "GL_RGBA16UI"}, |
| 4726 {GL_RGBA16I, "GL_RGBA16I"}, | 4710 {GL_RGBA16I, "GL_RGBA16I"}, |
| 4727 {GL_RGBA32UI, "GL_RGBA32UI"}, | 4711 {GL_RGBA32UI, "GL_RGBA32UI"}, |
| 4728 {GL_RGBA32I, "GL_RGBA32I"}, | 4712 {GL_RGBA32I, "GL_RGBA32I"}, |
| 4729 {GL_DEPTH_COMPONENT16, "GL_DEPTH_COMPONENT16"}, | 4713 {GL_DEPTH_COMPONENT16, "GL_DEPTH_COMPONENT16"}, |
| 4730 {GL_DEPTH_COMPONENT24, "GL_DEPTH_COMPONENT24"}, | 4714 {GL_DEPTH_COMPONENT24, "GL_DEPTH_COMPONENT24"}, |
| 4731 {GL_DEPTH_COMPONENT32F, "GL_DEPTH_COMPONENT32F"}, | 4715 {GL_DEPTH_COMPONENT32F, "GL_DEPTH_COMPONENT32F"}, |
| 4732 {GL_DEPTH24_STENCIL8, "GL_DEPTH24_STENCIL8"}, | 4716 {GL_DEPTH24_STENCIL8, "GL_DEPTH24_STENCIL8"}, |
| 4733 {GL_DEPTH32F_STENCIL8, "GL_DEPTH32F_STENCIL8"}, | 4717 {GL_DEPTH32F_STENCIL8, "GL_DEPTH32F_STENCIL8"}, |
| 4734 {GL_COMPRESSED_R11_EAC, "GL_COMPRESSED_R11_EAC"}, | |
| 4735 {GL_COMPRESSED_SIGNED_R11_EAC, "GL_COMPRESSED_SIGNED_R11_EAC"}, | |
| 4736 {GL_COMPRESSED_RG11_EAC, "GL_COMPRESSED_RG11_EAC"}, | |
| 4737 {GL_COMPRESSED_SIGNED_RG11_EAC, "GL_COMPRESSED_SIGNED_RG11_EAC"}, | |
| 4738 {GL_COMPRESSED_RGB8_ETC2, "GL_COMPRESSED_RGB8_ETC2"}, | |
| 4739 {GL_COMPRESSED_SRGB8_ETC2, "GL_COMPRESSED_SRGB8_ETC2"}, | |
| 4740 {GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2, | |
| 4741 "GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2"}, | |
| 4742 {GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2, | |
| 4743 "GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2"}, | |
| 4744 {GL_COMPRESSED_RGBA8_ETC2_EAC, "GL_COMPRESSED_RGBA8_ETC2_EAC"}, | |
| 4745 {GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC, | |
| 4746 "GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}, | |
| 4747 }; | 4718 }; |
|
Kai Ninomiya
2016/09/21 22:31:17
And this one?
Kai Ninomiya
2016/09/21 22:46:47
Never mind
| |
| 4748 return GLES2Util::GetQualifiedEnumString(string_table, | 4719 return GLES2Util::GetQualifiedEnumString(string_table, |
| 4749 arraysize(string_table), value); | 4720 arraysize(string_table), value); |
| 4750 } | 4721 } |
| 4751 | 4722 |
| 4752 std::string GLES2Util::GetStringTextureMagFilterMode(uint32_t value) { | 4723 std::string GLES2Util::GetStringTextureMagFilterMode(uint32_t value) { |
| 4753 static const EnumToString string_table[] = { | 4724 static const EnumToString string_table[] = { |
| 4754 {GL_NEAREST, "GL_NEAREST"}, {GL_LINEAR, "GL_LINEAR"}, | 4725 {GL_NEAREST, "GL_NEAREST"}, {GL_LINEAR, "GL_LINEAR"}, |
| 4755 }; | 4726 }; |
| 4756 return GLES2Util::GetQualifiedEnumString(string_table, | 4727 return GLES2Util::GetQualifiedEnumString(string_table, |
| 4757 arraysize(string_table), value); | 4728 arraysize(string_table), value); |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5018 | 4989 |
| 5019 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { | 4990 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { |
| 5020 static const EnumToString string_table[] = { | 4991 static const EnumToString string_table[] = { |
| 5021 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, | 4992 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, |
| 5022 }; | 4993 }; |
| 5023 return GLES2Util::GetQualifiedEnumString(string_table, | 4994 return GLES2Util::GetQualifiedEnumString(string_table, |
| 5024 arraysize(string_table), value); | 4995 arraysize(string_table), value); |
| 5025 } | 4996 } |
| 5026 | 4997 |
| 5027 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ | 4998 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ |
| OLD | NEW |