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

Side by Side Diff: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_flipy.txt

Issue 10012057: Add GL_EXT_unpack_subimage support to command buffer client code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_implementation.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 Name 1 Name
2 2
3 CHROMIUM_flipy 3 CHROMIUM_flipy
4 4
5 Name Strings 5 Name Strings
6 6
7 GL_CHROMIUM_flipy 7 GL_CHROMIUM_flipy
8 8
9 Version 9 Version
10 10
11 Last Modifed Date: July 22, 2011 11 Last Modifed Date: April 9, 2012
12 12
13 Dependencies 13 Dependencies
14 14
15 OpenGL ES 2.0 is required. 15 OpenGL ES 2.0 is required.
16 16
17 Overview 17 Overview
18 18
19 This extension adds the ability to vertically flip texture image data when 19 This extension adds the ability to vertically flip texture image data when
20 calling TexImage2D and TexSubImage2D. 20 calling TexImage2D and TexSubImage2D.
21 21
22 Issues 22 Issues
23 23
24 24
25 New Tokens 25 New Tokens
26 26
27 Accepted by the <param> parameter of PixelStorei: 27 Accepted by the <param> parameter of PixelStorei:
28 28
29 UNPACK_FLIP_Y_CHROMIUM 0x9240 29 UNPACK_FLIP_Y_CHROMIUM 0x9240
30 30
31 Additions to the OpenGL ES 2.0 Specification
32
33 Modifications to Table 3.1 (PixelStore Parameters)
34
35 Add the following entry:
36
37 Parameter Name Type Initial Value Valid Range
38 ============== ==== ============= ===========
39 UNPACK_FLIP_Y_CHROMIUM boolean FALSE {TRUE, FALSE}
40
41 Modifications to 3.6.2 Transfer of Pixel Rectangles, in the Unpacking
42 section:
43
44 Change
45 "If p indicates the location in memory of the first element of the first
46 row, then the first element of the Nth row is indicated by
47 p + Nk (3.9)"
48 to
49 "If p indicates the location in memory of the first element of the first
50 row, then the first element of the Nth row is indicated by
51 p + Nk (3.9)
52 if UNPACK_FLIP_Y is FALSE. Otherwise, the first element of the Nth row
53 is indicated by
54 p - Nk (3.10)
55
56 After the sentence
57
58 "If the number of bits per element is not 1, 2, 4, or 8 times the number
59 of bits in a GL ubyte, then k = nl for all values of a."
60
61 insert:
62
63 "If UNPACK_FLIP_Y_CHROMIUM is FALSE then p is equal to pixels. Otherwise
64 p is pixels + (height - 1)k."
65
66 Interactions with GL_EXT_unpack_subimage
67
68 Do not add the sentence "If UNPACK_FLIP_Y_CHROMIUM is FALSE ..." described
69 in this extension. Instead do the following after applying
70 GL_EXT_unpack_subimage:
71
72 Change
73
74 "There is a mechanism for selecting a sub-rectangle of groups
75 from a larger containing rectangle. This mechanism relies on
76 three integer parameters: UNPACK_ROW_LENGTH, UNPACK_SKIP_ROWS,
77 and UNPACK_SKIP_PIXELS. Before obtaining the first group from
78 memory, the pointer supplied to TexImage2D is effectively
79 advanced by (UNPACK_SKIP_PIXELS)n + (UNPACK_SKIP_ROWS)k
80 elements. Then <width> groups are obtained from contiguous
81 elements in memory (without advancing the pointer), after
82 which the pointer is advanced by k elements. <height> sets of
83 <width> groups of values are obtained this way. See figure
84 3.6."
85
86 to
87
88 "There is a mechanism for selecting a sub-rectangle of groups
89 from a larger containing rectangle. This mechanism relies on
90 three integer parameters: UNPACK_ROW_LENGTH, UNPACK_SKIP_ROWS,
91 and UNPACK_SKIP_PIXELS. IF UNPACK_FLIP_Y_CHROMIUM is FALSE then
92 p, the location of the first element of the first
93 group, is pixels + (UNPACK_SKIP_PIXELS)n + (UNPACK_SKIP_ROWS)k.
94 When UNPACK_FLIP_Y_CHROMIUM is TRUE then p is pixels +
95 (UNPACK_SKIP_PIXELS)n + (UNPACK_SKIP_ROWS + height - 1)k. After
96 p is determined <width> groups are obtained from contiguous
97 elements in memory (without advancing the pointer), after which
98 the pointer is advanced by +/-k elements depending on the value
99 of UNPACK_CHROMIUM_FLIP_Y. <height> sets of <width> groups of
100 values are obtained this way. See figure 3.6."
101
31 New Procedures and Functions 102 New Procedures and Functions
32 103
33 None. 104 None.
34 105
35 Errors 106 Errors
36 107
37 None. 108 None.
38 109
39 New State 110 New State
40 111
41 None. 112 None.
42 113
43 Revision History 114 Revision History
44 115
45 7/22/2011 Documented the extension 116 7/22/2011 Documented the extension
117 4/09/2012 Added more documentation and described interactions with
118 GL_EXT_unpack_subimage
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698