mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
cmd,example: update gio version
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ module gioui.org/cmd
|
|||||||
go 1.13
|
go 1.13
|
||||||
|
|
||||||
require (
|
require (
|
||||||
gioui.org v0.0.0-20191120191531-f3f079df324f
|
gioui.org v0.0.0-20191202121315-11506a974e90
|
||||||
github.com/chromedp/cdproto v0.0.0-20191114225735-6626966fbae4
|
github.com/chromedp/cdproto v0.0.0-20191114225735-6626966fbae4
|
||||||
github.com/chromedp/chromedp v0.5.2
|
github.com/chromedp/chromedp v0.5.2
|
||||||
golang.org/x/image v0.0.0-20190802002840-cff245a6509b
|
golang.org/x/image v0.0.0-20190802002840-cff245a6509b
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
||||||
gioui.org v0.0.0-20191120191531-f3f079df324f h1:r8A2iPgz4OoRq4l/NytZznN/NuMamZCAd15oiS2rtoM=
|
gioui.org v0.0.0-20191202121315-11506a974e90 h1:+S/bkhXOSFVrqiCmepTFQ7h2ooD8unj+iX1yZfEOGX4=
|
||||||
gioui.org v0.0.0-20191120191531-f3f079df324f/go.mod h1:KqFFi2Dq5gYA3FJ0sDOt8OBXoMsuxMtE8v2f0JExXAY=
|
gioui.org v0.0.0-20191202121315-11506a974e90/go.mod h1:KqFFi2Dq5gYA3FJ0sDOt8OBXoMsuxMtE8v2f0JExXAY=
|
||||||
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802 h1:1BDTz0u9nC3//pOCMdNH+CiXJVYJh5UQNCOBG7jbELc=
|
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802 h1:1BDTz0u9nC3//pOCMdNH+CiXJVYJh5UQNCOBG7jbELc=
|
||||||
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
|
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
|
||||||
github.com/chromedp/cdproto v0.0.0-20191114225735-6626966fbae4 h1:QD3KxSJ59L2lxG6MXBjNHxiQO2RmxTQ3XcK+wO44WOg=
|
github.com/chromedp/cdproto v0.0.0-20191114225735-6626966fbae4 h1:QD3KxSJ59L2lxG6MXBjNHxiQO2RmxTQ3XcK+wO44WOg=
|
||||||
|
|||||||
Vendored
+1
-3
@@ -53,9 +53,7 @@ func loop(w *app.Window) error {
|
|||||||
color: color.RGBA{R: 0x00, G: 0x00, B: 0x00, A: 0x80},
|
color: color.RGBA{R: 0x00, G: 0x00, B: 0x00, A: 0x80},
|
||||||
}
|
}
|
||||||
|
|
||||||
gtx := &layout.Context{
|
gtx := layout.NewContext(w.Queue())
|
||||||
Queue: w.Queue(),
|
|
||||||
}
|
|
||||||
for {
|
for {
|
||||||
e := <-w.Events()
|
e := <-w.Events()
|
||||||
switch e := e.(type) {
|
switch e := e.(type) {
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ module gioui.org/example
|
|||||||
go 1.13
|
go 1.13
|
||||||
|
|
||||||
require (
|
require (
|
||||||
gioui.org v0.0.0-20191120191531-f3f079df324f
|
gioui.org v0.0.0-20191202121315-11506a974e90
|
||||||
github.com/google/go-github/v24 v24.0.1
|
github.com/google/go-github/v24 v24.0.1
|
||||||
golang.org/x/exp v0.0.0-20191002040644-a1355ae1e2c3
|
golang.org/x/exp v0.0.0-20191002040644-a1355ae1e2c3
|
||||||
golang.org/x/image v0.0.0-20190802002840-cff245a6509b
|
golang.org/x/image v0.0.0-20190802002840-cff245a6509b
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||||
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
||||||
gioui.org v0.0.0-20191120191531-f3f079df324f h1:r8A2iPgz4OoRq4l/NytZznN/NuMamZCAd15oiS2rtoM=
|
gioui.org v0.0.0-20191202121315-11506a974e90 h1:+S/bkhXOSFVrqiCmepTFQ7h2ooD8unj+iX1yZfEOGX4=
|
||||||
gioui.org v0.0.0-20191120191531-f3f079df324f/go.mod h1:KqFFi2Dq5gYA3FJ0sDOt8OBXoMsuxMtE8v2f0JExXAY=
|
gioui.org v0.0.0-20191202121315-11506a974e90/go.mod h1:KqFFi2Dq5gYA3FJ0sDOt8OBXoMsuxMtE8v2f0JExXAY=
|
||||||
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
|
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
|
||||||
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
|
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
|
||||||
github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
|
github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
|
||||||
|
|||||||
@@ -77,9 +77,7 @@ func initProfiling() {
|
|||||||
|
|
||||||
func (a *App) run() error {
|
func (a *App) run() error {
|
||||||
a.ui.profiling = *stats
|
a.ui.profiling = *stats
|
||||||
gtx := &layout.Context{
|
gtx := layout.NewContext(a.w.Queue())
|
||||||
Queue: a.w.Queue(),
|
|
||||||
}
|
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case users := <-a.updateUsers:
|
case users := <-a.updateUsers:
|
||||||
|
|||||||
@@ -5,38 +5,16 @@ package main
|
|||||||
import (
|
import (
|
||||||
"image"
|
"image"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
|
||||||
|
|
||||||
"gioui.org/io/event"
|
|
||||||
"gioui.org/layout"
|
"gioui.org/layout"
|
||||||
"gioui.org/unit"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type queue struct{}
|
|
||||||
|
|
||||||
type config struct{}
|
|
||||||
|
|
||||||
func BenchmarkUI(b *testing.B) {
|
func BenchmarkUI(b *testing.B) {
|
||||||
fetch := func(_ string) {}
|
fetch := func(_ string) {}
|
||||||
u := newUI(fetch)
|
u := newUI(fetch)
|
||||||
cfg := new(config)
|
gtx := new(layout.Context)
|
||||||
gtx := &layout.Context{
|
|
||||||
Queue: new(queue),
|
|
||||||
}
|
|
||||||
for i := 0; i < b.N; i++ {
|
for i := 0; i < b.N; i++ {
|
||||||
gtx.Reset(cfg, image.Point{800, 600})
|
gtx.Reset(nil, image.Point{800, 600})
|
||||||
u.Layout(gtx)
|
u.Layout(gtx)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (queue) Events(k event.Key) []event.Event {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (config) Now() time.Time {
|
|
||||||
return time.Now()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (config) Px(v unit.Value) int {
|
|
||||||
return int(v.V + .5)
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -30,9 +30,7 @@ func main() {
|
|||||||
func loop(w *app.Window) error {
|
func loop(w *app.Window) error {
|
||||||
gofont.Register()
|
gofont.Register()
|
||||||
th := material.NewTheme()
|
th := material.NewTheme()
|
||||||
gtx := &layout.Context{
|
gtx := layout.NewContext(w.Queue())
|
||||||
Queue: w.Queue(),
|
|
||||||
}
|
|
||||||
for {
|
for {
|
||||||
e := <-w.Events()
|
e := <-w.Events()
|
||||||
switch e := e.(type) {
|
switch e := e.(type) {
|
||||||
|
|||||||
@@ -40,9 +40,7 @@ func main() {
|
|||||||
|
|
||||||
func loop(w *app.Window) error {
|
func loop(w *app.Window) error {
|
||||||
th := material.NewTheme()
|
th := material.NewTheme()
|
||||||
gtx := &layout.Context{
|
gtx := layout.NewContext(w.Queue())
|
||||||
Queue: w.Queue(),
|
|
||||||
}
|
|
||||||
for {
|
for {
|
||||||
e := <-w.Events()
|
e := <-w.Events()
|
||||||
switch e := e.(type) {
|
switch e := e.(type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user