Searched refs:SafeAddInt32 (Results 1 – 6 of 6) sorted by relevance
/external/chromium_org/gpu/command_buffer/common/ |
D | gles2_cmd_utils_unittest.cc | 50 TEST_F(GLES2UtilTest, SafeAddInt32) { in TEST_F() argument 54 EXPECT_TRUE(SafeAddInt32(2, 3, &result)); in TEST_F() 56 EXPECT_FALSE(SafeAddInt32(kMax, 1, &result)); in TEST_F() 58 EXPECT_TRUE(SafeAddInt32(kMin + 1, -1, &result)); in TEST_F() 60 EXPECT_FALSE(SafeAddInt32(kMin, -1, &result)); in TEST_F() 62 EXPECT_TRUE(SafeAddInt32(kMax - 1, 1, &result)); in TEST_F() 64 EXPECT_FALSE(SafeAddInt32(1, kMax, &result)); in TEST_F() 66 EXPECT_TRUE(SafeAddInt32(-1, kMin + 1, &result)); in TEST_F() 68 EXPECT_FALSE(SafeAddInt32(-1, kMin, &result)); in TEST_F() 70 EXPECT_TRUE(SafeAddInt32(1, kMax - 1, &result)); in TEST_F()
|
D | gles2_cmd_utils.h | 51 inline bool SafeAddInt32(int32 a, int32 b, int32* dst) { in SafeAddInt32() function
|
/external/chromium_org/gpu/command_buffer/service/ |
D | buffer_manager.cc | 128 SafeAddInt32(offset, size, &end) && end <= size_; in CheckRange()
|
D | texture_manager.cc | 530 return SafeAddInt32(xoffset, width, &right) && in ValidForTexture() 531 SafeAddInt32(yoffset, height, &top) && in ValidForTexture()
|
D | gles2_cmd_decoder.cc | 7363 if (!SafeAddInt32(x, width, &max_x) || !SafeAddInt32(y, height, &max_y)) { in HandleReadPixels()
|
/external/chromium_org/gpu/command_buffer/client/ |
D | gles2_implementation.cc | 1466 if (!SafeAddInt32(offset, size, &end) || end > buffer_size) { in BufferSubDataHelper()
|