Replace SkRect by SkIRect in dark mode module.
As dark mode image classification logic works on integral values, making APIs accept SkIRect will help callers decide how to round the SkRects. This patch rounds |src| and |dst| by calling SkRect::roundOut() in DarkModeFilterHelper::ApplyToImageIfNeeded(). Bug: 1094005 Change-Id: I86dead7936932e207d0e1a3540de1741c27587d3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2389862 Commit-Queue: Prashant Nevase <prashant.n@samsung.com> Reviewed-by:Khushal <khushalsagar@chromium.org> Reviewed-by:
Stephen Chenney <schenney@chromium.org> Reviewed-by:
Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#810228}
Showing
Please register or sign in to comment