mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 00:16:15 +00:00
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:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user