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

Unified Diff: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_schedule_ca_layer.txt

Issue 1409193007: gpu: Add CHROMIUM_schedule_ca_layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/image_transport_surface_overlay_mac.mm ('k') | gpu/GLES2/gl2chromium_autogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_schedule_ca_layer.txt
diff --git a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_schedule_ca_layer.txt b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_schedule_ca_layer.txt
new file mode 100644
index 0000000000000000000000000000000000000000..f5949b972db240164888c7ea6772fae4d98f952a
--- /dev/null
+++ b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_schedule_ca_layer.txt
@@ -0,0 +1,67 @@
+Name
+
+ CHROMIUM_schedule_ca_layer
+
+Name Strings
+
+ GL_CHROMIUM_schedule_ca_layer
+
+Version
+
+ Last Modified Date: November 7, 2015
+
+Dependencies
+
+ OpenGL ES 2.0 is required.
+
+Overview
+
+ This extension allows a client to request a texture be presented as a
+ CoreAnimation layer. The expectation is that all the CALayers scheduled
+ since the last call to glSwapBuffers or glPostSubBufferCHROMIUM are
+ displayed atomically at the time of the next call to swap buffers. Scheduled
+ CALayers are not stateful and need to be rescheduled after the buffers were
+ swapped.
+
+Issues
+
+ None
+
+New Tokens
+
+ None
+
+New Procedures and Functions
+
+ The command
+
+ glScheduleCALayerCHROMIUM(GLuint contents_texture_id,
+ const GLfloat* contents_rect,
+ GLfloat opacity,
+ GLuint background_color,
+ const GLfloat* bounds_size,
+ const GLfloat* transform);
+
+ Set the CALayer parameters to be presented at the time of the next call to
+ swap buffers. The order of the calls schedule CALayers determines their
+ back-to-front presentation order.
+ <contents_texture_id> is the texture to be presented. If zero, then the
+ CALayer will be a solid color.
+ <contents_rect> contains four values indicating the x, y, width, and height
+ of the sub-rectangle to display from the texture specified in
+ <contents_texture_id>, in normalized coordinates.
+ <opacity> specifies the opacity of the CALayer.
+ <background_color> specifies the background color of the CALayer, as a
+ 32-bit ARGB value.
+ <bounds_size> contains two values indicating the width and height of the
+ layer in pixels.
+ <transform> contains sixteen values indicating the row major order 4x4
+ transformation matrix to apply to the CALayer.
+
+Errors
+
+ None.
+
+New State
+
+ None.
« no previous file with comments | « content/common/gpu/image_transport_surface_overlay_mac.mm ('k') | gpu/GLES2/gl2chromium_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698