diff options
| author | 2013-09-01 21:36:12 -0700 | |
|---|---|---|
| committer | 2013-09-04 22:11:15 -0700 | |
| commit | ff2ed70fa30f04b90dd1a2c06ec2319e157152d7 (patch) | |
| tree | ce07917c9844239d37b000afd2518b08028ed8be /services/surfaceflinger/SurfaceFlinger.h | |
| parent | 1d4d8f94e2989b7c8667602304df9059d2701653 (diff) | |
color blindness enhancement
This is an attempt at improving the experience of
users with color vision impairement.
At this time this feature can only be enabled for
debugging:
adb shell service call SurfaceFlinger 1014 i32 PARAM
with PARAM:
0 : disabled
1 : protanomaly/protanopia simulation
2 : deuteranomaly/deuteranopia simulation
3 : tritanopia/tritanomaly simulation
11, 12, 13: same as above w/ attempted correction/enhancement
The enhancement algorithm tries to spread the "error"
such that tones that would otherwise appear similar can be
distinguished.
Bug: 9465644
Change-Id: I860f7eed0cb81f54ef9cf24ad78155b6395ade48
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.h')
| -rw-r--r-- | services/surfaceflinger/SurfaceFlinger.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.h b/services/surfaceflinger/SurfaceFlinger.h index f746e6b919..347e3e3600 100644 --- a/services/surfaceflinger/SurfaceFlinger.h +++ b/services/surfaceflinger/SurfaceFlinger.h @@ -52,6 +52,7 @@ #include "MessageQueue.h" #include "DisplayHardware/HWComposer.h" +#include "Effects/Daltonizer.h" namespace android { @@ -458,7 +459,8 @@ private: * Feature prototyping */ - sp<IBinder> mExtDisplayToken; + Daltonizer mDaltonizer; + bool mDaltonize; }; // --------------------------------------------------------------------------- |