Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 21 matching lines...) Expand all Loading... | |
| 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 New Procedures and Functions | 38 New Procedures and Functions |
| 39 | 39 |
| 40 The command | 40 The command |
| 41 | 41 |
| 42 glScheduleCALayerSharedStateCHROMIUM(GLfloat opacity, | |
| 43 GLboolean is_clipped, | |
| 44 const GLfloat* clip_rect, | |
| 45 GLint sorting_context_id, | |
| 46 const GLfloat* transform); | |
| 47 | |
| 48 sets state that will be shared by each subsequent call to | |
| 49 glScheduleCALayerCHROMIUM. A subsequent call to | |
| 50 glScheduleCALayerSharedStateCHROMIUM overrides the previous shared state | |
| 51 values. | |
| 52 <opacity> specifies the opacity of the CALayer. | |
| 53 <is_clipped> indicates if the layer should be clipped. | |
| 54 <clip_rect> contains four values indicating the x, y, width, and height of | |
| 55 the rectangle to clip the layer to, if it is to be clipped. | |
| 56 <sorting_context_id> Layers in a non-zero sorting context exist in the same | |
| 57 3D space and should intersect. | |
| 58 <transform> contains sixteen values indicating the row major order 4x4 | |
| 59 transformation matrix to apply to the CALayer. | |
| 60 | |
| 61 The command | |
| 62 | |
|
ccameron
2016/07/19 20:29:51
Let's just have SwapBuffers automatically clear th
erikchen
2016/07/19 20:42:26
Done.
| |
| 63 glUnscheduleCALayerSharedStateCHROMIUM(); | |
| 64 | |
| 65 unsets the state set by glScheduleCALayerSharedStateCHROMIUM. This command | |
| 66 is used to prevent shared state from leaking into inappropriate frames. | |
| 67 | |
| 68 The command | |
| 69 | |
| 42 glScheduleCALayerCHROMIUM(GLuint contents_texture_id, | 70 glScheduleCALayerCHROMIUM(GLuint contents_texture_id, |
| 43 const GLfloat* contents_rect, | 71 const GLfloat* contents_rect, |
| 44 GLfloat opacity, | |
| 45 GLuint background_color, | 72 GLuint background_color, |
| 46 GLuint edge_aa_mask, | 73 GLuint edge_aa_mask, |
| 47 const GLfloat* bounds_rect, | 74 const GLfloat* bounds_rect, |
| 48 GLboolean is_clipped, | |
| 49 const GLfloat* clip_rect, | |
| 50 const GLfloat* transform, | |
| 51 GLuint filter); | 75 GLuint filter); |
| 52 | 76 |
| 53 Set the CALayer parameters to be presented at the time of the next call to | 77 requires that shared state has been previously set by |
| 54 swap buffers. The order of the calls schedule CALayers determines their | 78 glScheduleCALayerSharedStateCHROMIUM. It sets the CALayer parameters to be |
| 55 back-to-front presentation order. | 79 presented at the time of the next call to swap buffers. The order of the |
| 80 calls schedule CALayers determines their back-to-front presentation order. | |
| 56 <contents_texture_id> is the texture to be presented. If zero, then the | 81 <contents_texture_id> is the texture to be presented. If zero, then the |
| 57 CALayer will be a solid color. | 82 CALayer will be a solid color. |
| 58 <contents_rect> contains four values indicating the x, y, width, and height | 83 <contents_rect> contains four values indicating the x, y, width, and height |
| 59 of the sub-rectangle to display from the texture specified in | 84 of the sub-rectangle to display from the texture specified in |
| 60 <contents_texture_id>, in normalized coordinates. | 85 <contents_texture_id>, in normalized coordinates. |
| 61 <opacity> specifies the opacity of the CALayer. | |
| 62 <background_color> specifies the background color of the CALayer, as a | 86 <background_color> specifies the background color of the CALayer, as a |
| 63 32-bit ARGB value. | 87 32-bit ARGB value. |
| 64 <edge_aa_mask> is a bitfield specifying which of the edges of the layer are | 88 <edge_aa_mask> is a bitfield specifying which of the edges of the layer are |
| 65 to have anti-aliasing. | 89 to have anti-aliasing. |
| 66 <bounds_rect> contains four values indicating the x, y, width, and height of | 90 <bounds_rect> contains four values indicating the x, y, width, and height of |
| 67 the layer in pixels. | 91 the layer in pixels. |
| 68 <is_clipped> indicates if the layer should be clipped. | |
| 69 <clip_rect> contains four values indicating the x, y, width, and height of | |
| 70 the rectangle to clip the layer to, if it is to be clipped. | |
| 71 <transform> contains sixteen values indicating the row major order 4x4 | |
| 72 transformation matrix to apply to the CALayer. | |
| 73 <filter> will be used for both minification and magnification filtering. The | 92 <filter> will be used for both minification and magnification filtering. The |
| 74 only valid values are GL_LINEAR and GL_NEAREST. | 93 only valid values are GL_LINEAR and GL_NEAREST. |
| 75 | 94 |
| 76 The command | 95 The command |
| 77 | 96 |
| 78 glScheduleCALayerInUseQueryCHROMIUM(GLsizei count, GLuint* textures); | 97 glScheduleCALayerInUseQueryCHROMIUM(GLsizei count, GLuint* textures); |
| 79 | 98 |
| 80 schedules a query at the time of the next call to swap buffers. If the given | 99 schedules a query at the time of the next call to swap buffers. If the given |
| 81 texture is backed by an IOSurface, then the query checks to see whether the | 100 texture is backed by an IOSurface, then the query checks to see whether the |
| 82 IOSurface is in use by the Window Server. Otherwise, the query returns | 101 IOSurface is in use by the Window Server. Otherwise, the query returns |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 94 None. | 113 None. |
| 95 | 114 |
| 96 Revision History | 115 Revision History |
| 97 | 116 |
| 98 6/13/2016 Add glScheduleCALayerInUseQueryCHROMIUM. | 117 6/13/2016 Add glScheduleCALayerInUseQueryCHROMIUM. |
| 99 4/12/2016 Add a parameter to support minification and magnification | 118 4/12/2016 Add a parameter to support minification and magnification |
| 100 filtering. | 119 filtering. |
| 101 12/16/2015 Add clipping and edge anti-aliasing. | 120 12/16/2015 Add clipping and edge anti-aliasing. |
| 102 11/7/2015 Initial checkin | 121 11/7/2015 Initial checkin |
| 103 | 122 |
| OLD | NEW |