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

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

Issue 2648893002: Remove remaining traces of CreateGpuMemoryBufferImageCHROMIUM (Closed)
Patch Set: Rebase, but don't pull in extra changes... Created 3 years, 10 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 }; 464 };
465 465
466 static const GLenum valid_image_internal_format_table[] = { 466 static const GLenum valid_image_internal_format_table[] = {
467 GL_RGB, 467 GL_RGB,
468 GL_RGB_YCRCB_420_CHROMIUM, 468 GL_RGB_YCRCB_420_CHROMIUM,
469 GL_RGB_YCBCR_422_CHROMIUM, 469 GL_RGB_YCBCR_422_CHROMIUM,
470 GL_RGB_YCBCR_420V_CHROMIUM, 470 GL_RGB_YCBCR_420V_CHROMIUM,
471 GL_RGBA, 471 GL_RGBA,
472 }; 472 };
473 473
474 static const GLenum valid_image_usage_table[] = {
475 GL_READ_WRITE_CHROMIUM,
476 };
477
478 static const GLenum valid_index_type_table[] = { 474 static const GLenum valid_index_type_table[] = {
479 GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, 475 GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT,
480 }; 476 };
481 477
482 static const GLenum valid_index_type_table_es3[] = { 478 static const GLenum valid_index_type_table_es3[] = {
483 GL_UNSIGNED_INT, 479 GL_UNSIGNED_INT,
484 }; 480 };
485 481
486 bool Validators::IndexedBufferTargetValidator::IsValid( 482 bool Validators::IndexedBufferTargetValidator::IsValid(
487 const GLenum value) const { 483 const GLenum value) const {
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
1380 framebuffer_parameter(valid_framebuffer_parameter_table, 1376 framebuffer_parameter(valid_framebuffer_parameter_table,
1381 arraysize(valid_framebuffer_parameter_table)), 1377 arraysize(valid_framebuffer_parameter_table)),
1382 framebuffer_target(valid_framebuffer_target_table, 1378 framebuffer_target(valid_framebuffer_target_table,
1383 arraysize(valid_framebuffer_target_table)), 1379 arraysize(valid_framebuffer_target_table)),
1384 g_l_state(valid_g_l_state_table, arraysize(valid_g_l_state_table)), 1380 g_l_state(valid_g_l_state_table, arraysize(valid_g_l_state_table)),
1385 get_tex_param_target(valid_get_tex_param_target_table, 1381 get_tex_param_target(valid_get_tex_param_target_table,
1386 arraysize(valid_get_tex_param_target_table)), 1382 arraysize(valid_get_tex_param_target_table)),
1387 hint_target(valid_hint_target_table, arraysize(valid_hint_target_table)), 1383 hint_target(valid_hint_target_table, arraysize(valid_hint_target_table)),
1388 image_internal_format(valid_image_internal_format_table, 1384 image_internal_format(valid_image_internal_format_table,
1389 arraysize(valid_image_internal_format_table)), 1385 arraysize(valid_image_internal_format_table)),
1390 image_usage(valid_image_usage_table, arraysize(valid_image_usage_table)),
1391 index_type(valid_index_type_table, arraysize(valid_index_type_table)), 1386 index_type(valid_index_type_table, arraysize(valid_index_type_table)),
1392 pixel_store(valid_pixel_store_table, arraysize(valid_pixel_store_table)), 1387 pixel_store(valid_pixel_store_table, arraysize(valid_pixel_store_table)),
1393 pixel_type(valid_pixel_type_table, arraysize(valid_pixel_type_table)), 1388 pixel_type(valid_pixel_type_table, arraysize(valid_pixel_type_table)),
1394 read_buffer(valid_read_buffer_table, arraysize(valid_read_buffer_table)), 1389 read_buffer(valid_read_buffer_table, arraysize(valid_read_buffer_table)),
1395 read_pixel_format(valid_read_pixel_format_table, 1390 read_pixel_format(valid_read_pixel_format_table,
1396 arraysize(valid_read_pixel_format_table)), 1391 arraysize(valid_read_pixel_format_table)),
1397 read_pixel_type(valid_read_pixel_type_table, 1392 read_pixel_type(valid_read_pixel_type_table,
1398 arraysize(valid_read_pixel_type_table)), 1393 arraysize(valid_read_pixel_type_table)),
1399 render_buffer_format(valid_render_buffer_format_table, 1394 render_buffer_format(valid_render_buffer_format_table,
1400 arraysize(valid_render_buffer_format_table)), 1395 arraysize(valid_render_buffer_format_table)),
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1536 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ETC2); 1531 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ETC2);
1537 texture_internal_format_storage.AddValue( 1532 texture_internal_format_storage.AddValue(
1538 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2); 1533 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2);
1539 texture_internal_format_storage.AddValue( 1534 texture_internal_format_storage.AddValue(
1540 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2); 1535 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2);
1541 texture_internal_format_storage.AddValue(GL_COMPRESSED_RGBA8_ETC2_EAC); 1536 texture_internal_format_storage.AddValue(GL_COMPRESSED_RGBA8_ETC2_EAC);
1542 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC); 1537 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC);
1543 } 1538 }
1544 1539
1545 #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

Powered by Google App Engine
This is Rietveld 408576698