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

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: add extension spec and don't enable for webgl Created 3 years, 6 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 4527 matching lines...) Expand 10 before | Expand all | Expand 10 after
5312 static const EnumToString string_table[] = { 5318 static const EnumToString string_table[] = {
5313 {GL_TEXTURE_2D, "GL_TEXTURE_2D"}, 5319 {GL_TEXTURE_2D, "GL_TEXTURE_2D"},
5314 {GL_TEXTURE_CUBE_MAP, "GL_TEXTURE_CUBE_MAP"}, 5320 {GL_TEXTURE_CUBE_MAP, "GL_TEXTURE_CUBE_MAP"},
5315 {GL_TEXTURE_3D, "GL_TEXTURE_3D"}, 5321 {GL_TEXTURE_3D, "GL_TEXTURE_3D"},
5316 {GL_TEXTURE_2D_ARRAY, "GL_TEXTURE_2D_ARRAY"}, 5322 {GL_TEXTURE_2D_ARRAY, "GL_TEXTURE_2D_ARRAY"},
5317 }; 5323 };
5318 return GLES2Util::GetQualifiedEnumString(string_table, 5324 return GLES2Util::GetQualifiedEnumString(string_table,
5319 arraysize(string_table), value); 5325 arraysize(string_table), value);
5320 } 5326 }
5321 5327
5328 std::string GLES2Util::GetStringTextureBufferUsage(uint32_t value) {
5329 static const EnumToString string_table[] = {
5330 {GL_NONE, "GL_NONE"},
5331 {GL_TEXTURE_BUFFER_SCANOUT_CHROMIUM,
5332 "GL_TEXTURE_BUFFER_SCANOUT_CHROMIUM"},
5333 };
5334 return GLES2Util::GetQualifiedEnumString(string_table,
5335 arraysize(string_table), value);
5336 }
5337
5322 std::string GLES2Util::GetStringTextureCompareFunc(uint32_t value) { 5338 std::string GLES2Util::GetStringTextureCompareFunc(uint32_t value) {
5323 static const EnumToString string_table[] = { 5339 static const EnumToString string_table[] = {
5324 {GL_LEQUAL, "GL_LEQUAL"}, {GL_GEQUAL, "GL_GEQUAL"}, 5340 {GL_LEQUAL, "GL_LEQUAL"}, {GL_GEQUAL, "GL_GEQUAL"},
5325 {GL_LESS, "GL_LESS"}, {GL_GREATER, "GL_GREATER"}, 5341 {GL_LESS, "GL_LESS"}, {GL_GREATER, "GL_GREATER"},
5326 {GL_EQUAL, "GL_EQUAL"}, {GL_NOTEQUAL, "GL_NOTEQUAL"}, 5342 {GL_EQUAL, "GL_EQUAL"}, {GL_NOTEQUAL, "GL_NOTEQUAL"},
5327 {GL_ALWAYS, "GL_ALWAYS"}, {GL_NEVER, "GL_NEVER"}, 5343 {GL_ALWAYS, "GL_ALWAYS"}, {GL_NEVER, "GL_NEVER"},
5328 }; 5344 };
5329 return GLES2Util::GetQualifiedEnumString(string_table, 5345 return GLES2Util::GetQualifiedEnumString(string_table,
5330 arraysize(string_table), value); 5346 arraysize(string_table), value);
5331 } 5347 }
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
5782 5798
5783 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { 5799 std::string GLES2Util::GetStringVertexPointer(uint32_t value) {
5784 static const EnumToString string_table[] = { 5800 static const EnumToString string_table[] = {
5785 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, 5801 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"},
5786 }; 5802 };
5787 return GLES2Util::GetQualifiedEnumString(string_table, 5803 return GLES2Util::GetQualifiedEnumString(string_table,
5788 arraysize(string_table), value); 5804 arraysize(string_table), value);
5789 } 5805 }
5790 5806
5791 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ 5807 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698