OSDN Git Service

Add new color setting
authorRomain Guy <romainguy@google.com>
Tue, 24 Oct 2017 20:40:32 +0000 (21:40 +0100)
committerChia-I Wu <olv@google.com>
Tue, 24 Oct 2017 23:39:15 +0000 (16:39 -0700)
commit54f154a28284eabb52ade2689d4a9f8fa190163b
treea3c036ea017a5f130937c5647894342c2ad8bdbe
parent331d79d26b237a6ebf4284dd99c79b0fe5ab55df
Add new color setting

On devices that support wide color rendering and color management,
add a new setting to disable color management ("saturated" color
mode). To disable color management, the framework can set a persistent
property. Color management can be also toggled by using a Binder
transaction. Finally this change adds a new Binder query so Settings
can easily check whether the device supports wide color rendering.

Bug: 68159303
Test: manual (adb shell + apps)
Change-Id: If74d9b0273bc04f4a3d11e63fe2ec96451fbcc2e
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h