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

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

Issue 987123003: Add a mechanism for command buffer to conditionally allow ES3 enums. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_validation.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 25 matching lines...) Expand all
36 static const GLenum valid_buffer_parameter_table[] = { 36 static const GLenum valid_buffer_parameter_table[] = {
37 GL_BUFFER_SIZE, 37 GL_BUFFER_SIZE,
38 GL_BUFFER_USAGE, 38 GL_BUFFER_USAGE,
39 }; 39 };
40 40
41 static const GLenum valid_buffer_target_table[] = { 41 static const GLenum valid_buffer_target_table[] = {
42 GL_ARRAY_BUFFER, 42 GL_ARRAY_BUFFER,
43 GL_ELEMENT_ARRAY_BUFFER, 43 GL_ELEMENT_ARRAY_BUFFER,
44 }; 44 };
45 45
46 static const GLenum valid_buffer_target_table_es3[] = {
47 GL_COPY_READ_BUFFER,
48 GL_COPY_WRITE_BUFFER,
49 GL_PIXEL_PACK_BUFFER,
50 GL_PIXEL_UNPACK_BUFFER,
51 GL_TRANSFORM_FEEDBACK_BUFFER,
52 GL_UNIFORM_BUFFER,
53 };
54
46 static const GLenum valid_buffer_usage_table[] = { 55 static const GLenum valid_buffer_usage_table[] = {
47 GL_STREAM_DRAW, 56 GL_STREAM_DRAW,
48 GL_STATIC_DRAW, 57 GL_STATIC_DRAW,
49 GL_DYNAMIC_DRAW, 58 GL_DYNAMIC_DRAW,
50 }; 59 };
51 60
52 static const GLenum valid_bufferfi_table[] = { 61 static const GLenum valid_bufferfi_table[] = {
53 GL_DEPTH_STENCIL, 62 GL_DEPTH_STENCIL,
54 }; 63 };
55 64
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 vertex_attrib_size(valid_vertex_attrib_size_table, 753 vertex_attrib_size(valid_vertex_attrib_size_table,
745 arraysize(valid_vertex_attrib_size_table)), 754 arraysize(valid_vertex_attrib_size_table)),
746 vertex_attrib_type(valid_vertex_attrib_type_table, 755 vertex_attrib_type(valid_vertex_attrib_type_table,
747 arraysize(valid_vertex_attrib_type_table)), 756 arraysize(valid_vertex_attrib_type_table)),
748 vertex_attribute(valid_vertex_attribute_table, 757 vertex_attribute(valid_vertex_attribute_table,
749 arraysize(valid_vertex_attribute_table)), 758 arraysize(valid_vertex_attribute_table)),
750 vertex_pointer(valid_vertex_pointer_table, 759 vertex_pointer(valid_vertex_pointer_table,
751 arraysize(valid_vertex_pointer_table)) { 760 arraysize(valid_vertex_pointer_table)) {
752 } 761 }
753 762
763 void Validators::AddES3Values() {
764 buffer_target.AddValues(valid_buffer_target_table_es3,
765 arraysize(valid_buffer_target_table_es3));
766 }
767
754 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE N_H_ 768 #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.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698