gralloc: Add support for allocated width and height

The standard metadata types for width and height return the
values requested by the client, rather than the width and height
of the allocated buffer. This change adds support to get the
allocated width and height. It also fixes the width and height
returned through get() for PlaneLayout

CRs-Fixed: 2638621
Change-Id: Ifa394a92fcd4a9fe5b8e1d7327971167f991ec33
2 files changed