diff options
author | Lioncash <mathew1800@gmail.com> | 2022-11-29 01:09:41 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2022-11-29 01:09:44 +0100 |
commit | c0c4f6dfa6f45d3ab0b4f7b7d243fa9fc3fe973a (patch) | |
tree | 3d9d5b4244dd0779fc2e0e9b19f46eaa7992f9d6 /src/core/hle/service/nvflinger/consumer_base.cpp | |
parent | consumer_base: Remove redundant virtual (diff) | |
download | yuzu-c0c4f6dfa6f45d3ab0b4f7b7d243fa9fc3fe973a.tar yuzu-c0c4f6dfa6f45d3ab0b4f7b7d243fa9fc3fe973a.tar.gz yuzu-c0c4f6dfa6f45d3ab0b4f7b7d243fa9fc3fe973a.tar.bz2 yuzu-c0c4f6dfa6f45d3ab0b4f7b7d243fa9fc3fe973a.tar.lz yuzu-c0c4f6dfa6f45d3ab0b4f7b7d243fa9fc3fe973a.tar.xz yuzu-c0c4f6dfa6f45d3ab0b4f7b7d243fa9fc3fe973a.tar.zst yuzu-c0c4f6dfa6f45d3ab0b4f7b7d243fa9fc3fe973a.zip |
Diffstat (limited to 'src/core/hle/service/nvflinger/consumer_base.cpp')
-rw-r--r-- | src/core/hle/service/nvflinger/consumer_base.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/nvflinger/consumer_base.cpp b/src/core/hle/service/nvflinger/consumer_base.cpp index 5b9995854..982531e2d 100644 --- a/src/core/hle/service/nvflinger/consumer_base.cpp +++ b/src/core/hle/service/nvflinger/consumer_base.cpp @@ -83,7 +83,7 @@ Status ConsumerBase::AcquireBufferLocked(BufferItem* item, std::chrono::nanoseco } Status ConsumerBase::AddReleaseFenceLocked(s32 slot, - const std::shared_ptr<GraphicBuffer> graphic_buffer, + const std::shared_ptr<GraphicBuffer>& graphic_buffer, const Fence& fence) { LOG_DEBUG(Service_NVFlinger, "slot={}", slot); @@ -100,7 +100,7 @@ Status ConsumerBase::AddReleaseFenceLocked(s32 slot, } Status ConsumerBase::ReleaseBufferLocked(s32 slot, - const std::shared_ptr<GraphicBuffer> graphic_buffer) { + const std::shared_ptr<GraphicBuffer>& graphic_buffer) { // If consumer no longer tracks this graphic_buffer (we received a new // buffer on the same slot), the buffer producer is definitely no longer // tracking it. @@ -121,7 +121,7 @@ Status ConsumerBase::ReleaseBufferLocked(s32 slot, } bool ConsumerBase::StillTracking(s32 slot, - const std::shared_ptr<GraphicBuffer> graphic_buffer) const { + const std::shared_ptr<GraphicBuffer>& graphic_buffer) const { if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) { return false; } |