uidriver/mobile: Remove time-out logic

This was introduced at 8121b2102f.
I am not sure the reason.

As Render must sync with updating and never returns until updating
finishes, the time-out case should never be chosen.
This commit is contained in:
Hajime Hoshi 2019-06-01 01:39:39 +09:00
parent 13ce1c28b4
commit 2dc6042858

View File

@ -64,17 +64,11 @@ func (u *UserInterface) Render(chError <-chan error) error {
}
// TODO: Check this is called on the rendering thread
t := time.NewTimer(500 * time.Millisecond)
defer t.Stop()
select {
case err := <-chError:
return err
case renderCh <- struct{}{}:
return opengl.Get().DoWork(renderEndCh)
case <-t.C:
// This function must not be blocked. We need to break for timeout.
return nil
}
}