mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 09:25:38 +00:00
example,cmd: bump gio version
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -7,14 +7,18 @@ import (
|
||||
"testing"
|
||||
|
||||
"gioui.org/layout"
|
||||
"gioui.org/op"
|
||||
)
|
||||
|
||||
func BenchmarkUI(b *testing.B) {
|
||||
fetch := func(_ string) {}
|
||||
u := newUI(fetch)
|
||||
gtx := new(layout.Context)
|
||||
var ops op.Ops
|
||||
for i := 0; i < b.N; i++ {
|
||||
gtx.Reset(nil, nil, image.Point{800, 600})
|
||||
gtx := layout.Context{
|
||||
Ops: &ops,
|
||||
Constraints: layout.Exact(image.Pt(800, 600)),
|
||||
}
|
||||
u.Layout(gtx)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user