| 596 | } |
| 597 | |
| 598 | void QueueBatchContext::LogPresentOperations(const PresentedImages& presented_images, uint64_t submit_index) { |
| 599 | if (tag_range_.size()) { |
| 600 | auto access_log = std::make_shared<AccessLog>(); |
| 601 | BatchAccessLog::BatchRecord batch{queue_state_}; |
| 602 | batch.submit_index = submit_index; |
| 603 | batch.base_tag = tag_range_.begin; |
| 604 | batch_log_.Insert(batch, tag_range_, access_log); |
| 605 | access_log->reserve(tag_range_.size()); |
| 606 | assert(tag_range_.size() == presented_images.size()); |
| 607 | for (const auto& presented : presented_images) { |
| 608 | access_log->emplace_back(PresentResourceRecord(static_cast<const PresentedImageRecord>(presented))); |
| 609 | } |
| 610 | } |
| 611 | } |
| 612 | |
| 613 | void QueueBatchContext::DoAcquireOperation(const PresentedImage& presented) { |
| 614 | // Only one tag for acquire. The tag in presented is the present tag |
no test coverage detected