diff options
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/service/nvflinger/consumer_listener.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/core/hle/service/nvflinger/consumer_listener.h b/src/core/hle/service/nvflinger/consumer_listener.h new file mode 100644 index 000000000..0aa4ad17b --- /dev/null +++ b/src/core/hle/service/nvflinger/consumer_listener.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-3.0-or-later | ||
| 2 | // Copyright 2021 yuzu Emulator Project | ||
| 3 | // Copyright 2014 The Android Open Source Project | ||
| 4 | // Parts of this implementation were base on: | ||
| 5 | // https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/IConsumerListener.h | ||
| 6 | |||
| 7 | #pragma once | ||
| 8 | |||
| 9 | namespace android { | ||
| 10 | |||
| 11 | class BufferItem; | ||
| 12 | |||
| 13 | /// ConsumerListener is the interface through which the BufferQueue notifies the consumer of events | ||
| 14 | /// that the consumer may wish to react to. | ||
| 15 | class IConsumerListener { | ||
| 16 | public: | ||
| 17 | IConsumerListener() = default; | ||
| 18 | virtual ~IConsumerListener() = default; | ||
| 19 | |||
| 20 | virtual void OnFrameAvailable(const BufferItem& item) = 0; | ||
| 21 | virtual void OnFrameReplaced(const BufferItem& item) = 0; | ||
| 22 | virtual void OnBuffersReleased() = 0; | ||
| 23 | virtual void OnSidebandStreamChanged() = 0; | ||
| 24 | }; | ||
| 25 | |||
| 26 | }; // namespace android | ||