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

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

Issue 2999923002: Revert of Allow creating GLImage-backed textures with glTexStorage2D. (Closed)
Patch Set: rebase 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 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 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 }; 964 };
965 965
966 static const GLenum valid_texture_bind_target_table[] = { 966 static const GLenum valid_texture_bind_target_table[] = {
967 GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP, 967 GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP,
968 }; 968 };
969 969
970 static const GLenum valid_texture_bind_target_table_es3[] = { 970 static const GLenum valid_texture_bind_target_table_es3[] = {
971 GL_TEXTURE_3D, GL_TEXTURE_2D_ARRAY, 971 GL_TEXTURE_3D, GL_TEXTURE_2D_ARRAY,
972 }; 972 };
973 973
974 bool Validators::TextureBufferUsageValidator::IsValid(
975 const GLenum value) const {
976 switch (value) {
977 case GL_NONE:
978 case GL_TEXTURE_BUFFER_SCANOUT_CHROMIUM:
979 return true;
980 }
981 return false;
982 };
983
984 bool Validators::TextureCompareFuncValidator::IsValid( 974 bool Validators::TextureCompareFuncValidator::IsValid(
985 const GLenum value) const { 975 const GLenum value) const {
986 switch (value) { 976 switch (value) {
987 case GL_LEQUAL: 977 case GL_LEQUAL:
988 case GL_GEQUAL: 978 case GL_GEQUAL:
989 case GL_LESS: 979 case GL_LESS:
990 case GL_GREATER: 980 case GL_GREATER:
991 case GL_EQUAL: 981 case GL_EQUAL:
992 case GL_NOTEQUAL: 982 case GL_NOTEQUAL:
993 case GL_ALWAYS: 983 case GL_ALWAYS:
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
1541 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ETC2); 1531 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ETC2);
1542 texture_internal_format_storage.AddValue( 1532 texture_internal_format_storage.AddValue(
1543 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2); 1533 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2);
1544 texture_internal_format_storage.AddValue( 1534 texture_internal_format_storage.AddValue(
1545 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2); 1535 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2);
1546 texture_internal_format_storage.AddValue(GL_COMPRESSED_RGBA8_ETC2_EAC); 1536 texture_internal_format_storage.AddValue(GL_COMPRESSED_RGBA8_ETC2_EAC);
1547 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC); 1537 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC);
1548 } 1538 }
1549 1539
1550 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE N_H_ 1540 #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/image_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698