OSDN Git Service

minigbm: Adds Gralloc 4 support
authorJason Macnak <natsu@google.com>
Thu, 10 Sep 2020 17:57:46 +0000 (10:57 -0700)
committerCommit Bot <commit-bot@chromium.org>
Thu, 17 Sep 2020 01:07:54 +0000 (01:07 +0000)
commit2a77d942ae6cfd2b168254d99f0e891b88d04155
tree692ece3ac58704374ca0cc5eb0d0d2b0c6278b1e
parent310cf97a929fced825454e03e0a9390a204dc2d8
minigbm: Adds Gralloc 4 support

Implements the Allocator 4.0 and Mapper 4.0 interfaces.

Some notable features of the 4.0 interface:
- buffer metadata getter/setters
- buffer flushing
- buffer debugging (buffer listing and buffer id)

BUG=b:161909468
TEST=build and launch Cuttlefish with Gralloc4

Change-Id: I63bdc76604207e1fcfe0135c9b64fa62bfba5b27
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/2404601
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Jason Macnak <natsu@google.com>
Commit-Queue: Jason Macnak <natsu@google.com>
cros_gralloc/gralloc4/.clang-format [new file with mode: 0644]
cros_gralloc/gralloc4/CrosGralloc4Allocator.cc [new file with mode: 0644]
cros_gralloc/gralloc4/CrosGralloc4Allocator.h [new file with mode: 0644]
cros_gralloc/gralloc4/CrosGralloc4AllocatorService.cc [new file with mode: 0644]
cros_gralloc/gralloc4/CrosGralloc4Mapper.cc [new file with mode: 0644]
cros_gralloc/gralloc4/CrosGralloc4Mapper.h [new file with mode: 0644]
cros_gralloc/gralloc4/CrosGralloc4Utils.cc [new file with mode: 0644]
cros_gralloc/gralloc4/CrosGralloc4Utils.h [new file with mode: 0644]
cros_gralloc/gralloc4/android.hardware.graphics.allocator@4.0-service.minigbm.rc [new file with mode: 0644]