Home
last modified time | relevance | path

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

/frameworks/native/vulkan/libvulkan/
Ddriver.cpp706 void* new_ptr = nullptr; in DefaultReallocate() local
707 if (posix_memalign(&new_ptr, std::max(alignment, sizeof(void*)), size) != 0) in DefaultReallocate()
710 memcpy(new_ptr, ptr, std::min(old_size, size)); in DefaultReallocate()
713 return new_ptr; in DefaultReallocate()
/frameworks/native/vulkan/nulldrv/
Dnull_driver.cpp223 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()