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

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

Issue 2175043002: Add command buffer function glScheduleCALayerFilterEffectsCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: blah nits. Created 4 years, 5 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 Name 1 Name
2 2
3 CHROMIUM_schedule_ca_layer 3 CHROMIUM_schedule_ca_layer
4 4
5 Name Strings 5 Name Strings
6 6
7 GL_CHROMIUM_schedule_ca_layer 7 GL_CHROMIUM_schedule_ca_layer
8 8
9 Version 9 Version
10 10
(...skipping 17 matching lines...) Expand all
28 None 28 None
29 29
30 New Tokens 30 New Tokens
31 31
32 Accepted by the <edge_aa_mask> parameter of glScheduleCALayerCHROMIUM: 32 Accepted by the <edge_aa_mask> parameter of glScheduleCALayerCHROMIUM:
33 GL_CA_LAYER_EDGE_LEFT_CHROMIUM 0x01 33 GL_CA_LAYER_EDGE_LEFT_CHROMIUM 0x01
34 GL_CA_LAYER_EDGE_RIGHT_CHROMIUM 0x02 34 GL_CA_LAYER_EDGE_RIGHT_CHROMIUM 0x02
35 GL_CA_LAYER_EDGE_BOTTOM_CHROMIUM 0x04 35 GL_CA_LAYER_EDGE_BOTTOM_CHROMIUM 0x04
36 GL_CA_LAYER_EDGE_TOP_CHROMIUM 0x08 36 GL_CA_LAYER_EDGE_TOP_CHROMIUM 0x08
37 37
38 Accepted by the <filter_effects> parameter of
39 glScheduleCALayerFilterEffectsCHROMIUM:
40 struct GLCALayerFilterEffect {
41 GLint type;
erikchen 2016/07/23 00:26:48 I could add 10 new parameters, and add conversions
piman 2016/07/23 00:39:58 SG. Can you list what are the valid values here?
erikchen 2016/07/23 14:18:15 Done.
42 GLfloat amount;
43 GLint drop_shadow_offset_x;
44 GLint drop_shadow_offset_y;
45 GLuint drop_shadow_color;
46 };
47
38 New Procedures and Functions 48 New Procedures and Functions
39 49
40 The command 50 The command
41 51
42 glScheduleCALayerSharedStateCHROMIUM(GLfloat opacity, 52 glScheduleCALayerSharedStateCHROMIUM(GLfloat opacity,
43 GLboolean is_clipped, 53 GLboolean is_clipped,
44 const GLfloat* clip_rect, 54 const GLfloat* clip_rect,
45 GLint sorting_context_id, 55 GLint sorting_context_id,
46 const GLfloat* transform); 56 const GLfloat* transform);
47 57
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 32-bit ARGB value. 90 32-bit ARGB value.
81 <edge_aa_mask> is a bitfield specifying which of the edges of the layer are 91 <edge_aa_mask> is a bitfield specifying which of the edges of the layer are
82 to have anti-aliasing. 92 to have anti-aliasing.
83 <bounds_rect> contains four values indicating the x, y, width, and height of 93 <bounds_rect> contains four values indicating the x, y, width, and height of
84 the layer in pixels. 94 the layer in pixels.
85 <filter> will be used for both minification and magnification filtering. The 95 <filter> will be used for both minification and magnification filtering. The
86 only valid values are GL_LINEAR and GL_NEAREST. 96 only valid values are GL_LINEAR and GL_NEAREST.
87 97
88 The command 98 The command
89 99
100 glScheduleCALayerFilterEffectsCHROMIUM(
101 GLsizei count,
102 GLCALayerFilterEffect* filter_effects)
103
104 applies the <filter_effects> to the next CALayer to be scheduled. A
105 consecutive call to glScheduleCALayerFilterEffectsCHROMIUM overrides the
106 previously saved <filter_effects>. A call to glSwapBuffers clears any saved
107 <filter_effects>
108
90 glScheduleCALayerInUseQueryCHROMIUM(GLsizei count, GLuint* textures); 109 glScheduleCALayerInUseQueryCHROMIUM(GLsizei count, GLuint* textures);
91 110
92 schedules a query at the time of the next call to swap buffers. If the given 111 schedules a query at the time of the next call to swap buffers. If the given
93 texture is backed by an IOSurface, then the query checks to see whether the 112 texture is backed by an IOSurface, then the query checks to see whether the
94 IOSurface is in use by the Window Server. Otherwise, the query returns 113 IOSurface is in use by the Window Server. Otherwise, the query returns
95 false. All the results will be returned with the swap ACK in 114 false. All the results will be returned with the swap ACK in
96 GpuCommandBufferMsg_SwapBuffersCompleted_Params. Clients should not destroy 115 GpuCommandBufferMsg_SwapBuffersCompleted_Params. Clients should not destroy
97 any textures while they are being queried, as the swap ACK will use the 116 any textures while they are being queried, as the swap ACK will use the
98 original texture id to identify the queried textures. 117 original texture id to identify the queried textures.
99 118
100 Errors 119 Errors
101 120
102 GL_INVALID_OPERATION is generated when glScheduleCALayerCHROMIUM is called 121 GL_INVALID_OPERATION is generated when glScheduleCALayerCHROMIUM is called
103 without a prior call to glScheduleCALayerSharedStateCHROMIUM. 122 without a prior call to glScheduleCALayerSharedStateCHROMIUM.
104 123
105 New State 124 New State
106 125
107 None. 126 None.
108 127
109 Revision History 128 Revision History
110 129
111 6/13/2016 Add glScheduleCALayerInUseQueryCHROMIUM. 130 6/13/2016 Add glScheduleCALayerInUseQueryCHROMIUM.
112 4/12/2016 Add a parameter to support minification and magnification 131 4/12/2016 Add a parameter to support minification and magnification
113 filtering. 132 filtering.
114 12/16/2015 Add clipping and edge anti-aliasing. 133 12/16/2015 Add clipping and edge anti-aliasing.
115 11/7/2015 Initial checkin 134 11/7/2015 Initial checkin
116 135
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698