Use CheckedNumerics in AsyncPixelTransfersCompletedQuery, add tests
commit5bf02fe48f23634b215a40d584891f787fc825b0
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 13 Mar 2014 20:35:22 +0000 (13 20:35 +0000)
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 13 Mar 2014 20:35:22 +0000 (13 20:35 +0000)
treeca90eea76d4dbf665039fde07a64339c370cd273
parent1a54bee0b669c6f336372399b5e12d62e87ecb92
Use CheckedNumerics in AsyncPixelTransfersCompletedQuery, add tests

This is a follow-up to https://codereview.chromium.org/198253002/
1- It converts the code to use CheckedNumerics
2- It adds unit tests:
  * converts existing tests to exercise all query types
  * adds an additional test to exercise overflow explicitly
3- Fixes a minor issue with GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM, where
out-of-bounds access would be silently failing instead of losing the context.

BUG=351852

Review URL: https://codereview.chromium.org/196633009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256918 0039d316-1c4b-4281-b951-d872f2087c98
gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc
gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h
gpu/command_buffer/service/query_manager.cc