Home
last modified time | relevance | path

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

/frameworks/native/vulkan/libvulkan/
Ddriver.cpp852 void* new_ptr = nullptr; in DefaultReallocate() local
853 if (posix_memalign(&new_ptr, std::max(alignment, sizeof(void*)), size) != 0) in DefaultReallocate()
856 memcpy(new_ptr, ptr, std::min(old_size, size)); in DefaultReallocate()
859 return new_ptr; in DefaultReallocate()
/frameworks/native/vulkan/nulldrv/
Dnull_driver.cpp224 void* new_ptr = nullptr; in DefaultReallocate() local
225 if (posix_memalign(&new_ptr, std::max(alignment, sizeof(void*)), size) != 0) in DefaultReallocate()
228 memcpy(new_ptr, ptr, std::min(old_size, size)); in DefaultReallocate()
231 return new_ptr; in DefaultReallocate()