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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h

Issue 2461003003: Reduce GPU mailbox size to 16 bytes (Closed)
Patch Set: fix tests Created 4 years, 1 month 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 3436 matching lines...) Expand 10 before | Expand all | Expand 10 after
3447 { 3447 {
3448 0x9500, "GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL", 3448 0x9500, "GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL",
3449 }, 3449 },
3450 { 3450 {
3451 0xFFFFFFFF, "GL_ALL_SHADER_BITS_EXT", 3451 0xFFFFFFFF, "GL_ALL_SHADER_BITS_EXT",
3452 }, 3452 },
3453 { 3453 {
3454 1, "GL_ES_VERSION_2_0", 3454 1, "GL_ES_VERSION_2_0",
3455 }, 3455 },
3456 { 3456 {
3457 16, "GL_MAILBOX_SIZE_CHROMIUM",
3458 },
3459 {
3457 24, "GL_SYNC_TOKEN_SIZE_CHROMIUM", 3460 24, "GL_SYNC_TOKEN_SIZE_CHROMIUM",
3458 }, 3461 },
3459 {
3460 64, "GL_MAILBOX_SIZE_CHROMIUM",
3461 },
3462 }; 3462 };
3463 3463
3464 const GLES2Util::EnumToString* const GLES2Util::enum_to_string_table_ = 3464 const GLES2Util::EnumToString* const GLES2Util::enum_to_string_table_ =
3465 enum_to_string_table; 3465 enum_to_string_table;
3466 const size_t GLES2Util::enum_to_string_table_len_ = 3466 const size_t GLES2Util::enum_to_string_table_len_ =
3467 sizeof(enum_to_string_table) / sizeof(enum_to_string_table[0]); 3467 sizeof(enum_to_string_table) / sizeof(enum_to_string_table[0]);
3468 3468
3469 std::string GLES2Util::GetStringAttachment(uint32_t value) { 3469 std::string GLES2Util::GetStringAttachment(uint32_t value) {
3470 static const EnumToString string_table[] = { 3470 static const EnumToString string_table[] = {
3471 {GL_COLOR_ATTACHMENT0, "GL_COLOR_ATTACHMENT0"}, 3471 {GL_COLOR_ATTACHMENT0, "GL_COLOR_ATTACHMENT0"},
(...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after
4989 4989
4990 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { 4990 std::string GLES2Util::GetStringVertexPointer(uint32_t value) {
4991 static const EnumToString string_table[] = { 4991 static const EnumToString string_table[] = {
4992 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, 4992 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"},
4993 }; 4993 };
4994 return GLES2Util::GetQualifiedEnumString(string_table, 4994 return GLES2Util::GetQualifiedEnumString(string_table,
4995 arraysize(string_table), value); 4995 arraysize(string_table), value);
4996 } 4996 }
4997 4997
4998 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ 4998 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_format_test_autogen.h ('k') | gpu/command_buffer/common/mailbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698