summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.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-21 23:09:46 +0000
commita102ff9348cf71ed1fc938e6e1c9fd00963123a5 (patch)
tree4a95a4f8ac8db5a7f30790b6cb1b2afed02b5d49 /vulkan/libvulkan/api.cpp
parentaf3a22e30f36ed69f52bd8282dcebe5620c19a7a (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 Test: By partner Change-Id: Iad53411ea642fee3e5b09222760a223b4ada61ad
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions