Fix K-Means average color computation for narrow and short images
The color computation tries to inset its samples by 1 pixel on each edge, but that doesn't work for 1 pixel wide images. Skip the inset if the image is too narrow or too short. See bug for details. Bug: 970343 Test: Added to gfx_unittests Change-Id: If558a8bbacb27d9011da93868ad3b6f0e72f8754 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1644299 Commit-Queue: James Cook <jamescook@chromium.org> Reviewed-by:Michael Wasserman <msw@chromium.org> Cr-Commit-Position: refs/heads/master@{#666314}
Showing
Please register or sign in to comment