Home
last modified time | relevance | path

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

/frameworks/native/vulkan/libvulkan/
Ddriver.cpp677 void* new_ptr = nullptr; in DefaultReallocate() local
678 if (posix_memalign(&new_ptr, std::max(alignment, sizeof(void*)), size) != 0) in DefaultReallocate()
681 memcpy(new_ptr, ptr, std::min(old_size, size)); in DefaultReallocate()
684 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()