Searched refs:new_ptr (Results 1 – 2 of 2) sorted by relevance
/frameworks/native/vulkan/libvulkan/ |
D | driver.cpp | 708 void* new_ptr = nullptr; in DefaultReallocate() local 709 if (posix_memalign(&new_ptr, std::max(alignment, sizeof(void*)), size) != 0) in DefaultReallocate() 712 memcpy(new_ptr, ptr, std::min(old_size, size)); in DefaultReallocate() 715 return new_ptr; in DefaultReallocate()
|
/frameworks/native/vulkan/nulldrv/ |
D | null_driver.cpp | 223 void* new_ptr = nullptr; in DefaultReallocate() local 224 if (posix_memalign(&new_ptr, std::max(alignment, sizeof(void*)), size) != 0) in DefaultReallocate() 227 memcpy(new_ptr, ptr, std::min(old_size, size)); in DefaultReallocate() 230 return new_ptr; in DefaultReallocate()
|