mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
gpu/backend: move backend interface types to a separate package
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+6
-4
@@ -4,17 +4,19 @@ package gpu
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gioui.org/gpu/backend"
|
||||
)
|
||||
|
||||
type timers struct {
|
||||
backend Backend
|
||||
backend backend.Device
|
||||
timers []*timer
|
||||
}
|
||||
|
||||
type timer struct {
|
||||
Elapsed time.Duration
|
||||
backend Backend
|
||||
timer Timer
|
||||
backend backend.Device
|
||||
timer backend.Timer
|
||||
state timerState
|
||||
}
|
||||
|
||||
@@ -26,7 +28,7 @@ const (
|
||||
timerWaiting
|
||||
)
|
||||
|
||||
func newTimers(b Backend) *timers {
|
||||
func newTimers(b backend.Device) *timers {
|
||||
return &timers{
|
||||
backend: b,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user