gpu: [compute] use support for simple strokes

In the old renderer, all strokes are converted to filled paths. The new
renderer can draw simple strokes natively. Do that, and avoid the costly
conversions.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-03-12 16:01:49 +01:00
parent 13da40f601
commit 1dde94d8dd
2 changed files with 38 additions and 13 deletions
+1 -1
View File
@@ -835,7 +835,7 @@ func (d *drawOps) collect(ctx driver.Device, cache *resourceCache, root *op.Ops,
data := buildPath(ctx, p.pathVerts)
var computePath encoder
if d.compute {
computePath = encodePath(p.pathVerts, p.stroke, p.dashes)
computePath = encodePath(p)
}
d.pathCache.put(p.pathKey, opCacheValue{
data: data,