OSDN Git Service

minigbm: cros_gralloc: support GRALLOC_MODULE_API_VERSION_0_3
authorGurchetan Singh <gurchetansingh@google.com>
Fri, 23 Jun 2017 01:38:37 +0000 (18:38 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Sat, 29 Jul 2017 09:44:06 +0000 (02:44 -0700)
commit4b5d0bf2ab4da0f475f01575fb369b7eb9415d7c
tree643dc3291ddd1e101d9dc79f50baa9f3cab73f49
parent90bb743c40c4505d98c9de94d060cc795c2eaeaf
minigbm: cros_gralloc: support GRALLOC_MODULE_API_VERSION_0_3

Let's support GRALLOC_MODULE_API_VERSION_0_3. This will more closely
mirror what gralloc1 and HIDL gralloc does.

We have the option to asychronously unlock with this version of the API,
but decided the added complexity wouldn't lead to any performance benefits.

We'll just set the release fence pointer to be -1, indicating the
the buffer is ready to use after the (*unlock_Async) call.

BUG=b:62069164
TEST=Android boots, play Youtube app, ./gralloctest all passes

Change-Id: Ia21a11b541796c4b36003c50cd8627d189b4bc56
Reviewed-on: https://chromium-review.googlesource.com/422661
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
cros_gralloc/Makefile
cros_gralloc/cros_gralloc_driver.cc
cros_gralloc/cros_gralloc_driver.h
cros_gralloc/cros_gralloc_helpers.cc
cros_gralloc/cros_gralloc_helpers.h
cros_gralloc/gralloc0/gralloc0.cc