moved decodercache to base folder for shared usage

This commit is contained in:
itsmattkc
2019-11-04 11:42:35 +11:00
parent 97a4294bb3
commit 6021852f18
2 changed files with 47 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#include "decodercache.h"
DecoderCache::DecoderCache()
{
}
void DecoderCache::Clear()
{
decoders_.clear();
}
void DecoderCache::AddDecoder(Stream *stream, DecoderPtr shader)
{
decoders_.insert(stream, shader);
}
DecoderPtr DecoderCache::GetDecoder(Stream *stream)
{
return decoders_.value(stream);
}