• Stephen Chenney's avatar
    [DarkMode] Do not invert shader-based images · b9b9a8a5
    Stephen Chenney authored
    Code in DarkModeFilter was applying a dark mode color filter
    to any painted content that had some other shader associated
    with it. Such shaders come from gradients, mostly, but also
    tiled images and some background images.
    
    This patch limits the application of the dark mode color filter
    shaders that are not images or paint records. The former because
    we should not be applying a naive color filter to images, and
    the latter because they should already have filters dark mode
    filters applied.
    
    Fixes: 1160239
    Change-Id: Id7dfbf999d43d7a9f5953d1f5a5edc5a1c92fe07
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2622989
    Commit-Queue: Stephen Chenney <schenney@chromium.org>
    Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#842366}
    b9b9a8a5
image-as-shader.html 391 Bytes