Ensure non-zero block size for image classification
When classifying images for dark mode the src rect can be smaller than 1x1 (the src is a floating point rect). Rather than rounding down, giving divide by 0, we should round up. The downstream code was reviewed to look for cases where this might break and none were identified. Bug: 1119761 Change-Id: I4b8eea35ff33274a0f30e68f1487677ea4f19c29 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2413040 Auto-Submit: Stephen Chenney <schenney@chromium.org> Reviewed-by:Philip Rogers <pdr@chromium.org> Commit-Queue: Stephen Chenney <schenney@chromium.org> Cr-Commit-Position: refs/heads/master@{#807538}
Showing
Please register or sign in to comment