| 232 | } |
| 233 | |
| 234 | void SurfaceManager::invalidateFunctionCallValues() { |
| 235 | if (!_isRunning.load()) { |
| 236 | return; |
| 237 | } |
| 238 | IThread* messageThread = getMessageThread(); |
| 239 | if (!messageThread) { |
| 240 | return; |
| 241 | } |
| 242 | auto self = shared_from_this(); |
| 243 | messageThread->post([self]() { |
| 244 | if (self->_surfaceCoordinator) { |
| 245 | self->_surfaceCoordinator->invalidateFunctionCallValues(); |
| 246 | } |
| 247 | }); |
| 248 | } |
| 249 | |
| 250 | void SurfaceManager::setSurfaceSizeProvider(ISurfaceSizeProvider* provider) { |
| 251 | std::lock_guard<std::mutex> lock(_surfaceSizeProviderMutex); |