X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=cli%2Ftrace_analyzer.cpp;h=79f95579eb2626be39a3aa724542367147f2de04;hb=b9c20609ce007c6e07562df57b8a5d845061b9e4;hp=36058cf5e1c5b8e51354581253892dada8eb52cc;hpb=4bfcd90edeba7775e4572bd6ff7454291603277c;p=apitrace diff --git a/cli/trace_analyzer.cpp b/cli/trace_analyzer.cpp index 36058cf..79f9557 100644 --- a/cli/trace_analyzer.cpp +++ b/cli/trace_analyzer.cpp @@ -162,7 +162,7 @@ TraceAnalyzer::consume(std::string resource) resources.erase(resource); for (call = calls.begin(); call != calls.end(); call++) { - required.insert(*call); + required.add(*call); } } @@ -279,7 +279,7 @@ bool TraceAnalyzer::recordTextureSideEffects(trace::Call *call, const char *name) { if (strcmp(name, "glGenTextures") == 0) { - const trace::Array *textures = dynamic_cast(&call->arg(1)); + const trace::Array *textures = call->arg(1).toArray(); size_t i; GLuint texture; @@ -754,13 +754,13 @@ TraceAnalyzer::require(trace::Call *call) requireDependencies(call); /* Then insert this call itself. */ - required.insert(call->no); + required.add(call->no); } /* Return a set of all the required calls, (both those calls added * explicitly with require() and those implicitly depended * upon. */ -std::set * +trace::FastCallSet * TraceAnalyzer::get_required(void) { return &required;