summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Peiyong Lin <lpy@google.com> 2019-05-02 14:22:16 -0700
committer Peiyong Lin <lpy@google.com> 2019-05-03 15:07:31 -0700
commit5201031f68f83997b347b54e8de03e46f68d90bd (patch)
tree7afb8de9406efabbfe68d9284fafdaa9ff1fc327 /services/surfaceflinger/RegionSamplingThread.cpp
parent0bfc4a0c7cc6c18d45b6d5bc02fbfa3772678f12 (diff)
[SurfaceFlinger] Make sure switch the protected state of buffers.
Previously we avoid switching the protected state of buffers if the protected state is not changed or we fail to switch RenderEngine. However, if we just switch away from protected state and immediately have screenshot capturing happen, we end up not switching buffers to unprotected in next round because we switch RenderEngine to unprotected state. This patch makes sure we always switch the protected state correctly. BUG: b/130435822, b/130442144 Test: Verified with Youtube Test: libcompositionengine_test Change-Id: I30da95d8172b349cc7897a008fd27ecbc24fb960
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions