OSDN Git Service

Add saturation boost feature to SurfaceFlinger
authorRomain Guy <romainguy@google.com>
Thu, 1 Jun 2017 20:53:56 +0000 (13:53 -0700)
committerRomain Guy <romainguy@google.com>
Fri, 2 Jun 2017 17:18:09 +0000 (10:18 -0700)
commit0147a17adb08a155e1d6f72e6ca5e794fc7f5cc4
tree2205c8d31c24dd4f1945f0ade6598c5d059323f3
parenta96387361ca25f0e8a7cebc59827c5be4c95a457
Add saturation boost feature to SurfaceFlinger

Bug: 62238038
Test: adb shell service call SurfaceFlinger 1022 f 1.5

The saturation boost will be set by framework to increase
the visual appeal of the sRGB mode. It simply modifies the
color transform matrix based on the supplied value (from
0.0 for black and white to 2.0 for 100% extra saturation).

Change-Id: I9832fbe0361acacc8b17300c37c006792c6c1618
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h