| 282 | QueueBatchContext::~QueueBatchContext() { sync_state_.stats.RemoveQueueBatchContext(); } |
| 283 | |
| 284 | void QueueBatchContext::Trim() { |
| 285 | // Clean up unneeded access context contents and log information |
| 286 | access_context_.TrimAndClearFirstAccess(); |
| 287 | |
| 288 | ResourceUsageTagSet used_tags; |
| 289 | access_context_.AddReferencedTags(used_tags); |
| 290 | |
| 291 | // Note: AccessContexts in the SyncEventsState are trimmed when created. |
| 292 | events_context_.AddReferencedTags(used_tags); |
| 293 | |
| 294 | // Only conserve AccessLog references that are referenced by used_tags |
| 295 | batch_log_.Trim(used_tags); |
| 296 | } |
| 297 | |
| 298 | void QueueBatchContext::ResolveSubmittedCommandBuffer(const AccessContext& recorded_context, ResourceUsageTag offset) { |
| 299 | GetCurrentAccessContext().ResolveFromContext(QueueTagOffsetBarrierAction(GetQueueId(), offset), recorded_context); |
no test coverage detected