mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-08 02:45:38 +00:00
example/kitchen: gofmt -s -w .
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -7,11 +7,11 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"gioui.org/layout"
|
||||
"gioui.org/op"
|
||||
"gioui.org/app/headless"
|
||||
"gioui.org/f32"
|
||||
"gioui.org/font/gofont"
|
||||
"gioui.org/layout"
|
||||
"gioui.org/op"
|
||||
"gioui.org/widget/material"
|
||||
)
|
||||
|
||||
@@ -19,7 +19,9 @@ func BenchmarkUI(b *testing.B) { benchmarkUI(b, transformation{}) }
|
||||
func BenchmarkUI_Offset(b *testing.B) { benchmarkUI(b, transformation{offset: true}) }
|
||||
func BenchmarkUI_Scale(b *testing.B) { benchmarkUI(b, transformation{scale: true}) }
|
||||
func BenchmarkUI_Rotate(b *testing.B) { benchmarkUI(b, transformation{rotate: true}) }
|
||||
func BenchmarkUI_All(b *testing.B) { benchmarkUI(b, transformation{offset: true, rotate: true, scale: true}) }
|
||||
func BenchmarkUI_All(b *testing.B) {
|
||||
benchmarkUI(b, transformation{offset: true, rotate: true, scale: true})
|
||||
}
|
||||
|
||||
func benchmarkUI(b *testing.B, transform transformation) {
|
||||
th := material.NewTheme(gofont.Collection())
|
||||
|
||||
Reference in New Issue
Block a user