[host] remove debug tracing noise

This commit is contained in:
Geoffrey McRae 2018-05-29 18:36:52 +10:00
parent b23c7808c0
commit d753af9d17

View file

@ -21,7 +21,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
using namespace Capture; using namespace Capture;
#include "common/debug.h" #include "common/debug.h"
#include "TraceUtil.h"
#include <mfapi.h> #include <mfapi.h>
#include <wmcodecdsp.h> #include <wmcodecdsp.h>
@ -761,9 +760,7 @@ GrabStatus Capture::DXGI::GrabFrameRaw(FrameInfo & frame, struct CursorInfo & cu
while(true) while(true)
{ {
TRACE_START("GrabFrame");
result = GrabFrameTexture(frame, cursor, src, timeout); result = GrabFrameTexture(frame, cursor, src, timeout);
TRACE_END;
if (result != GRAB_STATUS_OK) if (result != GRAB_STATUS_OK)
return result; return result;
@ -804,7 +801,6 @@ GrabStatus Capture::DXGI::GrabFrameRaw(FrameInfo & frame, struct CursorInfo & cu
} }
m_surfaceMapped = true; m_surfaceMapped = true;
TRACE_START("DXGI Memory Copy");
// wake up the copy threads // wake up the copy threads
m_memcpy.Wake(); m_memcpy.Wake();
@ -813,7 +809,6 @@ GrabStatus Capture::DXGI::GrabFrameRaw(FrameInfo & frame, struct CursorInfo & cu
const unsigned int size = m_height * m_mapping.RowPitch; const unsigned int size = m_height * m_mapping.RowPitch;
m_memcpy.Copy(frame.buffer, m_mapping.pData, LG_MIN(size, frame.bufferSize)); m_memcpy.Copy(frame.buffer, m_mapping.pData, LG_MIN(size, frame.bufferSize));
TRACE_END;
return GRAB_STATUS_OK; return GRAB_STATUS_OK;
} }
@ -912,7 +907,6 @@ GrabStatus Capture::DXGI::GrabFrameH264(struct FrameInfo & frame, struct CursorI
LeaveCriticalSection(&m_encodeCS); LeaveCriticalSection(&m_encodeCS);
// wake up the copy threads // wake up the copy threads
TRACE_START("copy");
m_memcpy.Wake(); m_memcpy.Wake();
MFT_OUTPUT_STREAM_INFO streamInfo; MFT_OUTPUT_STREAM_INFO streamInfo;
@ -953,7 +947,6 @@ GrabStatus Capture::DXGI::GrabFrameH264(struct FrameInfo & frame, struct CursorI
frame.stride = 0; frame.stride = 0;
frame.pitch = curLen; frame.pitch = curLen;
TRACE_END;
return GRAB_STATUS_OK; return GRAB_STATUS_OK;
} }