forked from joejulian/gio
all: rename more *layout.Context names to gtx
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -19,12 +19,12 @@ func BenchmarkUI(b *testing.B) {
|
||||
fetch := func(_ string) {}
|
||||
u := newUI(fetch)
|
||||
cfg := new(config)
|
||||
c := &layout.Context{
|
||||
gtx := &layout.Context{
|
||||
Queue: new(queue),
|
||||
}
|
||||
for i := 0; i < b.N; i++ {
|
||||
c.Reset(cfg, layout.RigidConstraints(image.Point{800, 600}))
|
||||
u.Layout(c)
|
||||
gtx.Reset(cfg, layout.RigidConstraints(image.Point{800, 600}))
|
||||
u.Layout(gtx)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user