exynos: gralloc: register buffers in alloc

gralloc_alloc was creating buffers with ion_alloc_fd, which results
in a dmabuf but no ion handle.  This makes it hard to track buffers
that are never registered with another process, or ones that are
unregistered from their process like the wallpaper.

Call gralloc_register_buffer from inside alloc to convert the dmabufs
to ion handles, and gralloc_unregister_buffer inside free.
gralloc_register_buffer currently unnecissarily maps the buffer as
well, which gralloc_lock will do as necessary, so remove the map.
gralloc_unregister_buffer will unmap if necesssary, so remove
the call to grallocUnmap in gralloc_free.  That leaves no callers
to grallocUnmap (and there weren't any callers to grallocMap), so
remove them and gr.h.

Change-Id: I20cf2d50732d018f12779d78582686ca622a332a
Merge "exynos: gralloc: register buffers in alloc"
am 2207ac2e: gralloc: use BGRA byte order for video encoder targets

* commit '2207ac2e1f0555393320bd6fe7c849d359bbd408':
  gralloc: use BGRA byte order for video encoder targets
am 1e1f2ade: Merge "exynos_omx: multi_thread: Increase default buffer size for copy mode recording." into klp-dev

* commit '1e1f2adea2506cd1d2e30cd1b3dbe5f8389f9dc9':
  exynos_omx: multi_thread: Increase default buffer size for copy mode recording.
am 1021eb30: exynos_omx: multi_thread: Added prependSPSPPSToIDRFrames to support the expansion of Google.

* commit '1021eb3052b6af322b604a07f3cafaf3d45e711f':
  exynos_omx: multi_thread: Added prependSPSPPSToIDRFrames to support the expansion of Google.
am e8aae8ed: exynos_omx: multi_thread: Add ThumbnailMode decoding.

* commit 'e8aae8edcacf01c588e0bd0ba2c3ca64aa54e107':
  exynos_omx: multi_thread: Add ThumbnailMode decoding.
am 57e06166: exynos: add API for reference count of ion fd.

* commit '57e0616607fc3022bf0dc5ee6e6453dba3c4e88e':
  exynos: add API for reference count of ion fd.
am 07ded9cf: exynos: add CID for dynamic DPB change scheme in video decoder output port.

* commit '07ded9cf974a05e16be7797a9932f03b9fe70010':
  exynos: add CID for dynamic DPB change scheme in video decoder output port.
am 3b1c2e30: exynos_omx: multi_thread: Add dynamic DPB change scheme.

* commit '3b1c2e30b8c73bb51c3e2c93504e3571ab851268':
  exynos_omx: multi_thread: Add dynamic DPB change scheme.
am f8d511af: exynos_omx: multi_thread: Code clean up.

* commit 'f8d511af096144c3c33d823f879ae0e471ae5284':
  exynos_omx: multi_thread: Code clean up.
am c01f2434: exynos_omx: multi_thread: add Dynamic resolution change support code.

* commit 'c01f2434dc56e71482229e8ab8c7d5cda7c46d01':
  exynos_omx: multi_thread: add Dynamic resolution change support code.
am 209209d0: Revert "exynos_omx: : fail storeMetaDataInBuffers on output port"

* commit '209209d02c383873663c441cbf54b2025f252b57':
  Revert "exynos_omx: : fail storeMetaDataInBuffers on output port"
am 7604f7bc: Use EVP_PKEY_get1_RSA to get RSA reference

* commit '7604f7bcac36402e983db7ca6f391c90d175ab83':
  Use EVP_PKEY_get1_RSA to get RSA reference
am 0c5aeec9: libcamera2: Fix stream id types

* commit '0c5aeec9d23b62d45c62e736341ede29b53b95d4':
  libcamera2: Fix stream id types
am 09a7ac37: Merge "Exynos5: Camera HAL v2: Increase the number of gralloc buffers in allocateStream()" into klp-dev

* commit '09a7ac37a95dfe3f3099df8869f8347afcee0b9c':
  Exynos5: Camera HAL v2: Increase the number of gralloc buffers in allocateStream()
Use canonical UniquePtr.h header

Change-Id: Ic8f3263ad83c3cd3bf0f5a9c847ee26910afb616
Merge "Use canonical UniquePtr.h header"
Use canonical UniquePtr.h header

Change-Id: Ic8f3263ad83c3cd3bf0f5a9c847ee26910afb616
am 461c790a: Merge "Initial memory tracker hal for exynos5" into klp-dev

* commit '461c790adc346474a2e2db833ebaf9827f5f6837':
  Initial memory tracker hal for exynos5
am 884ab8ad: Fix compile warning

* commit '884ab8ada3f087be212c44aedc47d5e1fa959230':
  Fix compile warning