gralloc:Fix some differences with compatibility code

N/A

Change-Id: Ief841fee9d3ff37b56579b207c0e057cfd6dcad8
Signed-off-by: huangqiwu <huangqiwu@xiaomi.com>