]> git.cworth.org Git - apitrace/blobdiff - cli/trace_analyzer.hpp
retrace: Implement glxCopySubBufferMESA
[apitrace] / cli / trace_analyzer.hpp
index ef89ad7a4eb0fc27a2f36d648b5da540fdcdb257..c344fb6af320100ef80b874976549b151318451d 100644 (file)
@@ -29,6 +29,7 @@
 #include <GL/glext.h>
 
 #include "trace_callset.hpp"
+#include "trace_fast_callset.hpp"
 #include "trace_parser.hpp"
 
 typedef unsigned TrimFlags;
@@ -58,7 +59,7 @@ private:
 
     std::map<GLenum, unsigned> texture_map;
 
-    std::set<unsigned> required;
+    trace::FastCallSet required;
 
     bool transformFeedbackActive;
     bool framebufferObjectActive;
@@ -95,7 +96,7 @@ private:
     void requireDependencies(trace::Call *call);
 
 public:
-    TraceAnalyzer(TrimFlags trimFlags);
+    TraceAnalyzer(TrimFlags trimFlags = -1);
     ~TraceAnalyzer();
 
     /* Analyze this call by tracking state and recording all the
@@ -109,5 +110,5 @@ public:
     /* Return a set of all the required calls, (both those calls added
      * explicitly with require() and those implicitly depended
      * upon. */
-    std::set<unsigned> *get_required(void);
+    trace::FastCallSet *get_required(void);
 };