yuzu-emu
/
yuzu
Archived
1
0
Fork 0

hle: nvflinger: consumer_base: StillTracking: Should be const.

This commit is contained in:
bunnei 2022-03-19 22:08:50 -07:00
parent 480c79edba
commit 0ce308047e
2 changed files with 3 additions and 2 deletions

View File

@ -117,7 +117,8 @@ Status ConsumerBase::ReleaseBufferLocked(s32 slot,
return err;
}
bool ConsumerBase::StillTracking(s32 slot, const std::shared_ptr<GraphicBuffer> graphic_buffer) {
bool ConsumerBase::StillTracking(s32 slot,
const std::shared_ptr<GraphicBuffer> graphic_buffer) const {
if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) {
return false;
}

View File

@ -38,7 +38,7 @@ protected:
Status AcquireBufferLocked(BufferItem* item, std::chrono::nanoseconds present_when,
u64 max_frame_number = 0);
Status ReleaseBufferLocked(s32 slot, const std::shared_ptr<GraphicBuffer> graphic_buffer);
bool StillTracking(s32 slot, const std::shared_ptr<GraphicBuffer> graphic_buffer);
bool StillTracking(s32 slot, const std::shared_ptr<GraphicBuffer> graphic_buffer) const;
Status AddReleaseFenceLocked(s32 slot, const std::shared_ptr<GraphicBuffer> graphic_buffer,
const Fence& fence);