X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fretracer.cpp;h=2928ed63f321f31e34667e2448e1b8f765f2fdbf;hb=ebe01ce9942e570f23b40793e97cf02b6f3616ee;hp=6d743f70e72d04aab4cb7e181603e5597ea52f96;hpb=4647f208f5a2b87391281e0f1202f66c23943bd9;p=apitrace diff --git a/gui/retracer.cpp b/gui/retracer.cpp index 6d743f7..2928ed6 100644 --- a/gui/retracer.cpp +++ b/gui/retracer.cpp @@ -3,7 +3,7 @@ #include "apitracecall.h" #include "thumbnail.h" -#include "image.hpp" +#include "image/image.hpp" #include "trace_profiler.hpp" @@ -137,19 +137,6 @@ Retracer::Retracer(QObject *parent) m_profilePixels(false) { qRegisterMetaType >(); - -#ifdef Q_OS_WIN - QString format = QLatin1String("%1;"); -#else - QString format = QLatin1String("%1:"); -#endif - QString buildPath = format.arg(APITRACE_BINARY_DIR); - m_processEnvironment = QProcessEnvironment::systemEnvironment(); - m_processEnvironment.insert("PATH", buildPath + - m_processEnvironment.value("PATH")); - - qputenv("PATH", - m_processEnvironment.value("PATH").toLatin1()); } QString Retracer::fileName() const @@ -271,9 +258,7 @@ void Retracer::run() case trace::API_D3D7: case trace::API_D3D8: case trace::API_D3D9: - case trace::API_D3D10: - case trace::API_D3D10_1: - case trace::API_D3D11: + case trace::API_DXGI: #ifdef Q_OS_WIN prog = QLatin1String("d3dretrace"); #else @@ -294,21 +279,21 @@ void Retracer::run() arguments << QLatin1String("-"); // emit to stdout } else if (isProfiling()) { if (m_profileGpu) { - arguments << QLatin1String("-pgpu"); + arguments << QLatin1String("--pgpu"); } if (m_profileCpu) { - arguments << QLatin1String("-pcpu"); + arguments << QLatin1String("--pcpu"); } if (m_profilePixels) { - arguments << QLatin1String("-ppd"); + arguments << QLatin1String("--ppd"); } } else { if (m_doubleBuffered) { - arguments << QLatin1String("-db"); + arguments << QLatin1String("--db"); } else { - arguments << QLatin1String("-sb"); + arguments << QLatin1String("--sb"); } if (m_benchmarking) { @@ -411,6 +396,7 @@ void Retracer::run() unsigned char *scanLine = snapshot.scanLine(y); qint64 readBytes = io.read((char *) scanLine, rowBytes); Q_ASSERT(readBytes == rowBytes); + (void)readBytes; } QImage thumb = thumbnail(snapshot);