Chromium Code Reviews| Index: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_schedule_overlay_plane.txt |
| diff --git a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_schedule_overlay_plane.txt b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_schedule_overlay_plane.txt |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..79afdf3e2be9cc83eeacb465a32aebd732ce7e0d |
| --- /dev/null |
| +++ b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_schedule_overlay_plane.txt |
| @@ -0,0 +1,75 @@ |
| +Name |
| + |
| + CHROMIUM_schedule_overlay_plane |
| + |
| +Name Strings |
| + |
| + GL_CHROMIUM_schedule_overlay_plane |
| + |
| +Version |
| + |
| + Last Modifed Date: April 2, 2014 |
| + |
| +Dependencies |
| + |
| + OpenGL ES 2.0 is required. |
| + |
| +Overview |
| + |
| + This extension allows a client to request a texture be presented as a |
| + hardware overlay plane along with the framebuffer. The expectation is that |
| + all the planes scheduled since the last call to glSwapBuffers or |
| + glPostSubBufferCHROMIUM are displayed atomically with the framebuffer during |
| + the next call to swap buffers. Scheduled planes are not stateful and need |
| + to be rescheduled after the buffers were swapped. |
| + |
| + This extension could be used in cunjuntion with OES_EGL_image_external |
|
piman
2014/04/08 21:30:54
nit: cunjunction->conjunction
alexst (slow to review)
2014/04/09 14:19:22
Done.
|
| + to render into buffers suitable for scanout and present them directly |
| + via display hardware without futher compositing in GLES. |
| + |
| + An example use case would be displaying a video buffer which was decoded by |
| + dedicated hardware as part of a GLES application. |
| + |
| +Issues |
| + |
| + None |
| + |
| +New Tokens |
| + |
| + None |
| + |
| +New Procedures and Functions |
| + |
| + The command |
| + |
| + glScheduleOverlayPlaneCHROMIUM (GLint plane_z_order, |
| + GLenum plane_transform, |
| + GLuint overlay_texture_id, |
| + GLint bounds_x, |
| + GLint bounds_y, |
| + GLint bounds_width, |
| + GLint bounds_height, |
| + GLfloat uv_x, |
| + GLfloat uv_y, |
| + GLfloat uv_width, |
| + GLfloat uv_height); |
| + |
| + Sets the overlay plane to be presented synchronously along with the primary |
| + framebuffer during the call to swap buffers. |
| + <plane_z_order> specifies the stacking order of the plane relative to the |
| + main framebuffer located at index 0. |
| + <plane_transform> specifies how the buffer is to be transformed during |
| + composition. |
| + <overlay_texture_id> is the buffer to be presented by the overlay. |
| + <bounds_x>, <bounds_y>, <bounds_width>, <bounds_height> specify where it is |
| + supposed to be on the screen. |
| + <uv_x>, <uv_y>, <uv_width>, <uv_height> specify the region within the |
| + buffer to be placed inside the bounds. |
| + |
| +Errors |
| + |
| + None. |
| + |
| +New State |
| + |
| + None. |