We can now use the cached information instead of tracing the graph.

This commit is contained in:
Richard Heck 2016-10-20 22:52:54 -04:00
parent 014bc7805e
commit 7c9e9b4c90

View File

@ -2393,11 +2393,13 @@ string BufferParams::bufferFormat() const
bool BufferParams::isExportable(string const & format) const
{
vector<string> backs = backends();
for (vector<string>::const_iterator it = backs.begin();
it != backs.end(); ++it)
if (theConverters().isReachable(*it, format))
FormatList const & formats = exportableFormats(false);
FormatList::const_iterator fit = formats.begin();
FormatList::const_iterator end = formats.end();
for (; fit != end ; ++fit) {
if ((*fit)->name() == format)
return true;
}
return false;
}