OSDN Git Service

minigbm: Refactored minigbm on top a private API
authorGurchetan Singh <gurchetansingh@chromium.org>
Fri, 5 Aug 2016 21:40:07 +0000 (14:40 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Sat, 13 Aug 2016 05:44:40 +0000 (22:44 -0700)
commit46faf6bf430b8f8805f2acfad546329eebcd50f6
treec2ca577f4520b878e99eed244137867a04588c70
parent0fd114250dba56533eee9b7a812bc287b7dbf663
minigbm: Refactored minigbm on top a private API

We would like to reuse the same set of drivers for ChromeOS (with
a minigbm frontend) and Android (with a gralloc frontend).  Since
we don't want to pollute the gbm API with gralloc formats and usages,
we can refactor minigbm on top a private API that will be a superset
of gbm and gralloc.  This change redirects gbm calls to the
private API.

TEST=Ran graphics_Gbm on minnie and cyan, and checked if Chrome boots.
BUG=chromium:616275

CQ-DEPEND=CL:367791

Change-Id: I50d10f9d6c7ea936b0d76c5299a58d948939fdf9
Reviewed-on: https://chromium-review.googlesource.com/367780
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
21 files changed:
Makefile
cirrus.c
drv.c [new file with mode: 0644]
drv.h [new file with mode: 0644]
drv_priv.h [new file with mode: 0644]
evdi.c
exynos.c
gbm.c
gbm_helpers.c [new file with mode: 0644]
gbm_helpers.h [new file with mode: 0644]
gbm_priv.h
gma500.c
helpers.c
helpers.h
i915.c
marvell.c
mediatek.c
rockchip.c
tegra.c
udl.c
virtio_gpu.c