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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h

Issue 2544903003: Revert of Add command buffer support for GL_EXT_texture_sRGB_decode (Closed)
Patch Set: Created 4 years 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 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1209 GL_RGBA8_SNORM, 1209 GL_RGBA8_SNORM,
1210 GL_RGB5_A1, 1210 GL_RGB5_A1,
1211 GL_RGBA4, 1211 GL_RGBA4,
1212 GL_RGB10_A2, 1212 GL_RGB10_A2,
1213 GL_RGBA16F, 1213 GL_RGBA16F,
1214 GL_RGB_YCRCB_420_CHROMIUM, 1214 GL_RGB_YCRCB_420_CHROMIUM,
1215 GL_RGB_YCBCR_422_CHROMIUM, 1215 GL_RGB_YCBCR_422_CHROMIUM,
1216 GL_RGB_YCBCR_420V_CHROMIUM, 1216 GL_RGB_YCBCR_420V_CHROMIUM,
1217 }; 1217 };
1218 1218
1219 bool Validators::TextureSrgbDecodeExtValidator::IsValid(
1220 const GLenum value) const {
1221 switch (value) {
1222 case GL_DECODE_EXT:
1223 case GL_SKIP_DECODE_EXT:
1224 return true;
1225 }
1226 return false;
1227 };
1228
1229 static const GLenum 1219 static const GLenum
1230 valid_texture_stencil_renderable_internal_format_table_es3[] = { 1220 valid_texture_stencil_renderable_internal_format_table_es3[] = {
1231 GL_STENCIL_INDEX8, GL_DEPTH24_STENCIL8, GL_DEPTH32F_STENCIL8, 1221 GL_STENCIL_INDEX8, GL_DEPTH24_STENCIL8, GL_DEPTH32F_STENCIL8,
1232 }; 1222 };
1233 1223
1234 bool Validators::TextureSwizzleValidator::IsValid(const GLenum value) const { 1224 bool Validators::TextureSwizzleValidator::IsValid(const GLenum value) const {
1235 switch (value) { 1225 switch (value) {
1236 case GL_RED: 1226 case GL_RED:
1237 case GL_GREEN: 1227 case GL_GREEN:
1238 case GL_BLUE: 1228 case GL_BLUE:
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
1535 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ETC2); 1525 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ETC2);
1536 texture_internal_format_storage.AddValue( 1526 texture_internal_format_storage.AddValue(
1537 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2); 1527 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2);
1538 texture_internal_format_storage.AddValue( 1528 texture_internal_format_storage.AddValue(
1539 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2); 1529 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2);
1540 texture_internal_format_storage.AddValue(GL_COMPRESSED_RGBA8_ETC2_EAC); 1530 texture_internal_format_storage.AddValue(GL_COMPRESSED_RGBA8_ETC2_EAC);
1541 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC); 1531 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC);
1542 } 1532 }
1543 1533
1544 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE N_H_ 1534 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE N_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_validation_autogen.h ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698