OSDN Git Service

minigbm: store BO_USE_* flags in buffer object
authorGurchetan Singh <gurchetansingh@chromium.org>
Fri, 4 Aug 2017 01:23:27 +0000 (18:23 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Sun, 6 Aug 2017 05:07:49 +0000 (22:07 -0700)
commit18578eda90ee2b4a46aca5e8fc9c8b9cd4367a12
treeb1397884787b9dc0e3206d29f87f785085510bed
parent3f25951570d82dc940f63cae34b48d13490c55c0
minigbm: store BO_USE_* flags in buffer object

Currently, minigbm only cares about the buffer use flags during buffer
creation.  We would like to use cached renderscript buffers, so we need
knowledge about how the buffer was created at map time. Let's add this
to the buffer object struct.

BUG=b:38097499
TEST=run cts -m CtsViewTestCases -t android.view.cts.SurfaceViewSyncTests
     passes on 9776.0.0 veyron_minnie

Change-Id: I73943dae309e60038affb78385aef4b6d3b678ed
Reviewed-on: https://chromium-review.googlesource.com/602734
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
cros_gralloc/cros_gralloc_driver.cc
cros_gralloc/cros_gralloc_handle.h
drv.c
drv.h
drv_priv.h