diff options
author | chaviw <chaviw@google.com> | 2020-10-16 11:28:42 -0700 |
---|---|---|
committer | chaviw <chaviw@google.com> | 2020-10-23 10:31:33 -0700 |
commit | b6a288ca3689771bc898e2d4698093e14d01953f (patch) | |
tree | d425044c559ae1b0e51fceda05f101ebe1d85652 /rs/java/android/renderscript/ProgramStore.java | |
parent | 22f1a934a47fb29a221bd5177ffd8219c70d3052 (diff) |
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
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions