MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / ClearCache

Method ClearCache

Source/SubPic/DX9SubPic.cpp:346–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346void CDX9SubPicAllocator::ClearCache()
347{
348 {
349 // Clear the allocator of any remaining subpics
350 CAutoLock Lock(&ms_SurfaceQueueLock);
351 for (auto& pSubPic : m_AllocatedSurfaces) {
352 pSubPic->m_pAllocator = nullptr;
353 }
354 m_AllocatedSurfaces.clear();
355 m_FreeSurfaces.clear();
356 }
357}
358
359// ISubPicAllocator
360

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected