diff options
| author | 2024-01-30 22:44:52 +0000 | |
|---|---|---|
| committer | 2024-01-30 22:44:52 +0000 | |
| commit | b5d245390fc6aa4119e7ce3a2f398254369838e6 (patch) | |
| tree | c1b5916d12ac356ec1732e50293b335475ea83d0 /libs/gui/BufferQueue.cpp | |
| parent | c271c0e736bc9eaf39e149ac98a2a16ba96fba93 (diff) | |
| parent | 2d701e14093b2e699d7dca00db3d7d66d0c96e29 (diff) | |
Merge "Merge Android 24Q1 Release (ab/11220357)" into aosp-main-future
Diffstat (limited to 'libs/gui/BufferQueue.cpp')
| -rw-r--r-- | libs/gui/BufferQueue.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/gui/BufferQueue.cpp b/libs/gui/BufferQueue.cpp index 66cad03fec..b0f6e69115 100644 --- a/libs/gui/BufferQueue.cpp +++ b/libs/gui/BufferQueue.cpp @@ -98,6 +98,16 @@ void BufferQueue::ProxyConsumerListener::addAndGetFrameTimestamps( } } +#if COM_ANDROID_GRAPHICS_LIBGUI_FLAGS(BQ_SETFRAMERATE) +void BufferQueue::ProxyConsumerListener::onSetFrameRate(float frameRate, int8_t compatibility, + int8_t changeFrameRateStrategy) { + sp<ConsumerListener> listener(mConsumerListener.promote()); + if (listener != nullptr) { + listener->onSetFrameRate(frameRate, compatibility, changeFrameRateStrategy); + } +} +#endif + void BufferQueue::createBufferQueue(sp<IGraphicBufferProducer>* outProducer, sp<IGraphicBufferConsumer>* outConsumer, bool consumerIsSurfaceFlinger) { |