]> git.cworth.org Git - apitrace/blobdiff - retrace/retrace.hpp
d3dretrace: Try to match the window size in the dxgi traces.
[apitrace] / retrace / retrace.hpp
index 311cef9474deb62158b236ba0ab361dda014fe8a..ab1ba5c20dd7af242f226c8386b4201b898518fb 100644 (file)
@@ -148,6 +148,9 @@ extern bool debug;
  * Add profiling data to the dump when retracing.
  */
 extern bool profiling;
+extern bool profilingCpuTimes;
+extern bool profilingGpuTimes;
+extern bool profilingPixelsDrawn;
 
 /**
  * State dumping.
@@ -158,9 +161,8 @@ extern bool dumpingState;
 extern bool doubleBuffer;
 extern bool coreProfile;
 
-extern bool profileGPU;
-
 extern unsigned frameNo;
+extern unsigned callNo;
 
 
 std::ostream &warning(trace::Call &call);
@@ -209,6 +211,24 @@ public:
 };
 
 
+class Dumper
+{
+public:
+    virtual image::Image *
+    getSnapshot(void) {
+        return NULL;
+    }
+
+    virtual bool
+    dumpState(std::ostream &os) {
+        return false;
+    }
+};
+
+
+extern Dumper *dumper;
+
+
 void
 setUp(void);
 
@@ -218,11 +238,7 @@ addCallbacks(retrace::Retracer &retracer);
 void
 frameComplete(trace::Call &call);
 
-image::Image *
-getSnapshot(void);
 
-bool
-dumpState(std::ostream &os);
 
 void
 flushRendering(void);