[gralloc] change the signature of our functions to better mimic the android ones