| 154 | } |
| 155 | |
| 156 | void ManagedDisplayPort::SubmitCursor(const CursorInfo& cursor) { |
| 157 | std::function<void(const CursorInfo&)> handler; |
| 158 | { |
| 159 | std::lock_guard<std::mutex> lock(mutex_); |
| 160 | handler = cursor_handler_; |
| 161 | } |
| 162 | if (handler) handler(cursor); |
| 163 | } |
| 164 | |
| 165 | void ManagedDisplayPort::SetFrameHandler( |
| 166 | std::function<void(DisplayFrame)> handler) { |