Home
last modified time | relevance | path

Searched refs:allocSize (Results 1 – 2 of 2) sorted by relevance

/device/generic/goldfish/opengl/shared/OpenglCodecCommon/
DSocketStream.cpp66 size_t allocSize = (m_bufsize < minSize ? minSize : m_bufsize); in allocBuffer() local
68 m_buf = (unsigned char *)malloc(allocSize); in allocBuffer()
70 else if (m_bufsize < allocSize) { in allocBuffer()
71 unsigned char *p = (unsigned char *)realloc(m_buf, allocSize); in allocBuffer()
74 m_bufsize = allocSize; in allocBuffer()
76 ERR("%s: realloc (%zu) failed\n", __FUNCTION__, allocSize); in allocBuffer()
/device/generic/goldfish/opengl/system/OpenglSystemCommon/
DQemuPipeStream.cpp61 size_t allocSize = (m_bufsize < minSize ? minSize : m_bufsize); in allocBuffer() local
63 m_buf = (unsigned char *)malloc(allocSize); in allocBuffer()
65 else if (m_bufsize < allocSize) { in allocBuffer()
66 unsigned char *p = (unsigned char *)realloc(m_buf, allocSize); in allocBuffer()
69 m_bufsize = allocSize; in allocBuffer()
71 ERR("realloc (%d) failed\n", allocSize); in allocBuffer()