Commit 1628c3c
committed
Bug 1913568 - Add support for normalized UV coordinates to webrender. r=gfx-reviewers,nical
Some external images must be sampled from by providing normalized UV
coordinates to webrender, but currently webrender only supports
unnormalized UVs.
This patch adds a flag to webrender's external image API that
specifies whether the UV coordinates supplied when the texture is
locked are normalized or unnormalized. This flag is plumbed through
webrender to the required locations. We then add support for taking
normalized UVs as inputs to the brush_image and cs_scale shaders. The
only other shader that can be used with external textures is the
composite shader, which already supports normalized UVs.
This does not change any behaviour, that will happen in the next patch
in this series.
Differential Revision: https://phabricator.services.mozilla.com/D2205811 parent a8bbf3a commit 1628c3c
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2177 | 2177 | | |
2178 | 2178 | | |
2179 | 2179 | | |
| 2180 | + | |
2180 | 2181 | | |
2181 | 2182 | | |
2182 | 2183 | | |
| |||
2185 | 2186 | | |
2186 | 2187 | | |
2187 | 2188 | | |
| 2189 | + | |
2188 | 2190 | | |
2189 | 2191 | | |
2190 | 2192 | | |
| |||
2222 | 2224 | | |
2223 | 2225 | | |
2224 | 2226 | | |
| 2227 | + | |
2225 | 2228 | | |
2226 | 2229 | | |
2227 | 2230 | | |
| |||
2230 | 2233 | | |
2231 | 2234 | | |
2232 | 2235 | | |
| 2236 | + | |
2233 | 2237 | | |
2234 | 2238 | | |
2235 | 2239 | | |
| |||
2243 | 2247 | | |
2244 | 2248 | | |
2245 | 2249 | | |
| 2250 | + | |
2246 | 2251 | | |
2247 | 2252 | | |
2248 | 2253 | | |
| |||
2252 | 2257 | | |
2253 | 2258 | | |
2254 | 2259 | | |
| 2260 | + | |
2255 | 2261 | | |
2256 | 2262 | | |
2257 | 2263 | | |
| |||
0 commit comments