]> git.cworth.org Git - apitrace/blobdiff - gui/retracer.h
Allow to retrace with EGL too.
[apitrace] / gui / retracer.h
index 127c9ab55cb9d414c760c4bf274821ded899ec3c..e5c391bcb23e91a7b5169601910589dac3d54770 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef RETRACER_H
 #define RETRACER_H
 
+#include "trace_api.hpp"
 #include "apitracecall.h"
 
 #include <QThread>
@@ -25,6 +26,8 @@ public:
     QString fileName() const;
     void setFileName(const QString &name);
 
+    void setAPI(trace::API api);
+
     bool isBenchmarking() const;
     void setBenchmarking(bool bench);
 
@@ -53,6 +56,7 @@ private slots:
 
 private:
     QString m_fileName;
+    trace::API m_api;
     bool m_benchmarking;
     bool m_doubleBuffered;
     bool m_captureState;
@@ -71,6 +75,8 @@ public:
     QString fileName() const;
     void setFileName(const QString &name);
 
+    void setAPI(trace::API api);
+
     bool isBenchmarking() const;
     void setBenchmarking(bool bench);
 
@@ -96,6 +102,7 @@ private slots:
     void cleanup();
 private:
     QString m_fileName;
+    trace::API m_api;
     bool m_benchmarking;
     bool m_doubleBuffered;
     bool m_captureState;