Skip to content
Snippets Groups Projects
Verified Commit a0af492c authored by Adithya R's avatar Adithya R Committed by Simão Gomes Viana
Browse files

SurfaceFlinger: Allow forcing HWC brightness support


Some vendors purposely disable brightness capability
even though the HWC completely supports it, in order
to leverage their custom brightness implementations.
One such example of this is in stock HWC of some
xiaomi devices.

Since light HAL offers lesser granual control than
HWC (since its in gamma space and not float), and
since it would be rather difficult to patch the blob
to return the right capabilities, allow forcing the
usage of HWC brightness functions via a prop:

ro.sf.force_hwc_brightness=1 (default 0).

Change-Id: I7d2fef03afbbb936572c717f769f30c9e49213e0
Signed-off-by: default avatarAdithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: default avatarSimão Gomes Viana <devel@superboring.dev>
parent decbcef2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment