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

Side by Side Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 1308313008: Fix ReadPixels implementation specific read format/type on desktop GL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clear
Patch Set: Created 5 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """code generator for GLES2 command buffers.""" 6 """code generator for GLES2 command buffers."""
7 7
8 import itertools 8 import itertools
9 import os 9 import os
10 import os.path 10 import os.path
(...skipping 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 ], 1501 ],
1502 }, 1502 },
1503 'ReadPixelFormat': { 1503 'ReadPixelFormat': {
1504 'type': 'GLenum', 1504 'type': 'GLenum',
1505 'valid': [ 1505 'valid': [
1506 'GL_ALPHA', 1506 'GL_ALPHA',
1507 'GL_RGB', 1507 'GL_RGB',
1508 'GL_RGBA', 1508 'GL_RGBA',
1509 ], 1509 ],
1510 'valid_es3': [ 1510 'valid_es3': [
1511 'GL_RED',
1512 'GL_RED_INTEGER',
1513 'GL_RG',
1514 'GL_RG_INTEGER',
1515 'GL_RGB_INTEGER',
1511 'GL_RGBA_INTEGER', 1516 'GL_RGBA_INTEGER',
1512 ], 1517 'GL_LUMINANCE',
1513 'deprecated_es3': [ 1518 'GL_LUMINANCE_ALPHA',
Ken Russell (switch to Gerrit) 2015/08/26 01:00:44 What's the consequence of un-deprecating these?
Zhenyao Mo 2015/08/26 01:11:05 It's a mistake to deprecate them in the first plac
Ken Russell (switch to Gerrit) 2015/08/26 01:00:43 It looks to me like GL_LUMINANCE and GL_LUMINANCE_
Zhenyao Mo 2015/08/26 01:11:04 3.2 defines the sized ones, and 3.3 defines the un
Ken Russell (switch to Gerrit) 2015/08/26 01:53:32 Not sure about that. ES 3.0.4 section 4.4.4 "Frame
1514 'GL_ALPHA',
1515 'GL_RGB',
1516 ], 1519 ],
1517 }, 1520 },
1518 'PixelType': { 1521 'PixelType': {
1519 'type': 'GLenum', 1522 'type': 'GLenum',
1520 'valid': [ 1523 'valid': [
1521 'GL_UNSIGNED_BYTE', 1524 'GL_UNSIGNED_BYTE',
1522 'GL_UNSIGNED_SHORT_5_6_5', 1525 'GL_UNSIGNED_SHORT_5_6_5',
1523 'GL_UNSIGNED_SHORT_4_4_4_4', 1526 'GL_UNSIGNED_SHORT_4_4_4_4',
1524 'GL_UNSIGNED_SHORT_5_5_5_1', 1527 'GL_UNSIGNED_SHORT_5_5_5_1',
1525 ], 1528 ],
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
1593 ] 1596 ]
1594 }, 1597 },
1595 'ReadPixelType': { 1598 'ReadPixelType': {
1596 'type': 'GLenum', 1599 'type': 'GLenum',
1597 'valid': [ 1600 'valid': [
1598 'GL_UNSIGNED_BYTE', 1601 'GL_UNSIGNED_BYTE',
1599 'GL_UNSIGNED_SHORT_5_6_5', 1602 'GL_UNSIGNED_SHORT_5_6_5',
1600 'GL_UNSIGNED_SHORT_4_4_4_4', 1603 'GL_UNSIGNED_SHORT_4_4_4_4',
1601 'GL_UNSIGNED_SHORT_5_5_5_1', 1604 'GL_UNSIGNED_SHORT_5_5_5_1',
1602 ], 1605 ],
1603 'invalid': [ 1606 'valid_es3': [
1607 'GL_BYTE',
1608 'GL_UNSIGNED_SHORT',
1604 'GL_SHORT', 1609 'GL_SHORT',
1605 ],
1606 'valid_es3': [
1607 'GL_UNSIGNED_INT', 1610 'GL_UNSIGNED_INT',
1608 'GL_INT', 1611 'GL_INT',
1612 'GL_HALF_FLOAT',
1609 'GL_FLOAT', 1613 'GL_FLOAT',
1610 'GL_UNSIGNED_INT_2_10_10_10_REV', 1614 'GL_UNSIGNED_INT_2_10_10_10_REV',
1611 ], 1615 ],
1612 'deprecated_es3': [
1613 'GL_UNSIGNED_SHORT_5_6_5',
1614 'GL_UNSIGNED_SHORT_4_4_4_4',
1615 'GL_UNSIGNED_SHORT_5_5_5_1',
Ken Russell (switch to Gerrit) 2015/08/26 01:00:43 Similarly, what's the consequence of un-deprecatin
Zhenyao Mo 2015/08/26 01:11:04 The same, table 3.3 (valid unsized ones) should al
1616 ],
1617 }, 1616 },
1618 'RenderBufferFormat': { 1617 'RenderBufferFormat': {
1619 'type': 'GLenum', 1618 'type': 'GLenum',
1620 'valid': [ 1619 'valid': [
1621 'GL_RGBA4', 1620 'GL_RGBA4',
1622 'GL_RGB565', 1621 'GL_RGB565',
1623 'GL_RGB5_A1', 1622 'GL_RGB5_A1',
1624 'GL_DEPTH_COMPONENT16', 1623 'GL_DEPTH_COMPONENT16',
1625 'GL_STENCIL_INDEX8', 1624 'GL_STENCIL_INDEX8',
1626 ], 1625 ],
(...skipping 9434 matching lines...) Expand 10 before | Expand all | Expand 10 after
11061 Format(gen.generated_cpp_filenames) 11060 Format(gen.generated_cpp_filenames)
11062 11061
11063 if gen.errors > 0: 11062 if gen.errors > 0:
11064 print "%d errors" % gen.errors 11063 print "%d errors" % gen.errors
11065 return 1 11064 return 1
11066 return 0 11065 return 0
11067 11066
11068 11067
11069 if __name__ == '__main__': 11068 if __name__ == '__main__':
11070 sys.exit(main(sys.argv[1:])) 11069 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/common/gles2_cmd_utils.cc » ('j') | gpu/command_buffer/common/gles2_cmd_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698