Chromium Code Reviews
Descriptiongpu: Avoid integer overflow when setting up client side buffers
Use gpu::SafeAddInt32 to calculate the number of elements in the buffers
whilst avoiding overflow. The code is also refactored slightly to make
the setup of buffers conditional on them being supported via the new
SupportsClientSideBuffers() check.
BUG=629072
TEST=gpu_unittests
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Committed: https://crrev.com/d05fe0bb566dbffcef374f314403c340e4181711
Cr-Commit-Position: refs/heads/master@{#409172}
Patch Set 1 #
Total comments: 2
Messages
Total messages: 13 (5 generated)
|
|||||||||||||||||||||||||||||||||||||