Searched refs:SafeAddInt32 (Results 1 - 6 of 6) sorted by last modified time

/external/chromium_org/gpu/command_buffer/client/
H A Dgles2_implementation.cc1406 if (!SafeAddInt32(offset, size, &end) || end > buffer_size) {
/external/chromium_org/gpu/command_buffer/common/
H A Dgles2_cmd_utils.h51 inline bool SafeAddInt32(int32 a, int32 b, int32* dst) { function in namespace:gpu::gles2
H A Dgles2_cmd_utils_unittest.cc50 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 Dbuffer_manager.cc128 SafeAddInt32(offset, size, &end) && end <= size_;
H A Dgles2_cmd_decoder.cc7012 if (!SafeAddInt32(x, width, &max_x) || !SafeAddInt32(y, height, &max_y)) {
H A Dtexture_manager.cc532 return SafeAddInt32(xoffset, width, &right) &&
533 SafeAddInt32(yoffset, height, &top) &&

Completed in 206 milliseconds