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

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: Fix autogenerated tests. 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
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | gpu/GLES2/gl2chromium_autogen.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_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;
42 GLfloat amount;
43 GLint drop_shadow_offset_x;
44 GLint drop_shadow_offset_y;
45 GLuint drop_shadow_color;
46 };
47 The valid values for type are in the range [0, 9] inclusive. Clients should
48 convert them from ui::CARendererLayerParams::FilterEffectType, as the
49 service will convert them back to that enum.
50
38 New Procedures and Functions 51 New Procedures and Functions
39 52
40 The command 53 The command
41 54
42 glScheduleCALayerSharedStateCHROMIUM(GLfloat opacity, 55 glScheduleCALayerSharedStateCHROMIUM(GLfloat opacity,
43 GLboolean is_clipped, 56 GLboolean is_clipped,
44 const GLfloat* clip_rect, 57 const GLfloat* clip_rect,
45 GLint sorting_context_id, 58 GLint sorting_context_id,
46 const GLfloat* transform); 59 const GLfloat* transform);
47 60
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 32-bit ARGB value. 93 32-bit ARGB value.
81 <edge_aa_mask> is a bitfield specifying which of the edges of the layer are 94 <edge_aa_mask> is a bitfield specifying which of the edges of the layer are
82 to have anti-aliasing. 95 to have anti-aliasing.
83 <bounds_rect> contains four values indicating the x, y, width, and height of 96 <bounds_rect> contains four values indicating the x, y, width, and height of
84 the layer in pixels. 97 the layer in pixels.
85 <filter> will be used for both minification and magnification filtering. The 98 <filter> will be used for both minification and magnification filtering. The
86 only valid values are GL_LINEAR and GL_NEAREST. 99 only valid values are GL_LINEAR and GL_NEAREST.
87 100
88 The command 101 The command
89 102
103 glScheduleCALayerFilterEffectsCHROMIUM(
104 GLsizei count,
105 GLCALayerFilterEffect* filter_effects)
106
107 applies the <filter_effects> to the next CALayer to be scheduled. A
108 consecutive call to glScheduleCALayerFilterEffectsCHROMIUM overrides the
109 previously saved <filter_effects>. A call to glSwapBuffers clears any saved
110 <filter_effects>
111
90 glScheduleCALayerInUseQueryCHROMIUM(GLsizei count, GLuint* textures); 112 glScheduleCALayerInUseQueryCHROMIUM(GLsizei count, GLuint* textures);
91 113
92 schedules a query at the time of the next call to swap buffers. If the given 114 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 115 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 116 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 117 false. All the results will be returned with the swap ACK in
96 GpuCommandBufferMsg_SwapBuffersCompleted_Params. Clients should not destroy 118 GpuCommandBufferMsg_SwapBuffersCompleted_Params. Clients should not destroy
97 any textures while they are being queried, as the swap ACK will use the 119 any textures while they are being queried, as the swap ACK will use the
98 original texture id to identify the queried textures. 120 original texture id to identify the queried textures.
99 121
100 Errors 122 Errors
101 123
102 GL_INVALID_OPERATION is generated when glScheduleCALayerCHROMIUM is called 124 GL_INVALID_OPERATION is generated when glScheduleCALayerCHROMIUM is called
103 without a prior call to glScheduleCALayerSharedStateCHROMIUM. 125 without a prior call to glScheduleCALayerSharedStateCHROMIUM.
104 126
105 New State 127 New State
106 128
107 None. 129 None.
108 130
109 Revision History 131 Revision History
110 132
111 6/13/2016 Add glScheduleCALayerInUseQueryCHROMIUM. 133 6/13/2016 Add glScheduleCALayerInUseQueryCHROMIUM.
112 4/12/2016 Add a parameter to support minification and magnification 134 4/12/2016 Add a parameter to support minification and magnification
113 filtering. 135 filtering.
114 12/16/2015 Add clipping and edge anti-aliasing. 136 12/16/2015 Add clipping and edge anti-aliasing.
115 11/7/2015 Initial checkin 137 11/7/2015 Initial checkin
116 138
OLDNEW
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | gpu/GLES2/gl2chromium_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698