Make DarkModeImageClassifier apis to work with SkPixmap.
For RSDM (wip patch crrev.com/c/2295379), the ImageDecodeCache expects DarkModeFilter work on SkPixmap. This patch makes DarkModeImageClassifier use SkPixmap instead of PaintImage. Also as RSDM requires the purging of the cache to be implemented in decoded image cache, this patch moves dark mode image cache outside dark mode module. Now blink implements caching in Image class and dark mode filter helper is added to handle cache modifications. To check the correctness of the dark mode classifier logic to work on full image than portion of the image, few more tests related to image sprite and block samples are added. Bug: 1094005 Change-Id: I39dbd7638691da459b898045d4721069dc5dd21c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2382990Reviewed-by:Khushal <khushalsagar@chromium.org> Reviewed-by:
Philip Rogers <pdr@chromium.org> Commit-Queue: Prashant Nevase <prashant.n@samsung.com> Cr-Commit-Position: refs/heads/master@{#809969}
Showing
This diff is collapsed.
This diff is collapsed.
3.77 KB