| 162 | } |
| 163 | |
| 164 | void DoTick() { |
| 165 | if (!running_) { |
| 166 | return; |
| 167 | } |
| 168 | |
| 169 | // Choreographer does not continuously schedule the callback. We have to re- |
| 170 | // register the callback each time we're ticked. |
| 171 | ScheduleNextTick(); |
| 172 | Update(); |
| 173 | DrawFrame(); |
| 174 | } |
| 175 | |
| 176 | void Update() { |
| 177 | auto now = std::chrono::steady_clock::now(); |