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

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

Issue 1559203003: Add GLStreamTextureImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added enum, removed count parameter. Created 4 years, 10 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 3085 matching lines...) Expand 10 before | Expand all | Expand 10 after
3096 { 3096 {
3097 0x928D, "GL_DST_OUT_NV", 3097 0x928D, "GL_DST_OUT_NV",
3098 }, 3098 },
3099 { 3099 {
3100 0x928E, "GL_SRC_ATOP_NV", 3100 0x928E, "GL_SRC_ATOP_NV",
3101 }, 3101 },
3102 { 3102 {
3103 0x928F, "GL_DST_ATOP_NV", 3103 0x928F, "GL_DST_ATOP_NV",
3104 }, 3104 },
3105 { 3105 {
3106 0x9290, "GL_CUSTOM_MATRIX_STREAM_TEXTURE_CHROMIUM",
3107 },
3108 {
3106 0x9291, "GL_PLUS_NV", 3109 0x9291, "GL_PLUS_NV",
3107 }, 3110 },
3108 { 3111 {
3109 0x9292, "GL_PLUS_DARKER_NV", 3112 0x9292, "GL_PLUS_DARKER_NV",
3110 }, 3113 },
3111 { 3114 {
3112 0x9294, "GL_MULTIPLY_KHR", 3115 0x9294, "GL_MULTIPLY_KHR",
3113 }, 3116 },
3114 { 3117 {
3115 0x9295, "GL_SCREEN_KHR", 3118 0x9295, "GL_SCREEN_KHR",
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
3650 static const EnumToString string_table[] = { 3653 static const EnumToString string_table[] = {
3651 {GL_RGB, "GL_RGB"}, 3654 {GL_RGB, "GL_RGB"},
3652 {GL_RGBA, "GL_RGBA"}, 3655 {GL_RGBA, "GL_RGBA"},
3653 {GL_ALPHA, "GL_ALPHA"}, 3656 {GL_ALPHA, "GL_ALPHA"},
3654 {GL_NONE, "GL_NONE"}, 3657 {GL_NONE, "GL_NONE"},
3655 }; 3658 };
3656 return GLES2Util::GetQualifiedEnumString(string_table, 3659 return GLES2Util::GetQualifiedEnumString(string_table,
3657 arraysize(string_table), value); 3660 arraysize(string_table), value);
3658 } 3661 }
3659 3662
3663 std::string GLES2Util::GetStringCustomMatrixParameter(uint32_t value) {
3664 static const EnumToString string_table[] = {
3665 {GL_CUSTOM_MATRIX_STREAM_TEXTURE_CHROMIUM,
3666 "GL_CUSTOM_MATRIX_STREAM_TEXTURE_CHROMIUM"},
3667 };
3668 return GLES2Util::GetQualifiedEnumString(string_table,
3669 arraysize(string_table), value);
3670 }
3671
3660 std::string GLES2Util::GetStringDrawMode(uint32_t value) { 3672 std::string GLES2Util::GetStringDrawMode(uint32_t value) {
3661 static const EnumToString string_table[] = { 3673 static const EnumToString string_table[] = {
3662 {GL_POINTS, "GL_POINTS"}, 3674 {GL_POINTS, "GL_POINTS"},
3663 {GL_LINE_STRIP, "GL_LINE_STRIP"}, 3675 {GL_LINE_STRIP, "GL_LINE_STRIP"},
3664 {GL_LINE_LOOP, "GL_LINE_LOOP"}, 3676 {GL_LINE_LOOP, "GL_LINE_LOOP"},
3665 {GL_LINES, "GL_LINES"}, 3677 {GL_LINES, "GL_LINES"},
3666 {GL_TRIANGLE_STRIP, "GL_TRIANGLE_STRIP"}, 3678 {GL_TRIANGLE_STRIP, "GL_TRIANGLE_STRIP"},
3667 {GL_TRIANGLE_FAN, "GL_TRIANGLE_FAN"}, 3679 {GL_TRIANGLE_FAN, "GL_TRIANGLE_FAN"},
3668 {GL_TRIANGLES, "GL_TRIANGLES"}, 3680 {GL_TRIANGLES, "GL_TRIANGLES"},
3669 }; 3681 };
(...skipping 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after
5012 5024
5013 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { 5025 std::string GLES2Util::GetStringVertexPointer(uint32_t value) {
5014 static const EnumToString string_table[] = { 5026 static const EnumToString string_table[] = {
5015 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, 5027 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"},
5016 }; 5028 };
5017 return GLES2Util::GetQualifiedEnumString(string_table, 5029 return GLES2Util::GetQualifiedEnumString(string_table,
5018 arraysize(string_table), value); 5030 arraysize(string_table), value);
5019 } 5031 }
5020 5032
5021 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ 5033 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698