Home
last modified time | relevance | path

Searched refs:SafeAddInt32 (Results 1 – 6 of 6) sorted by relevance

/external/chromium_org/gpu/command_buffer/common/
Dgles2_cmd_utils_unittest.cc50 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()
Dgles2_cmd_utils.h51 inline bool SafeAddInt32(int32 a, int32 b, int32* dst) { in SafeAddInt32() function
/external/chromium_org/gpu/command_buffer/service/
Dbuffer_manager.cc128 SafeAddInt32(offset, size, &end) && end <= size_; in CheckRange()
Dtexture_manager.cc530 return SafeAddInt32(xoffset, width, &right) && in ValidForTexture()
531 SafeAddInt32(yoffset, height, &top) && in ValidForTexture()
Dgles2_cmd_decoder.cc7363 if (!SafeAddInt32(x, width, &max_x) || !SafeAddInt32(y, height, &max_y)) { in HandleReadPixels()
/external/chromium_org/gpu/command_buffer/client/
Dgles2_implementation.cc1466 if (!SafeAddInt32(offset, size, &end) || end > buffer_size) { in BufferSubDataHelper()