Fix false-negative in ResourceSizes::VerifyFitsInBytesInternal
VerifyFitsInBytesInternal would return false if a size/format combo had a size in *bits* that overflowed the requested type, even if the final size in *bytes* fit. Updated the logic to handle this. Additionally, Maybe(Width|Size)InBytes would crash if width overflowed, also fixed and test added. Bug: 1002855 Change-Id: I1fde167f17fdddfbcf4f9269e8a681a062d9ff05 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1803831 Commit-Queue: Eric Karl <ericrk@chromium.org> Auto-Submit: Eric Karl <ericrk@chromium.org> Reviewed-by:Khushal <khushalsagar@chromium.org> Cr-Commit-Position: refs/heads/master@{#698592}
Showing
This diff is collapsed.
Please register or sign in to comment