Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2186)

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h

Issue 2945673002: Allow creating GLImage-backed textures with glTexStorage2D. (Closed)
Patch Set: rebase Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 { 765 {
766 0x78FA, "GL_RGB_YCRCB_420_CHROMIUM", 766 0x78FA, "GL_RGB_YCRCB_420_CHROMIUM",
767 }, 767 },
768 { 768 {
769 0x78FB, "GL_RGB_YCBCR_422_CHROMIUM", 769 0x78FB, "GL_RGB_YCBCR_422_CHROMIUM",
770 }, 770 },
771 { 771 {
772 0x78FC, "GL_RGB_YCBCR_420V_CHROMIUM", 772 0x78FC, "GL_RGB_YCBCR_420V_CHROMIUM",
773 }, 773 },
774 { 774 {
775 0x78FD, "GL_TEXTURE_BUFFER_USAGE_CHROMIUM",
776 },
777 {
778 0x78FE, "GL_TEXTURE_BUFFER_SCANOUT_CHROMIUM",
779 },
780 {
775 0x8, "GL_CA_LAYER_EDGE_TOP_CHROMIUM", 781 0x8, "GL_CA_LAYER_EDGE_TOP_CHROMIUM",
776 }, 782 },
777 { 783 {
778 0x80, "GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV", 784 0x80, "GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV",
779 }, 785 },
780 { 786 {
781 0x80000000, "GL_MULTISAMPLE_BUFFER_BIT7_QCOM", 787 0x80000000, "GL_MULTISAMPLE_BUFFER_BIT7_QCOM",
782 }, 788 },
783 { 789 {
784 0x8001, "GL_CONSTANT_COLOR", 790 0x8001, "GL_CONSTANT_COLOR",
(...skipping 4542 matching lines...) Expand 10 before | Expand all | Expand 10 after
5327 static const EnumToString string_table[] = { 5333 static const EnumToString string_table[] = {
5328 {GL_TEXTURE_2D, "GL_TEXTURE_2D"}, 5334 {GL_TEXTURE_2D, "GL_TEXTURE_2D"},
5329 {GL_TEXTURE_CUBE_MAP, "GL_TEXTURE_CUBE_MAP"}, 5335 {GL_TEXTURE_CUBE_MAP, "GL_TEXTURE_CUBE_MAP"},
5330 {GL_TEXTURE_3D, "GL_TEXTURE_3D"}, 5336 {GL_TEXTURE_3D, "GL_TEXTURE_3D"},
5331 {GL_TEXTURE_2D_ARRAY, "GL_TEXTURE_2D_ARRAY"}, 5337 {GL_TEXTURE_2D_ARRAY, "GL_TEXTURE_2D_ARRAY"},
5332 }; 5338 };
5333 return GLES2Util::GetQualifiedEnumString(string_table, 5339 return GLES2Util::GetQualifiedEnumString(string_table,
5334 arraysize(string_table), value); 5340 arraysize(string_table), value);
5335 } 5341 }
5336 5342
5343 std::string GLES2Util::GetStringTextureBufferUsage(uint32_t value) {
5344 static const EnumToString string_table[] = {
5345 {GL_NONE, "GL_NONE"},
5346 {GL_TEXTURE_BUFFER_SCANOUT_CHROMIUM,
5347 "GL_TEXTURE_BUFFER_SCANOUT_CHROMIUM"},
5348 };
5349 return GLES2Util::GetQualifiedEnumString(string_table,
5350 arraysize(string_table), value);
5351 }
5352
5337 std::string GLES2Util::GetStringTextureCompareFunc(uint32_t value) { 5353 std::string GLES2Util::GetStringTextureCompareFunc(uint32_t value) {
5338 static const EnumToString string_table[] = { 5354 static const EnumToString string_table[] = {
5339 {GL_LEQUAL, "GL_LEQUAL"}, {GL_GEQUAL, "GL_GEQUAL"}, 5355 {GL_LEQUAL, "GL_LEQUAL"}, {GL_GEQUAL, "GL_GEQUAL"},
5340 {GL_LESS, "GL_LESS"}, {GL_GREATER, "GL_GREATER"}, 5356 {GL_LESS, "GL_LESS"}, {GL_GREATER, "GL_GREATER"},
5341 {GL_EQUAL, "GL_EQUAL"}, {GL_NOTEQUAL, "GL_NOTEQUAL"}, 5357 {GL_EQUAL, "GL_EQUAL"}, {GL_NOTEQUAL, "GL_NOTEQUAL"},
5342 {GL_ALWAYS, "GL_ALWAYS"}, {GL_NEVER, "GL_NEVER"}, 5358 {GL_ALWAYS, "GL_ALWAYS"}, {GL_NEVER, "GL_NEVER"},
5343 }; 5359 };
5344 return GLES2Util::GetQualifiedEnumString(string_table, 5360 return GLES2Util::GetQualifiedEnumString(string_table,
5345 arraysize(string_table), value); 5361 arraysize(string_table), value);
5346 } 5362 }
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
5797 5813
5798 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { 5814 std::string GLES2Util::GetStringVertexPointer(uint32_t value) {
5799 static const EnumToString string_table[] = { 5815 static const EnumToString string_table[] = {
5800 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, 5816 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"},
5801 }; 5817 };
5802 return GLES2Util::GetQualifiedEnumString(string_table, 5818 return GLES2Util::GetQualifiedEnumString(string_table,
5803 arraysize(string_table), value); 5819 arraysize(string_table), value);
5804 } 5820 }
5805 5821
5806 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ 5822 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils_autogen.h ('k') | gpu/command_buffer/service/feature_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698