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

Unified Diff: gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h

Issue 2945673002: Allow creating GLImage-backed textures with glTexStorage2D. (Closed)
Patch Set: fix unittests 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h
diff --git a/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h b/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h
index 246090b1d1d4716e6f50c65ff062737e0fa34dfa..0915ccf40c73e3b5f314e47e3e7888bbf80b287e 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h
@@ -772,6 +772,12 @@ static const GLES2Util::EnumToString enum_to_string_table[] = {
0x78FC, "GL_RGB_YCBCR_420V_CHROMIUM",
},
{
+ 0x78FD, "GL_TEXTURE_BUFFER_USAGE_CHROMIUM",
+ },
+ {
+ 0x78FE, "GL_TEXTURE_BUFFER_SCANOUT_CHROMIUM",
+ },
+ {
0x8, "GL_CA_LAYER_EDGE_TOP_CHROMIUM",
},
{
@@ -1915,6 +1921,18 @@ static const GLES2Util::EnumToString enum_to_string_table[] = {
0x8AF0, "GL_TEXTURE_FILTERING_HINT_CHROMIUM",
},
{
+ 0x8AF1, "GL_COLOR_SPACE_UNSPECIFIED_CHROMIUM",
+ },
+ {
+ 0x8AF2, "GL_COLOR_SPACE_SCRGB_LINEAR_CHROMIUM",
+ },
+ {
+ 0x8AF3, "GL_COLOR_SPACE_SRGB_CHROMIUM",
+ },
+ {
+ 0x8AF4, "GL_COLOR_SPACE_DISPLAY_P3_CHROMIUM",
+ },
+ {
0x8B30, "GL_FRAGMENT_SHADER",
},
{
@@ -5322,6 +5340,16 @@ std::string GLES2Util::GetStringTextureBindTarget(uint32_t value) {
arraysize(string_table), value);
}
+std::string GLES2Util::GetStringTextureBufferUsage(uint32_t value) {
+ static const EnumToString string_table[] = {
+ {GL_NONE, "GL_NONE"},
+ {GL_TEXTURE_BUFFER_SCANOUT_CHROMIUM,
+ "GL_TEXTURE_BUFFER_SCANOUT_CHROMIUM"},
+ };
+ return GLES2Util::GetQualifiedEnumString(string_table,
+ arraysize(string_table), value);
+}
+
std::string GLES2Util::GetStringTextureCompareFunc(uint32_t value) {
static const EnumToString string_table[] = {
{GL_LEQUAL, "GL_LEQUAL"}, {GL_GEQUAL, "GL_GEQUAL"},

Powered by Google App Engine
This is Rietveld 408576698