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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 Name
2
3 CHROMIUM_schedule_ca_layer
4
5 Name Strings
6
7 GL_CHROMIUM_schedule_ca_layer
8
9 Version
10
11 Last Modified Date: November 7, 2015
12
13 Dependencies
14
15 OpenGL ES 2.0 is required.
16
17 Overview
18
19 This extension allows a client to request a texture be presented as a
20 CoreAnimation layer. The expectation is that all the CALayers scheduled
21 since the last call to glSwapBuffers or glPostSubBufferCHROMIUM are
22 displayed atomically at the time of the next call to swap buffers. Scheduled
23 CALayers are not stateful and need to be rescheduled after the buffers were
24 swapped.
25
26 Issues
27
28 None
29
30 New Tokens
31
32 None
33
34 New Procedures and Functions
35
36 The command
37
38 glScheduleCALayerCHROMIUM(GLuint contents_texture_id,
39 const GLfloat* contents_rect,
40 GLfloat opacity,
41 GLuint background_color,
42 const GLfloat* bounds_size,
43 const GLfloat* transform);
44
45 Set the CALayer parameters to be presented at the time of the next call to
46 swap buffers. The order of the calls schedule CALayers determines their
47 back-to-front presentation order.
48 <contents_texture_id> is the texture to be presented. If zero, then the
49 CALayer will be a solid color.
50 <contents_rect> contains four values indicating the x, y, width, and height
51 of the sub-rectangle to display from the texture specified in
52 <contents_texture_id>, in normalized coordinates.
53 <opacity> specifies the opacity of the CALayer.
54 <background_color> specifies the background color of the CALayer, as a
55 32-bit ARGB value.
56 <bounds_size> contains two values indicating the width and height of the
57 layer in pixels.
58 <transform> contains sixteen values indicating the row major order 4x4
59 transformation matrix to apply to the CALayer.
60
61 Errors
62
63 None.
64
65 New State
66
67 None.
OLDNEW
« 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