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>
Wed, 25 Oct 2017 22:55:03 +0000 (22:55 +0000)
commita14443fac49543abda174f8c3457ab0b60021b01
treef21857c0029fa39aac202667d6b31a582f824972
parent047fcbf6711e5f2f7a6c2444f4982b48aae91ae1
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
(cherry picked from commit 54f154a28284eabb52ade2689d4a9f8fa190163b)
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h