diff options
| author | Markus Wick <markus@selfnet.de> | 2015-07-22 19:04:04 +0200 |
|---|---|---|
| committer | Markus Wick <markus@selfnet.de> | 2015-07-22 19:04:04 +0200 |
| commit | 6bcdae616be68f2702bb1e5beeb47e90004b6c46 (patch) | |
| tree | d1370da9ed33ce48d8978d8366c315aaf49958ce /Source/Core/VideoCommon/TextureCacheBase.h | |
| parent | deef164c7b99bac1b9b3c574fe6a886ab2b13a1c (diff) | |
| parent | d8cd2c3252ab6f2ce6c1656b5eb194863e834f52 (diff) | |
Merge pull request #2679 from Tinob/master
Implement scaled partial texture updates
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.h')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h index 5d4f9204fc..0a51ef64b9 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.h +++ b/Source/Core/VideoCommon/TextureCacheBase.h @@ -89,7 +89,10 @@ public: virtual void Bind(unsigned int stage) = 0; virtual bool Save(const std::string& filename, unsigned int level) = 0; - virtual void DoPartialTextureUpdate(TCacheEntryBase* entry, u32 x, u32 y) = 0; + virtual void CopyRectangleFromTexture( + const TCacheEntryBase* source, + const MathUtil::Rectangle<int> &srcrect, + const MathUtil::Rectangle<int> &dstrect) = 0; virtual void Load(unsigned int width, unsigned int height, unsigned int expanded_width, unsigned int level) = 0; @@ -100,8 +103,6 @@ public: bool OverlapsMemoryRange(u32 range_address, u32 range_size) const; - void DoPartialTextureUpdates(); - bool IsEfbCopy() const { return is_efb_copy; } }; @@ -140,7 +141,7 @@ protected: private: typedef std::multimap<u64, TCacheEntryBase*> TexCache; typedef std::unordered_multimap<TCacheEntryConfig, TCacheEntryBase*, TCacheEntryConfig::Hasher> TexPool; - + static TCacheEntryBase* DoPartialTextureUpdates(TexCache::iterator iter); static void DumpTexture(TCacheEntryBase* entry, std::string basename, unsigned int level); static void CheckTempSize(size_t required_size); |
