OSDN Git Service

Use wide gamut only when necessary
authorRomain Guy <romainguy@google.com>
Thu, 1 Jun 2017 02:22:30 +0000 (19:22 -0700)
committerRomain Guy <romainguy@google.com>
Thu, 1 Jun 2017 02:31:47 +0000 (19:31 -0700)
commit8ec6ff22dc56e7447991557075d19f9edb2d5aa8
tree9e6ed4c0e865ecf687100bcc467a14882b6c9a37
parent88d37ddac876c75dd5d2e39d33787dbcbf833641
Use wide gamut only when necessary

Set the dataspace of the screenshot based on the result of
the composition. When no wide gamut app is visible, the screenshot
will be in sRGB, otherwise in Display P3. On device that do not
support wide gamut, the color space will be unknown (native).

Bug: 29940137
Test: screencap and Android Studio
Change-Id: I93f3f8e5afebb9f3f17b835fdf5bc215b0856d55
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h