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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_utils_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/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/service/feature_info.h » ('j') | 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 4478 matching lines...) Expand 10 before | Expand all | Expand 10 after
4489 {GL_BUFFER_SIZE, "GL_BUFFER_SIZE"}, {GL_BUFFER_USAGE, "GL_BUFFER_USAGE"}, 4489 {GL_BUFFER_SIZE, "GL_BUFFER_SIZE"}, {GL_BUFFER_USAGE, "GL_BUFFER_USAGE"},
4490 }; 4490 };
4491 return GLES2Util::GetQualifiedEnumString(string_table, 4491 return GLES2Util::GetQualifiedEnumString(string_table,
4492 arraysize(string_table), value); 4492 arraysize(string_table), value);
4493 } 4493 }
4494 4494
4495 std::string GLES2Util::GetStringBufferTarget(uint32_t value) { 4495 std::string GLES2Util::GetStringBufferTarget(uint32_t value) {
4496 static const EnumToString string_table[] = { 4496 static const EnumToString string_table[] = {
4497 {GL_ARRAY_BUFFER, "GL_ARRAY_BUFFER"}, 4497 {GL_ARRAY_BUFFER, "GL_ARRAY_BUFFER"},
4498 {GL_ELEMENT_ARRAY_BUFFER, "GL_ELEMENT_ARRAY_BUFFER"}, 4498 {GL_ELEMENT_ARRAY_BUFFER, "GL_ELEMENT_ARRAY_BUFFER"},
4499 {GL_COPY_READ_BUFFER, "GL_COPY_READ_BUFFER"},
4500 {GL_COPY_WRITE_BUFFER, "GL_COPY_WRITE_BUFFER"},
4501 {GL_PIXEL_PACK_BUFFER, "GL_PIXEL_PACK_BUFFER"},
4502 {GL_PIXEL_UNPACK_BUFFER, "GL_PIXEL_UNPACK_BUFFER"},
4503 {GL_TRANSFORM_FEEDBACK_BUFFER, "GL_TRANSFORM_FEEDBACK_BUFFER"},
4504 {GL_UNIFORM_BUFFER, "GL_UNIFORM_BUFFER"},
4499 }; 4505 };
4500 return GLES2Util::GetQualifiedEnumString(string_table, 4506 return GLES2Util::GetQualifiedEnumString(string_table,
4501 arraysize(string_table), value); 4507 arraysize(string_table), value);
4502 } 4508 }
4503 4509
4504 std::string GLES2Util::GetStringBufferUsage(uint32_t value) { 4510 std::string GLES2Util::GetStringBufferUsage(uint32_t value) {
4505 static const EnumToString string_table[] = { 4511 static const EnumToString string_table[] = {
4506 {GL_STREAM_DRAW, "GL_STREAM_DRAW"}, 4512 {GL_STREAM_DRAW, "GL_STREAM_DRAW"},
4507 {GL_STATIC_DRAW, "GL_STATIC_DRAW"}, 4513 {GL_STATIC_DRAW, "GL_STATIC_DRAW"},
4508 {GL_DYNAMIC_DRAW, "GL_DYNAMIC_DRAW"}, 4514 {GL_DYNAMIC_DRAW, "GL_DYNAMIC_DRAW"},
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
5341 5347
5342 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { 5348 std::string GLES2Util::GetStringVertexPointer(uint32_t value) {
5343 static const EnumToString string_table[] = { 5349 static const EnumToString string_table[] = {
5344 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, 5350 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"},
5345 }; 5351 };
5346 return GLES2Util::GetQualifiedEnumString(string_table, 5352 return GLES2Util::GetQualifiedEnumString(string_table,
5347 arraysize(string_table), value); 5353 arraysize(string_table), value);
5348 } 5354 }
5349 5355
5350 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ 5356 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/service/feature_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698