VideoCommon: rename TextureCache to TextureCacheBase

This commit is contained in:
Tillmann Karras
2015-11-06 01:28:05 +01:00
parent f26b3708e7
commit 81d9cce70c
14 changed files with 59 additions and 59 deletions

View File

@ -17,7 +17,7 @@
struct VideoConfig;
class TextureCache
class TextureCacheBase
{
public:
struct TCacheEntryConfig
@ -35,7 +35,7 @@ public:
struct Hasher : std::hash<u64>
{
size_t operator()(const TextureCache::TCacheEntryConfig& c) const
size_t operator()(const TextureCacheBase::TCacheEntryConfig& c) const
{
u64 id = (u64)c.rendertarget << 63 | (u64)c.layers << 48 | (u64)c.levels << 32 | (u64)c.height << 16 | (u64)c.width;
return std::hash<u64>::operator()(id);
@ -118,7 +118,7 @@ public:
u64 CalculateHash() const;
};
virtual ~TextureCache(); // needs virtual for DX11 dtor
virtual ~TextureCacheBase(); // needs virtual for DX11 dtor
static void OnConfigChanged(VideoConfig& config);
@ -144,7 +144,7 @@ public:
virtual void ConvertTexture(TCacheEntryBase* entry, TCacheEntryBase* unconverted, void* palette, TlutFormat format) = 0;
protected:
TextureCache();
TextureCacheBase();
alignas(16) static u8* temp;
static size_t temp_size;
@ -180,4 +180,4 @@ private:
} backup_config;
};
extern TextureCache *g_texture_cache;
extern TextureCacheBase* g_texture_cache;