Searched refs:SafeAddInt32 (Results 1 - 6 of 6) sorted by last modified time
/external/chromium_org/gpu/command_buffer/client/ |
H A D | gles2_implementation.cc | 1406 if (!SafeAddInt32(offset, size, &end) || end > buffer_size) {
|
/external/chromium_org/gpu/command_buffer/common/ |
H A D | gles2_cmd_utils.h | 51 inline bool SafeAddInt32(int32 a, int32 b, int32* dst) { function in namespace:gpu::gles2
|
H A D | gles2_cmd_utils_unittest.cc | 50 TEST_F(GLES2UtilTest, SafeAddInt32) { 54 EXPECT_TRUE(SafeAddInt32(2, 3, &result)); 56 EXPECT_FALSE(SafeAddInt32(kMax, 1, &result)); 58 EXPECT_TRUE(SafeAddInt32(kMin + 1, -1, &result)); 60 EXPECT_FALSE(SafeAddInt32(kMin, -1, &result)); 62 EXPECT_TRUE(SafeAddInt32(kMax - 1, 1, &result)); 64 EXPECT_FALSE(SafeAddInt32(1, kMax, &result)); 66 EXPECT_TRUE(SafeAddInt32(-1, kMin + 1, &result)); 68 EXPECT_FALSE(SafeAddInt32(-1, kMin, &result)); 70 EXPECT_TRUE(SafeAddInt32( [all...] |
/external/chromium_org/gpu/command_buffer/service/ |
H A D | buffer_manager.cc | 128 SafeAddInt32(offset, size, &end) && end <= size_;
|
H A D | gles2_cmd_decoder.cc | 7012 if (!SafeAddInt32(x, width, &max_x) || !SafeAddInt32(y, height, &max_y)) {
|
H A D | texture_manager.cc | 532 return SafeAddInt32(xoffset, width, &right) && 533 SafeAddInt32(yoffset, height, &top) &&
|
Completed in 206 milliseconds