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

(cherry picked from commit 7c9e9b4c90)
This commit is contained in:
Richard Heck 2016-10-20 22:52:54 -04:00
parent e9b14eed60
commit 348c95d1bf

View File

@ -2403,11 +2403,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;
}