Home
last modified time | relevance | path

Searched refs:SafeMultiplyUint32 (Results 1 – 7 of 7) sorted by relevance

/external/chromium_org/gpu/command_buffer/service/
Drenderbuffer_manager.cc162 if (!SafeMultiplyUint32(width, height, &temp)) { in ComputeEstimatedRenderbufferSize()
165 if (!SafeMultiplyUint32(temp, samples, &temp)) { in ComputeEstimatedRenderbufferSize()
169 if (!SafeMultiplyUint32( in ComputeEstimatedRenderbufferSize()
Dgles2_cmd_decoder_autogen.h546 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleDeleteBuffersImmediate()
566 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleDeleteFramebuffersImmediate()
586 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleDeleteRenderbuffersImmediate()
606 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleDeleteTexturesImmediate()
826 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleGenBuffersImmediate()
863 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleGenFramebuffersImmediate()
885 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleGenRenderbuffersImmediate()
907 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleGenTexturesImmediate()
2778 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleGenQueriesEXTImmediate()
2800 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleDeleteQueriesEXTImmediate()
[all …]
Dbuffer_manager.cc182 if (!SafeMultiplyUint32( in GetMaxValueForRange()
Dgles2_cmd_decoder.cc234 if (!SafeMultiplyUint32(count, size, &value)) { in ComputeDataSize()
237 if (!SafeMultiplyUint32(value, elements_per_unit, &value)) { in ComputeDataSize()
5018 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleDeleteSharedIdsCHROMIUM()
5058 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleGenSharedIdsCHROMIUM()
5098 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleRegisterSharedIdsCHROMIUM()
6398 !SafeMultiplyUint32(num_vertices, sizeof(Vec4), &size_needed) || in SimulateAttrib0()
6517 if (!SafeMultiplyUint32(num_vertices, attrib->size(), &elements_used) || in SimulateFixedAttribs()
6528 if (!SafeMultiplyUint32(elements_needed, kSizeOfFloat, &size_needed) || in SimulateFixedAttribs()
9387 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleShaderBinary()
9648 if (!SafeMultiplyUint32(count, sizeof(GLenum), &pnames_size)) { in HandleGetMultipleIntegervCHROMIUM()
[all …]
/external/chromium_org/gpu/command_buffer/common/
Dgles2_cmd_utils_unittest.cc22 TEST_F(GLES2UtilTest, SafeMultiplyUint32) { in TEST_F() argument
24 EXPECT_TRUE(SafeMultiplyUint32(2u, 3u, &result)); in TEST_F()
26 EXPECT_FALSE(SafeMultiplyUint32(0x80000000u, 2u, &result)); in TEST_F()
28 EXPECT_TRUE(SafeMultiplyUint32(0x2u, 0x7FFFFFFFu, &result)); in TEST_F()
30 EXPECT_FALSE(SafeMultiplyUint32(2u, 0x80000000u, &result)); in TEST_F()
Dgles2_cmd_utils.cc408 if (!SafeMultiplyUint32(width, bytes_per_group, &unpadded_row_size)) { in ComputeImagePaddedRowSize()
425 if (!SafeMultiplyUint32(width, bytes_per_group, &row_size)) { in ComputeImageDataSizes()
435 if (!SafeMultiplyUint32((height - 1), padded_row_size, in ComputeImageDataSizes()
446 if (!SafeMultiplyUint32(height, row_size, size)) { in ComputeImageDataSizes()
Dgles2_cmd_utils.h27 inline bool SafeMultiplyUint32(uint32_t a, uint32_t b, uint32_t* dst) { in SafeMultiplyUint32() function