summaryrefslogtreecommitdiffstats
path: root/src/video_core/rasterizer_cache.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-02-28 01:36:06 +0100
committerFernandoS27 <fsahmkow27@gmail.com>2019-02-28 02:58:50 +0100
commit7ea097e5c25737e681ad8ba007e655a7c6bfba31 (patch)
treebec7ddf4e5956e2d993b49f8e736f8854664ed01 /src/video_core/rasterizer_cache.h
parentCorrections and redesign. (diff)
downloadyuzu-7ea097e5c25737e681ad8ba007e655a7c6bfba31.tar
yuzu-7ea097e5c25737e681ad8ba007e655a7c6bfba31.tar.gz
yuzu-7ea097e5c25737e681ad8ba007e655a7c6bfba31.tar.bz2
yuzu-7ea097e5c25737e681ad8ba007e655a7c6bfba31.tar.lz
yuzu-7ea097e5c25737e681ad8ba007e655a7c6bfba31.tar.xz
yuzu-7ea097e5c25737e681ad8ba007e655a7c6bfba31.tar.zst
yuzu-7ea097e5c25737e681ad8ba007e655a7c6bfba31.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/rasterizer_cache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/rasterizer_cache.h b/src/video_core/rasterizer_cache.h
index b239dff84..a7bcf26fb 100644
--- a/src/video_core/rasterizer_cache.h
+++ b/src/video_core/rasterizer_cache.h
@@ -104,7 +104,7 @@ protected:
}
/// Register an object into the cache
- virtual void Register(const T& object) {
+ void Register(const T& object) {
object->SetIsRegistered(true);
interval_cache.add({GetInterval(object), ObjectSet{object}});
map_cache.insert({object->GetAddr(), object});
@@ -112,7 +112,7 @@ protected:
}
/// Unregisters an object from the cache
- virtual void Unregister(const T& object) {
+ void Unregister(const T& object) {
object->SetIsRegistered(false);
rasterizer.UpdatePagesCachedCount(object->GetAddr(), object->GetSizeInBytes(), -1);
// Only flush if use_accurate_gpu_emulation is enabled, as it incurs a performance hit