summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Peiyong Lin <lpy@google.com> 2019-03-26 15:07:54 -0700
committer Peiyong Lin <lpy@google.com> 2019-03-26 15:07:54 -0700
commit5d2018a2e306030406c0f996d2b01adac7699afe (patch)
tree790d9bd9e11e1e0864bfb4cd03b6ccb64a978aa9 /libs/gui/ConsumerBase.cpp
parent42f8ae9276c7ec45c85b00a93d5b629271f81ab5 (diff)
Reallocate GraphicBuffer as long as the protected bit is different.
Previously as long as the usage bit is the superset of the requested usage bit, we don't reallocate GraphicBuffer. However, this is wrong for protected contents, the protected usage bit on GraphicBuffer must align with the protected context. Since we turn off protected context when there's no protected content, we need to reallocate non-protected GraphicBuffer, otherwise it's undefined behaviour and will result in crash. BUG: b/35315015, b/127862411 Test: Verify no kgsl page fault with protected contents. Change-Id: I789076ba411079364528bd844e6abb5dcbfa77f7
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions