| 145 | // ── ManagedDisplayPort ─────────────────────────────────────────────── |
| 146 | |
| 147 | void ManagedDisplayPort::SubmitFrame(DisplayFrame frame) { |
| 148 | std::function<void(DisplayFrame)> handler; |
| 149 | { |
| 150 | std::lock_guard<std::mutex> lock(mutex_); |
| 151 | handler = frame_handler_; |
| 152 | } |
| 153 | if (handler) handler(std::move(frame)); |
| 154 | } |
| 155 | |
| 156 | void ManagedDisplayPort::SubmitCursor(const CursorInfo& cursor) { |
| 157 | std::function<void(const CursorInfo&)> handler; |