| 68 | } |
| 69 | |
| 70 | void NVTraceConsumer::ApplyFlipDelay(PresentEvent* present, uint32_t threadId) |
| 71 | { |
| 72 | auto flipIter = mNvFlipRequestByThreadId.find(threadId); |
| 73 | if (flipIter != mNvFlipRequestByThreadId.end()) { |
| 74 | present->FlipDelay = flipIter->second.FlipDelay; |
| 75 | present->FlipToken = flipIter->second.FlipToken; |
| 76 | // Clear the map (we want the whole map cleared, not just the element with the thread) |
| 77 | mNvFlipRequestByThreadId.clear(); |
| 78 | } |
| 79 | } |