Files
frameworks_base/core/java/android/view
chaviw b6a288ca36 Screen capture protected content for animations
Allow capturing protected (DRM) content for animations since the content
will only be rendered back into a protected context. The three
animations are ScreenRotation, SurfaceFreezer, and ColorFade.

For each case, use the setAllowProtected when capturing the content.
ScreenRotation and SurfaceFreezer render the content back on screen
using a SurfaceControl. The Layer automatically gets marked as secure
in SurfaceFlinger since the GraphicBuffer queued is marked as protected.

For ColorFade, the content is rendered with a GL context so we need to
recreate the context with the protected value set.

Test: ColorFade, ScreenRotation, FreeForm with DRM and not DRM content
Fixes: 146180867
Change-Id: I1255d3dd439bcf7b8e4cc4d4a2ce1083b70cb9f1
2020-10-23 10:31:33 -07:00
..
2020-05-18 13:56:09 -04:00
2020-07-24 22:03:51 +00:00
…
2020-10-16 13:53:05 +00:00
2020-10-21 15:27:15 +00:00
2020-10-16 13:53:05 +00:00
2020-05-04 11:41:13 +08:00