summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/BufferQueueLayer.cpp
diff options
context:
space:
mode:
author Ady Abraham <adyabr@google.com> 2019-04-24 14:35:20 -0700
committer Ady Abraham <adyabr@google.com> 2019-05-15 17:15:36 +0000
commita315ce75a89f6c486930e5e4df074a99406ce033 (patch)
treed1b4b02f231a5b17492d14eec07d0776b7c3c911 /services/surfaceflinger/BufferQueueLayer.cpp
parent3f8312b5dc975c391f85f90a4a0586ac3c7ac899 (diff)
SurfaceFlinger: Force HDR content on DEFAULT refresh rate
Do not allow Performance Refresh Rate when displaying HDR content. Test: HDR Video on YouTube Bug: 129694529 Change-Id: Ic9b5801d3a4c8b06964e0c4dcec95ef214ebedc6
Diffstat (limited to 'services/surfaceflinger/BufferQueueLayer.cpp')
-rw-r--r--services/surfaceflinger/BufferQueueLayer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/surfaceflinger/BufferQueueLayer.cpp b/services/surfaceflinger/BufferQueueLayer.cpp
index 3d51ec33b2..bd0b55f688 100644
--- a/services/surfaceflinger/BufferQueueLayer.cpp
+++ b/services/surfaceflinger/BufferQueueLayer.cpp
@@ -443,7 +443,8 @@ void BufferQueueLayer::onFrameAvailable(const BufferItem& item) {
{ // Autolock scope
if (mFlinger->mUseSmart90ForVideo) {
const nsecs_t presentTime = item.mIsAutoTimestamp ? 0 : item.mTimestamp;
- mFlinger->mScheduler->addLayerPresentTime(mSchedulerLayerHandle, presentTime);
+ mFlinger->mScheduler->addLayerPresentTimeAndHDR(mSchedulerLayerHandle, presentTime,
+ item.mHdrMetadata.validTypes != 0);
}
Mutex::Autolock lock(mQueueItemLock);