summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvflinger/consumer_base.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-20 05:52:08 +0100
committerbunnei <bunneidev@gmail.com>2022-03-25 02:13:33 +0100
commit650c9d0d627b1c926a07d82d0248f283ccbd8a1b (patch)
tree645d5594c010ab7ee1a334ba1ff1176c465c6798 /src/core/hle/service/nvflinger/consumer_base.h
parenthle: nvflinger: Migrate android namespace -> Service::android. (diff)
downloadyuzu-650c9d0d627b1c926a07d82d0248f283ccbd8a1b.tar
yuzu-650c9d0d627b1c926a07d82d0248f283ccbd8a1b.tar.gz
yuzu-650c9d0d627b1c926a07d82d0248f283ccbd8a1b.tar.bz2
yuzu-650c9d0d627b1c926a07d82d0248f283ccbd8a1b.tar.lz
yuzu-650c9d0d627b1c926a07d82d0248f283ccbd8a1b.tar.xz
yuzu-650c9d0d627b1c926a07d82d0248f283ccbd8a1b.tar.zst
yuzu-650c9d0d627b1c926a07d82d0248f283ccbd8a1b.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nvflinger/consumer_base.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/service/nvflinger/consumer_base.h b/src/core/hle/service/nvflinger/consumer_base.h
index ae34ea0a9..453a47349 100644
--- a/src/core/hle/service/nvflinger/consumer_base.h
+++ b/src/core/hle/service/nvflinger/consumer_base.h
@@ -7,6 +7,7 @@
#pragma once
#include <array>
+#include <chrono>
#include <memory>
#include <mutex>
@@ -34,7 +35,8 @@ protected:
virtual void OnSidebandStreamChanged() override;
void FreeBufferLocked(s32 slot_index);
- Status AcquireBufferLocked(BufferItem* item, u64 present_when_ns, u64 max_frame_number = 0);
+ 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);
Status AddReleaseFenceLocked(s32 slot, const std::shared_ptr<GraphicBuffer> graphic_buffer,