summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvflinger/buffer_item_consumer.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/buffer_item_consumer.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/buffer_item_consumer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_item_consumer.h b/src/core/hle/service/nvflinger/buffer_item_consumer.h
index 99d592960..536db81e2 100644
--- a/src/core/hle/service/nvflinger/buffer_item_consumer.h
+++ b/src/core/hle/service/nvflinger/buffer_item_consumer.h
@@ -6,6 +6,7 @@
#pragma once
+#include <chrono>
#include <memory>
#include "common/common_types.h"
@@ -19,7 +20,8 @@ class BufferItem;
class BufferItemConsumer final : public ConsumerBase {
public:
explicit BufferItemConsumer(std::unique_ptr<BufferQueueConsumer> consumer);
- Status AcquireBuffer(BufferItem* item, u64 present_when_ns, bool wait_for_fence = true);
+ Status AcquireBuffer(BufferItem* item, std::chrono::nanoseconds present_when,
+ bool wait_for_fence = true);
Status ReleaseBuffer(const BufferItem& item, Fence& release_fence);
};