gralloc: Apply format check in getComponentSizeAndOffset

In getComponentSizeAndOffset, we apply the check on format to prevent
unexpected plane layout Components from being added into the component
vector.

Bug: 152506121
Test: VtsHalGraphicsMapperV4_0TargetTest
Change-Id: I58c51b7e304ba18cefaa7b2949a9127002ba1c33
1 file changed