summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorGalia Peycheva <galinap@google.com>2019-12-13 11:27:23 +0100
committerGalia Peycheva <galinap@google.com>2020-01-17 16:37:32 +0100
commit088d7c097c42dbf984a07db9bb2be49958dbecf5 (patch)
treef533f18e3befe1f32a01b1d262b2c537748ea01f /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent8021efabb5a2e6559fcc5798e8acbd542f389c80 (diff)
Add minimal post processing flag in Settings.Secure
Minimal post processing might not be very well supported on all TV displays (e.g.the switch to/out of the low latency mode might be too slow or there might be flickering on the screen or some color interference, etc). This depends on the vendor implementation of minimal post processing. In such cases, we want to give the user an option to disable this feature in the settings menu. This means that any calls to the API (Window.setMinimalPostProcessing) will be ignored and no signals will be sent to the display. This CL adds the necessary flag to Settings.Secure. The value is read from DisplayManagerService, which combines it with the information from the WindowManager and the display capabilities to request the right low latency mode on the display. Bug: 144356279 Test: m && ./vendor/google/tools/flashall 1. adb shell settings put secure minimal_post_processing_allowed 1 2. Open Activity that prefers minimal post processing 3. adb shell settings put secure minimal_post_processing_allowed 0 -> this should turn ALLM off 4. adb shell settings put secure minimal_post_processing_allowed 1 -> this should turn ALLM back on 5. Exit Activity -> this should turn ALLM off Change-Id: I2d24a9a004d4939b0439d466ef2ca279803fd67f
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions