summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2024-05-29 17:11:15 +0800
committer Riddle Hsu <riddlehsu@google.com> 2024-05-29 17:11:15 +0800
commitcc03f08373b8aa98a0ead51d23908c8a5d4cc37f (patch)
tree337f45a702c59f63d378c28f0246f36c01767935 /api/api_test.go
parentdf5244aa7acd1e758f9e856657a41a118487c739 (diff)
Use non-protected screenshot buffer to calculate animation color
The screenshot for animation needs to be "setAllowProtected(true)", otherwise the protected area will be blank. But it is unable to be used to extract color because protected content is not readable. To avoid the background rotation animation always showing black color in this case (it looks flickering if the main color of screen is light), use the source surface with excluding protected content to calculate the color. Bug: 342984506 Test: Enable auto rotation, home rotation. Set wallpaper to white color. Play DRM protected video in PiP mode. Rotate the device. The animation background should be white. Change-Id: I346c9683e2c58891103031bf9adf662a7044132c
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions