MCPcopy Create free account
hub / github.com/baldurk/renderdoc / DeleteCapture

Method DeleteCapture

qrenderdoc/Code/ReplayManager.cpp:69–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void ReplayManager::DeleteCapture(const rdcstr &capture, bool local)
70{
71 if(IsRunning() && !m_Thread->isCurrentThread())
72 {
73 AsyncInvoke([this, capture, local](IReplayController *) { DeleteCapture(capture, local); });
74 return;
75 }
76
77 if(local)
78 {
79 QFile::remove(capture);
80 }
81 else
82 {
83 // this will be cleaned up automatically when the remote connection
84 // is closed.
85 if(m_Remote)
86 {
87 QMutexLocker autolock(&m_RemoteLock);
88 m_Remote->TakeOwnershipCapture(capture);
89 }
90 }
91}
92
93rdcarray<rdcstr> ReplayManager::GetRemoteSupport()
94{

Callers 6

PromptCloseCaptureMethod · 0.45
CloseCaptureMethod · 0.45
saveCaptureMethod · 0.45
cleanItemsMethod · 0.45
connectionThreadEntryMethod · 0.45

Calls 3

isCurrentThreadMethod · 0.80
TakeOwnershipCaptureMethod · 0.80
removeFunction · 0.50

Tested by

no test coverage detected