summaryrefslogtreecommitdiff
path: root/libs/gui/LayerDebugInfo.cpp
diff options
context:
space:
mode:
author yuhui.zhang <yuhui.zhang@mediatek.com> 2021-04-09 14:45:51 +0800
committer Ady Abraham <adyabr@google.com> 2021-04-23 20:48:29 +0000
commit50e9180dadae23cc488bf3ed4720e38c278d0235 (patch)
treeb8cd95eca6793389c0197fe925833b3e731b69bd /libs/gui/LayerDebugInfo.cpp
parent790e1ba908a81e0ad43a5322c1e62779cda10181 (diff)
Fix the secure flag check for blackout layer issue
When there is a layer not to be composed on insecure virtual display, surfaceflinger will send a black color layer to render engine to compose instead of the original buffer. If render engine supports protected context, but layer does not set the eLayerSecure flag,the layer will not be set to black color layer and will be sent to render engine to compose on the insecure display based on current logic, even if the layer buffer usage is protected. Solution: add buffer usage check for insecure display case. Test result: The secure layer buffer will not be sent to render engine for the insecure virtual display to compose, and a black color layer will be sent instead. Bug: 185195873 Change-Id: Iad53411ea642fee3e5b09222760a223b4ada61ad Merged-In: Iad53411ea642fee3e5b09222760a223b4ada61ad
Diffstat (limited to 'libs/gui/LayerDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions