Lines Matching refs:layer

71    * Determines if a resource is a compositor layer resource.
76 * resource is a compositor layer resource or <code>PP_FALSE</code>
81 * Sets the color of a solid color layer. If the layer is uninitialized,
82 * it will initialize the layer first, and then set its color.
83 * If the layer has been initialized to another kind of layer, the layer will
86 * param[in] layer A <code>PP_Resource</code> corresponding to a compositor
87 * layer resource.
96 * param[in] size A <code>PP_Size</code> for the size of the layer before
101 int32_t (*SetColor)(PP_Resource layer,
108 * Sets the texture of a texture layer. If the layer is uninitialized,
109 * it will initialize the layer first, and then set its texture.
110 * The source rect will be set to ((0, 0), (1, 1)). If the layer has been
111 * initialized to another kind of layer, the layer will not be changed,
114 * param[in] layer A <code>PP_Resource</code> corresponding to a compositor
115 * layer resource.
120 * param[in] size A <code>PP_Size</code> for the size of the layer before
127 int32_t (*SetTexture)(PP_Resource layer,
134 * Sets the image of an image layer. If the layer is uninitialized,
135 * it will initialize the layer first, and then set its image.
136 * The layer size will be set to the image's size. The source rect will be set
137 * to the full image. If the layer has been initialized to another kind of
138 * layer, the layer will not be changed, and <code>PP_ERROR_BADARGUMENT</code>
141 * param[in] layer A <code>PP_Resource</code> corresponding to a compositor
142 * layer resource.
145 * param[in] size A <code>PP_Size</code> for the size of the layer before
152 int32_t (*SetImage)(PP_Resource layer,
157 * Sets a clip rectangle for a compositor layer. The Chromium compositor
158 * applies a transform matrix on the layer first, and then clips the layer
161 * param[in] layer A <code>PP_Resource</code> corresponding to a compositor
162 * layer resource.
168 int32_t (*SetClipRect)(PP_Resource layer, const struct PP_Rect* rect);
170 * Sets a transform matrix which is used to composite the layer.
172 * param[in] layer A <code>PP_Resource</code> corresponding to a compositor
173 * layer resource.
179 int32_t (*SetTransform)(PP_Resource layer, const float matrix[16]);
181 * Sets the opacity value which will be applied to the layer. The effective
188 * param[in] layer A <code>PP_Resource</code> corresponding to a compositor
189 * layer resource.
195 int32_t (*SetOpacity)(PP_Resource layer, float opacity);
197 * Sets the blend mode which is used to composite the layer.
199 * param[in] layer A <code>PP_Resource</code> corresponding to a compositor
200 * layer resource.
206 int32_t (*SetBlendMode)(PP_Resource layer, PP_BlendMode mode);
208 * Sets a source rectangle for a texture layer or an image layer.
210 * param[in] layer A <code>PP_Resource</code> corresponding to a compositor
211 * layer resource.
213 * consider. For a texture layer, rect is in uv coordinates. For an image
214 * layer, rect is in pixels. If the rect is beyond the dimensions of the
216 * If the layer size does not match the source rect size, bilinear scaling
221 int32_t (*SetSourceRect)(PP_Resource layer, const struct PP_FloatRect* rect);
223 * Sets the premultiplied alpha for an texture layer.
225 * param[in] layer A <code>PP_Resource</code> corresponding to a compositor
226 * layer resource.
232 int32_t (*SetPremultipliedAlpha)(PP_Resource layer, PP_Bool premult);
237 int32_t (*SetColor)(PP_Resource layer,
243 int32_t (*SetTexture)(PP_Resource layer,
248 int32_t (*SetImage)(PP_Resource layer,
252 int32_t (*SetClipRect)(PP_Resource layer, const struct PP_Rect* rect);
253 int32_t (*SetTransform)(PP_Resource layer, const float matrix[16]);
254 int32_t (*SetOpacity)(PP_Resource layer, float opacity);
255 int32_t (*SetBlendMode)(PP_Resource layer, PP_BlendMode mode);
256 int32_t (*SetSourceRect)(PP_Resource layer, const struct PP_FloatRect* rect);
257 int32_t (*SetPremultipliedAlpha)(PP_Resource layer, PP_Bool premult);