OSDN Git Service

Add new color setting
authorRomain Guy <romainguy@google.com>
Tue, 24 Oct 2017 20:40:32 +0000 (21:40 +0100)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Wed, 25 Oct 2017 05:30:30 +0000 (05:30 +0000)
commit4ba7d2ec503655357acd6513cd2709934c015d63
treea3c036ea017a5f130937c5647894342c2ad8bdbe
parentd8f66b08ea607fb6c4bcbb8a62a0a99f82d909f9
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