Home
last modified time | relevance | path

Searched refs:allocSize (Results 1 – 9 of 9) 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.cpp81 size_t allocSize = (m_bufsize < minSize ? minSize : m_bufsize); in allocBuffer() local
83 m_buf = (unsigned char *)malloc(allocSize); in allocBuffer()
85 else if (m_bufsize < allocSize) { in allocBuffer()
86 unsigned char *p = (unsigned char *)realloc(m_buf, allocSize); in allocBuffer()
89 m_bufsize = allocSize; in allocBuffer()
91 ERR("realloc (%zu) failed\n", allocSize); in allocBuffer()
DVirtioGpuStream.cpp220 size_t allocSize = (m_bufSize < minSize ? minSize : m_bufSize); in allocBuffer() local
222 m_buf = static_cast<unsigned char *>(malloc(allocSize)); in allocBuffer()
223 } else if (m_bufSize < allocSize) { in allocBuffer()
224 unsigned char *p = static_cast<unsigned char *>(realloc(m_buf, allocSize)); in allocBuffer()
231 ERR("%s: alloc (%zu) failed\n", __func__, allocSize); in allocBuffer()
238 m_bufSize = allocSize; in allocBuffer()
DVirtioGpuPipeStream.cpp176 size_t allocSize = (m_bufsize < minSize ? minSize : m_bufsize); in allocBuffer() local
178 m_buf = (unsigned char *)malloc(allocSize); in allocBuffer()
180 else if (m_bufsize < allocSize) { in allocBuffer()
181 unsigned char *p = (unsigned char *)realloc(m_buf, allocSize); in allocBuffer()
184 m_bufsize = allocSize; in allocBuffer()
186 ERR("realloc (%zu) failed\n", allocSize); in allocBuffer()
DQemuPipeStreamFuchsia.cpp164 size_t allocSize = m_bufsize < minSize ? minSize : m_bufsize; in allocBuffer() local
167 auto result = m_pipe->SetBufferSize(allocSize); in allocBuffer()
189 vmo.get(), 0, allocSize, &mapped_addr); in allocBuffer()
196 m_bufsize = allocSize; in allocBuffer()
DAddressSpaceStream.cpp322 size_t allocSize = in allocBuffer() local
325 if (m_writeStep < allocSize) { in allocBuffer()
327 m_tmpBufSize = allocSize * 2; in allocBuffer()
331 if (m_tmpBufSize < allocSize) { in allocBuffer()
332 m_tmpBufSize = allocSize * 2; in allocBuffer()
341 m_tmpBufXferSize = allocSize; in allocBuffer()
/device/generic/goldfish-opengl/android-emu/android/base/
DPool.cpp225 Heap(size_t allocSize, size_t chunksPerSize) : in Heap() argument
226 mBlock(allocSize, chunksPerSize) { in Heap()
285 size_t allocSize = mMinAllocSize << i; in Impl() local
287 D("create heap for size %zu", allocSize); in Impl()
289 Heap* newHeap = new Heap(allocSize, mChunksPerSize); in Impl()
293 allocSize, in Impl()
374 size_t allocSize; member
/device/generic/goldfish-opengl/system/vulkan_enc/
DHostVisibleMemoryVirtualization.h82 VkDeviceSize allocSize = 0; member
93 VkDeviceSize allocSize,
DHostVisibleMemoryVirtualization.cpp213 VkDeviceSize allocSize, in finishHostMemAllocInit() argument
221 out->allocSize = allocSize; in finishHostMemAllocInit()