summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2022-08-08 23:58:59 +0000
committer Alec Mouri <alecmouri@google.com> 2022-09-07 19:32:23 +0000
commit914e75086755f7be427d2b6a1ed96662a0a7049e (patch)
tree6e4432c40fae697c2b9b50e3adad481e915ad842 /libs/androidfw/ResourceTimer.cpp
parent7566f477d9ce28d64c0817835b68d3f3d328baac (diff)
Support alpha for SurfaceView
Basically, this removes an excuse for apps to use TextureView for video playback or one-off HDR images prior to HDR UI being ready everywhere. The idea is that for Z-above, applying alpha is easy, because the surface just needs to be have alpha modulated. Z-below is a little bit more creative - the alpha is applied to the hole punch and drawn using DST_OUT blending semantics. This allows for views underneath the SurfaceView to blend with surface, while being occluded by views on top of the SurfaceView. There may need to be some complex view hierarchies that would be useful to test, but simple view layouts seem to work. Note that this is guarded with a target SDK check, to defend against applications that are propagated alpha to child views while expecting opaque SurfaceViews. Bug: 241474646 Test: HWAccelerationTest doesn't look broken Change-Id: Ibc14b18f1ce6f25250318db50275c6b8c972bade
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions