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

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

Issue 1308313008: Fix ReadPixels implementation specific read format/type on desktop GL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clear
Patch Set: Created 5 years, 3 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 4157 matching lines...) Expand 10 before | Expand all | Expand 10 after
4168 }; 4168 };
4169 return GLES2Util::GetQualifiedEnumString(string_table, 4169 return GLES2Util::GetQualifiedEnumString(string_table,
4170 arraysize(string_table), value); 4170 arraysize(string_table), value);
4171 } 4171 }
4172 4172
4173 std::string GLES2Util::GetStringReadPixelFormat(uint32_t value) { 4173 std::string GLES2Util::GetStringReadPixelFormat(uint32_t value) {
4174 static const EnumToString string_table[] = { 4174 static const EnumToString string_table[] = {
4175 {GL_ALPHA, "GL_ALPHA"}, 4175 {GL_ALPHA, "GL_ALPHA"},
4176 {GL_RGB, "GL_RGB"}, 4176 {GL_RGB, "GL_RGB"},
4177 {GL_RGBA, "GL_RGBA"}, 4177 {GL_RGBA, "GL_RGBA"},
4178 {GL_RED, "GL_RED"},
4179 {GL_RED_INTEGER, "GL_RED_INTEGER"},
4180 {GL_RG, "GL_RG"},
4181 {GL_RG_INTEGER, "GL_RG_INTEGER"},
4182 {GL_RGB_INTEGER, "GL_RGB_INTEGER"},
4178 {GL_RGBA_INTEGER, "GL_RGBA_INTEGER"}, 4183 {GL_RGBA_INTEGER, "GL_RGBA_INTEGER"},
4179 }; 4184 };
4180 return GLES2Util::GetQualifiedEnumString(string_table, 4185 return GLES2Util::GetQualifiedEnumString(string_table,
4181 arraysize(string_table), value); 4186 arraysize(string_table), value);
4182 } 4187 }
4183 4188
4184 std::string GLES2Util::GetStringReadPixelType(uint32_t value) { 4189 std::string GLES2Util::GetStringReadPixelType(uint32_t value) {
4185 static const EnumToString string_table[] = { 4190 static const EnumToString string_table[] = {
4186 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"}, 4191 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"},
4187 {GL_UNSIGNED_SHORT_5_6_5, "GL_UNSIGNED_SHORT_5_6_5"}, 4192 {GL_UNSIGNED_SHORT_5_6_5, "GL_UNSIGNED_SHORT_5_6_5"},
4188 {GL_UNSIGNED_SHORT_4_4_4_4, "GL_UNSIGNED_SHORT_4_4_4_4"}, 4193 {GL_UNSIGNED_SHORT_4_4_4_4, "GL_UNSIGNED_SHORT_4_4_4_4"},
4189 {GL_UNSIGNED_SHORT_5_5_5_1, "GL_UNSIGNED_SHORT_5_5_5_1"}, 4194 {GL_UNSIGNED_SHORT_5_5_5_1, "GL_UNSIGNED_SHORT_5_5_5_1"},
4195 {GL_BYTE, "GL_BYTE"},
4196 {GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT"},
4197 {GL_SHORT, "GL_SHORT"},
4190 {GL_UNSIGNED_INT, "GL_UNSIGNED_INT"}, 4198 {GL_UNSIGNED_INT, "GL_UNSIGNED_INT"},
4191 {GL_INT, "GL_INT"}, 4199 {GL_INT, "GL_INT"},
4200 {GL_HALF_FLOAT, "GL_HALF_FLOAT"},
4192 {GL_FLOAT, "GL_FLOAT"}, 4201 {GL_FLOAT, "GL_FLOAT"},
4193 {GL_UNSIGNED_INT_2_10_10_10_REV, "GL_UNSIGNED_INT_2_10_10_10_REV"}, 4202 {GL_UNSIGNED_INT_2_10_10_10_REV, "GL_UNSIGNED_INT_2_10_10_10_REV"},
4194 }; 4203 };
4195 return GLES2Util::GetQualifiedEnumString(string_table, 4204 return GLES2Util::GetQualifiedEnumString(string_table,
4196 arraysize(string_table), value); 4205 arraysize(string_table), value);
4197 } 4206 }
4198 4207
4199 std::string GLES2Util::GetStringRenderBufferFormat(uint32_t value) { 4208 std::string GLES2Util::GetStringRenderBufferFormat(uint32_t value) {
4200 static const EnumToString string_table[] = { 4209 static const EnumToString string_table[] = {
4201 {GL_RGBA4, "GL_RGBA4"}, 4210 {GL_RGBA4, "GL_RGBA4"},
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
4792 4801
4793 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { 4802 std::string GLES2Util::GetStringVertexPointer(uint32_t value) {
4794 static const EnumToString string_table[] = { 4803 static const EnumToString string_table[] = {
4795 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, 4804 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"},
4796 }; 4805 };
4797 return GLES2Util::GetQualifiedEnumString(string_table, 4806 return GLES2Util::GetQualifiedEnumString(string_table,
4798 arraysize(string_table), value); 4807 arraysize(string_table), value);
4799 } 4808 }
4800 4809
4801 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ 4810 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698