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

Side by Side Diff: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_schedule_ca_layer.txt

Issue 1887533002: Add plumbing to command buffer for CALayer min and mag filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix parameter ordering. Created 4 years, 8 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/gl2extchromium.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
11 Last Modified Date: December 16, 2015 11 Last Modified Date: April 12, 2016
12 12
13 Dependencies 13 Dependencies
14 14
15 OpenGL ES 2.0 is required. 15 OpenGL ES 2.0 is required.
16 16
17 Overview 17 Overview
18 18
19 This extension allows a client to request a texture be presented as a 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 20 CoreAnimation layer. The expectation is that all the CALayers scheduled
21 since the last call to glSwapBuffers or glPostSubBufferCHROMIUM are 21 since the last call to glSwapBuffers or glPostSubBufferCHROMIUM are
(...skipping 18 matching lines...) Expand all
40 The command 40 The command
41 41
42 glScheduleCALayerCHROMIUM(GLuint contents_texture_id, 42 glScheduleCALayerCHROMIUM(GLuint contents_texture_id,
43 const GLfloat* contents_rect, 43 const GLfloat* contents_rect,
44 GLfloat opacity, 44 GLfloat opacity,
45 GLuint background_color, 45 GLuint background_color,
46 GLuint edge_aa_mask, 46 GLuint edge_aa_mask,
47 const GLfloat* bounds_rect, 47 const GLfloat* bounds_rect,
48 GLboolean is_clipped, 48 GLboolean is_clipped,
49 const GLfloat* clip_rect, 49 const GLfloat* clip_rect,
50 const GLfloat* transform); 50 const GLfloat* transform,
51 GLuint filter);
51 52
52 Set the CALayer parameters to be presented at the time of the next call to 53 Set the CALayer parameters to be presented at the time of the next call to
53 swap buffers. The order of the calls schedule CALayers determines their 54 swap buffers. The order of the calls schedule CALayers determines their
54 back-to-front presentation order. 55 back-to-front presentation order.
55 <contents_texture_id> is the texture to be presented. If zero, then the 56 <contents_texture_id> is the texture to be presented. If zero, then the
56 CALayer will be a solid color. 57 CALayer will be a solid color.
57 <contents_rect> contains four values indicating the x, y, width, and height 58 <contents_rect> contains four values indicating the x, y, width, and height
58 of the sub-rectangle to display from the texture specified in 59 of the sub-rectangle to display from the texture specified in
59 <contents_texture_id>, in normalized coordinates. 60 <contents_texture_id>, in normalized coordinates.
60 <opacity> specifies the opacity of the CALayer. 61 <opacity> specifies the opacity of the CALayer.
61 <background_color> specifies the background color of the CALayer, as a 62 <background_color> specifies the background color of the CALayer, as a
62 32-bit ARGB value. 63 32-bit ARGB value.
63 <edge_aa_mask> is a bitfield specifying which of the edges of the layer are 64 <edge_aa_mask> is a bitfield specifying which of the edges of the layer are
64 to have anti-aliasing. 65 to have anti-aliasing.
65 <bounds_rect> contains four values indicating the x, y, width, and height of 66 <bounds_rect> contains four values indicating the x, y, width, and height of
66 the layer in pixels. 67 the layer in pixels.
67 <is_clipped> indicates if the layer should be clipped. 68 <is_clipped> indicates if the layer should be clipped.
68 <clip_rect> contains four values indicating the x, y, width, and height of 69 <clip_rect> contains four values indicating the x, y, width, and height of
69 the rectangle to clip the layer to, if it is to be clipped. 70 the rectangle to clip the layer to, if it is to be clipped.
70 <transform> contains sixteen values indicating the row major order 4x4 71 <transform> contains sixteen values indicating the row major order 4x4
71 transformation matrix to apply to the CALayer. 72 transformation matrix to apply to the CALayer.
73 <filter> will be used for both minification and magnification filtering. The
74 only valid values are GL_LINEAR and GL_NEAREST.
72 75
73 Errors 76 Errors
74 77
75 None. 78 None.
76 79
77 New State 80 New State
78 81
79 None. 82 None.
80 83
81 Revision History 84 Revision History
82 85
86 4/12/2016 Add a parameter to support minification and magnification
87 filtering.
83 12/16/2015 Add clipping and edge anti-aliasing. 88 12/16/2015 Add clipping and edge anti-aliasing.
84 11/7/2015 Initial checkin 89 11/7/2015 Initial checkin
85 90
OLDNEW
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | gpu/GLES2/gl2extchromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698