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.h471 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleDeleteBuffers()
487 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleDeleteBuffersImmediate()
503 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleDeleteFramebuffers()
520 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleDeleteFramebuffersImmediate()
536 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleDeleteRenderbuffers()
553 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleDeleteRenderbuffersImmediate()
569 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleDeleteTextures()
586 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleDeleteTexturesImmediate()
767 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleGenBuffers()
785 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleGenBuffersImmediate()
[all …]
Dbuffer_manager.cc182 if (!SafeMultiplyUint32( in GetMaxValueForRange()
Dgles2_cmd_decoder.cc220 if (!SafeMultiplyUint32(count, size, &value)) { in ComputeDataSize()
223 if (!SafeMultiplyUint32(value, elements_per_unit, &value)) { in ComputeDataSize()
4731 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleDeleteSharedIdsCHROMIUM()
4768 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleGenSharedIdsCHROMIUM()
4805 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleRegisterSharedIdsCHROMIUM()
6203 !SafeMultiplyUint32(num_vertices, sizeof(Vec4), &size_needed) || in SimulateAttrib0()
6320 if (!SafeMultiplyUint32(num_vertices, attrib->size(), &elements_used) || in SimulateFixedAttribs()
6331 if (!SafeMultiplyUint32(elements_needed, kSizeOfFloat, &size_needed) || in SimulateFixedAttribs()
8960 if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { in HandleShaderBinary()
9200 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.cc404 if (!SafeMultiplyUint32(width, bytes_per_group, &unpadded_row_size)) { in ComputeImagePaddedRowSize()
421 if (!SafeMultiplyUint32(width, bytes_per_group, &row_size)) { in ComputeImageDataSizes()
431 if (!SafeMultiplyUint32((height - 1), padded_row_size, in ComputeImageDataSizes()
442 if (!SafeMultiplyUint32(height, row_size, size)) { in ComputeImageDataSizes()
Dgles2_cmd_utils.h26 inline bool SafeMultiplyUint32(uint32 a, uint32 b, uint32* dst) { in SafeMultiplyUint32() function