summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorGalia Peycheva <galinap@google.com>2021-02-16 16:39:57 +0100
committerGalia Peycheva <galinap@google.com>2021-03-01 22:23:22 +0100
commit6e842a730c67ec9884efea514bbca5a2cb1d9ef9 (patch)
tree8a3207ffff6e15555a9ce1efc7f66dbf016a9b82 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent7fe1a92c601961562d55251d944f59e773cd6b38 (diff)
Create listener for dynamic blurEnabled changes
This CL exposes an API to let apps know when the blur has been enabled or disabled dynamically. This could be due to battery saving mode turned on, tunnel mode being used, minimal post processing requested, etc. This adds a WindowManager.addCrossWindowBlurEnabledListener, which allows apps to add/remove a listener for blur enabled state changes. The listeners are registered in a CrossWindowBlurListeners, which receives updates from WindowManagerService when blurEnabled changes. CrossWindowBlurListeners only registers a remote listener if the client initializes it. I.e. if the app is not interested in blurs, the CrossWindowBlurListeners won't get initialized and won't register a remote listener. WindowManagerService holds a RemoteCallbackList, which holds listeners for each client process and notifies them when there are updates. If any of the listeners' process dies, the entry is removed from the list. Bug: 177524486 Test: m CTS-Coverage-Bug: 179990440 Change-Id: I3fe8f2d2008171d6b069e8ee6f3b47e5b5d60cfa
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions