gralloc: move codec2 to GraphicBufferAllocator/Mapper

libui's GraphicBufferAllocator/Mapper already wrap the different
gralloc functions and hide the details from the caller. There is no
reason C2AllocatorGralloc needs to directly talk to gralloc.
This patch updates C2AllocatorGralloc to use libui.

Bug: 145139476
Test: Cherry pick ag/9741096 and run
    android.media.cts.MediaMetadataRetrieverTest#testThumbnailVP9Hdr

Change-Id: I41e106ea8faad02b1eb4d20557dda3ecb1aeedec
2 files changed