summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueProducer.cpp
diff options
context:
space:
mode:
author Brian Lindahl <blindahl@google.com> 2024-10-30 11:50:28 -0600
committer Brian Lindahl <blindahl@google.com> 2024-11-08 18:09:35 -0700
commit628cff4cec8899b1c9cf75d4a3ae80617b97d825 (patch)
treef4efc50cb640a85870932a76fdc7e0be8f898c00 /libs/gui/BufferQueueProducer.cpp
parent07dcd4977f47e37d8dd24cf7abc32202fbe088df (diff)
Allow apps to associate a change in picture profiles alongside a buffer
What picture processing a buffer looks best with is often dependent on the buffer contents itself. It is often necessary for a change in picture profile to be tightly coupled to a change in buffer. Bug: 337330263 Test: build Test: atest BufferQueueTest Flag: com.android.graphics.libgui.flags.apply_picture_profiles Change-Id: I8bd3468519fb28a234f6853531638e348b1c5274
Diffstat (limited to 'libs/gui/BufferQueueProducer.cpp')
-rw-r--r--libs/gui/BufferQueueProducer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/gui/BufferQueueProducer.cpp b/libs/gui/BufferQueueProducer.cpp
index 473a374a59..39209f9745 100644
--- a/libs/gui/BufferQueueProducer.cpp
+++ b/libs/gui/BufferQueueProducer.cpp
@@ -938,6 +938,8 @@ status_t BufferQueueProducer::queueBuffer(int slot,
&getFrameTimestamps);
const Region& surfaceDamage = input.getSurfaceDamage();
const HdrMetadata& hdrMetadata = input.getHdrMetadata();
+ const std::optional<PictureProfileHandle>& pictureProfileHandle =
+ input.getPictureProfileHandle();
if (acquireFence == nullptr) {
BQ_LOGE("queueBuffer: fence is NULL");
@@ -1044,6 +1046,7 @@ status_t BufferQueueProducer::queueBuffer(int slot,
item.mIsAutoTimestamp = isAutoTimestamp;
item.mDataSpace = dataSpace;
item.mHdrMetadata = hdrMetadata;
+ item.mPictureProfileHandle = pictureProfileHandle;
item.mFrameNumber = currentFrameNumber;
item.mSlot = slot;
item.mFence = acquireFence;