This function can be used from other components to get the aligned dimensions and size of the buffer given the width, height and color format. Change-Id: I8d7532a262194f3883bf0f5166e806e0971392e2 Conflicts: libgralloc/gpu.cpp