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

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, 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 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"},
4184 {GL_LUMINANCE, "GL_LUMINANCE"},
4185 {GL_LUMINANCE_ALPHA, "GL_LUMINANCE_ALPHA"},
4179 }; 4186 };
4180 return GLES2Util::GetQualifiedEnumString(string_table, 4187 return GLES2Util::GetQualifiedEnumString(string_table,
4181 arraysize(string_table), value); 4188 arraysize(string_table), value);
4182 } 4189 }
4183 4190
4184 std::string GLES2Util::GetStringReadPixelType(uint32_t value) { 4191 std::string GLES2Util::GetStringReadPixelType(uint32_t value) {
4185 static const EnumToString string_table[] = { 4192 static const EnumToString string_table[] = {
4186 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"}, 4193 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"},
4187 {GL_UNSIGNED_SHORT_5_6_5, "GL_UNSIGNED_SHORT_5_6_5"}, 4194 {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"}, 4195 {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"}, 4196 {GL_UNSIGNED_SHORT_5_5_5_1, "GL_UNSIGNED_SHORT_5_5_5_1"},
4197 {GL_BYTE, "GL_BYTE"},
4198 {GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT"},
4199 {GL_SHORT, "GL_SHORT"},
4190 {GL_UNSIGNED_INT, "GL_UNSIGNED_INT"}, 4200 {GL_UNSIGNED_INT, "GL_UNSIGNED_INT"},
4191 {GL_INT, "GL_INT"}, 4201 {GL_INT, "GL_INT"},
4202 {GL_HALF_FLOAT, "GL_HALF_FLOAT"},
4192 {GL_FLOAT, "GL_FLOAT"}, 4203 {GL_FLOAT, "GL_FLOAT"},
4193 {GL_UNSIGNED_INT_2_10_10_10_REV, "GL_UNSIGNED_INT_2_10_10_10_REV"}, 4204 {GL_UNSIGNED_INT_2_10_10_10_REV, "GL_UNSIGNED_INT_2_10_10_10_REV"},
4194 }; 4205 };
4195 return GLES2Util::GetQualifiedEnumString(string_table, 4206 return GLES2Util::GetQualifiedEnumString(string_table,
4196 arraysize(string_table), value); 4207 arraysize(string_table), value);
4197 } 4208 }
4198 4209
4199 std::string GLES2Util::GetStringRenderBufferFormat(uint32_t value) { 4210 std::string GLES2Util::GetStringRenderBufferFormat(uint32_t value) {
4200 static const EnumToString string_table[] = { 4211 static const EnumToString string_table[] = {
4201 {GL_RGBA4, "GL_RGBA4"}, 4212 {GL_RGBA4, "GL_RGBA4"},
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
4792 4803
4793 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { 4804 std::string GLES2Util::GetStringVertexPointer(uint32_t value) {
4794 static const EnumToString string_table[] = { 4805 static const EnumToString string_table[] = {
4795 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, 4806 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"},
4796 }; 4807 };
4797 return GLES2Util::GetQualifiedEnumString(string_table, 4808 return GLES2Util::GetQualifiedEnumString(string_table,
4798 arraysize(string_table), value); 4809 arraysize(string_table), value);
4799 } 4810 }
4800 4811
4801 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ 4812 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698