• Ahmed Fakhry's avatar
    Night Light: Don't apply gamma tables · d4e731e3
    Ahmed Fakhry authored
    We found out that the hardware split gamma mode
    doesn't do interpolation of the values, which led
    to some bad side effects such as ugly banding in
    blur effects.
    
    This CL removes all the default gamma tables, and
    uses the newly exposed data to identify if the
    hardware does color correction in linear gamma
    space or not. This lets us select which type of
    matrix to apply.
    
    BUG=851156,749250
    TEST=Expanded tests
    
    Change-Id: I0342b6e4a0257e833c7d13690930dfd32ce89fe7
    Reviewed-on: https://chromium-review.googlesource.com/1112734Reviewed-by: default avatarDaniele Castagna <dcastagna@chromium.org>
    Commit-Queue: Ahmed Fakhry <afakhry@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#570279}
    d4e731e3
night_light_controller.cc 27.5 KB