From 41983bc0ca40c4cb52198b30448464e41f914a87 Mon Sep 17 00:00:00 2001 From: bunnei Date: Thu, 11 Nov 2021 18:49:43 -0800 Subject: hle: nvflinger: Add implementation for QueueBufferInput and QueueBufferOutput structs. --- .../service/nvflinger/graphic_buffer_producer.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/core/hle/service/nvflinger/graphic_buffer_producer.cpp (limited to 'src/core/hle/service/nvflinger/graphic_buffer_producer.cpp') diff --git a/src/core/hle/service/nvflinger/graphic_buffer_producer.cpp b/src/core/hle/service/nvflinger/graphic_buffer_producer.cpp new file mode 100644 index 000000000..3e3669c99 --- /dev/null +++ b/src/core/hle/service/nvflinger/graphic_buffer_producer.cpp @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright 2021 yuzu Emulator Project +// Copyright 2010 The Android Open Source Project +// Parts of this implementation were base on: +// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/libs/gui/IGraphicBufferProducer.cpp + +#pragma once + +#include "core/hle/service/nvflinger/graphic_buffer_producer.h" +#include "core/hle/service/nvflinger/parcel.h" + +namespace android { + +QueueBufferInput::QueueBufferInput(Parcel& parcel) { + parcel.ReadFlattened(*this); +} + +QueueBufferOutput::QueueBufferOutput() = default; + +} // namespace android -- cgit v1.2.3