OSDN Git Service

SF/HWC2: Add support for color transforms
authorDan Stoza <stoza@google.com>
Wed, 22 Jun 2016 21:51:09 +0000 (14:51 -0700)
committerDan Stoza <stoza@google.com>
Fri, 15 Jul 2016 17:06:36 +0000 (10:06 -0700)
commit9f26a9c8be6f00f55cbc30b93adf4895c6a093aa
tree532c44807bdcbad2c8d2f0418fe8604fc6351e39
parentd47c07fe3368a4c916475361120c638ead988ffd
SF/HWC2: Add support for color transforms

Adds support for color transforms using the setColorTransform method
of HWC2.

This means that instead of always falling back to client composition
when applying a transform, SurfaceFlinger will allow the device to
make that decision. If all layers fall back to client composition, the
SKIP_CLIENT_COLOR_TRANSFORM capability allows the device greater
control over whether SF should apply the transform or whether it
should allow the device to apply it to the client target buffer.

Bug: 19539930
Change-Id: I47a3d5453a3c47a8dd105ab77cce7f9c9687e925
services/surfaceflinger/DisplayHardware/HWC2.cpp
services/surfaceflinger/DisplayHardware/HWC2.h
services/surfaceflinger/DisplayHardware/HWComposer.cpp
services/surfaceflinger/DisplayHardware/HWComposer.h
services/surfaceflinger/Effects/Daltonizer.cpp
services/surfaceflinger/Effects/Daltonizer.h
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h
services/surfaceflinger/SurfaceFlinger_hwc1.cpp