gralloc: Add error handling to grallocToStandardPlaneLayoutComponentType

Return errors from getComponentSizeAndOffset if the component
does not exist for the format, or if the format is not supported.

CRs-Fixed: 2728586
Change-Id: I4a25a4ca2a6fb766016d5634afc8dbc93c9c4ab5
1 file changed