summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorGalia Peycheva <galinap@google.com>2021-04-26 14:11:09 +0200
committerGalia Peycheva <galinap@google.com>2021-05-17 20:55:19 +0200
commitfde81bf22998e0cebf91f7d725bcd58a069d566b (patch)
tree5c15a1f4fd5e6eccaa9e9b141f6f3cdb5935fb84 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentd2d8fa6c1764c1f5f543952f7a823c407ad255be (diff)
Add TunnelModeStateListener in java+jni
When tunnel mode is being used (meaning when there is a sideband stream in one of the layers in SurfaceFlinger), the blur can't be computed over that layer. In that case, SF blurs are disabled, which results in a translucent buffer to be drawn. This CL introduces a listener, which is registered with the SurfaceFlinger and receives a callback whenever the tunnel mode enabled state changes. This way, the BlurController can properly send updates to apps that blurs are disabled/enabled. Bug: 171457637 Test: atest TunnelModeStateListenerTest Test: atest TunnelModeStateReporterTest Change-Id: I6ffba1c342352ad65a32c0efc4ecbc07811245d9
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions