History log of /frameworks/native/libs/ui/Gralloc2.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e8d3ba646cc53d115f7fd4a74475f7d6e3f5dee3 30-Jan-2018 Chia-I Wu <olv@google.com> libui: set USAGE_HW_2D in getValid10UsageBits

Bug: 72703005
Test: Manual

Change-Id: I48e2c5651881fe6d3b809e978787ffc9a6de9fab
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/frameworks/native/libs/ui/Gralloc2.cpp
4f55f16638c161834d39e1581d069780f8918c2f 17-Jan-2018 Chia-I Wu <olv@google.com> libui: use IMapper::createDescriptor_2_1

Update using's in Gralloc2.h to be based on common@1.1 and
mapper@2.1. Use IMapper::createDescriptor_2_1 when it is available.

Test: manual
Change-Id: Id4f805a93a5e9a6cde9ecece7dd4954dec337060
/frameworks/native/libs/ui/Gralloc2.cpp
e6ecb920255d4dd4182ced22c75cc7c49355b469 27-Dec-2017 Craig Donner <cdonner@google.com> Add new AHardwareBuffer formats and usages with latest HAL change

This time we also mask out EXTERNAL_DISP since it is not supported
in HIDL.

Bug: 66900669
Test: build, and added validation logic to Gralloc2 and
GrallocBufferMapper.

Change-Id: I7f4174581e24e361577640b9263514a168ed482d
/frameworks/native/libs/ui/Gralloc2.cpp
44444f9f592a99466e75be2d328083cc6b4c3edb 22-Jan-2018 Craig Donner <cdonner@google.com> Revert "Add new AHardwareBuffer formats and usages with latest HAL change."

This reverts commit b3899e5147fcff81be43469d9d6e8e56fc5aaac8.

Reason for revert: breaks video rendering due to the use of an
invalid flag

Bug: 72299511
Test: build

Change-Id: I7ab62b6aae03e813180fabd86f0570aba97beef0
/frameworks/native/libs/ui/Gralloc2.cpp
b3899e5147fcff81be43469d9d6e8e56fc5aaac8 27-Dec-2017 Craig Donner <cdonner@google.com> Add new AHardwareBuffer formats and usages with latest HAL change.

Bug: 66900669
Test: build, and added validation logic to Gralloc2 and
GrallocBufferMapper.
Change-Id: I374155851fa575a3482084a8b7fbc8f9026b6148
/frameworks/native/libs/ui/Gralloc2.cpp
dbbe33b95336efa74e8bb4ebcf6cba50919aa247 28-Sep-2017 Chia-I Wu <olv@google.com> libui: harden GraphicBufferMapper::importBuffer

Add support for validateBufferSize and getTransportSize from IMapper
2.1. Update GraphicBufferMapper::importBuffer to validate buffer
size, and update GraphicBuffer::flatten to use the handle transport
size.

This fixes two issues with GraphicBuffer. Pointers returned by
lock/lockYCbCr can now be accessed without potential OOB. flatten
no longer includes process-local runtime data.

Bug: 62535446
Bug: 62084097
Bug: 32587089
Test: manual
Change-Id: Ice13af26b84f25e43089637e9d67e3ad820e22ed
/frameworks/native/libs/ui/Gralloc2.cpp
5dac7819ac9461c14f0b7c208597579c5c3fb814 06-Jul-2017 Jesse Hall <jessehall@google.com> Add GraphicBufferMapper::preloadHal

Plumbing to allow Zygote to explicitly preload the a.h.graphics.mapper
HAL. An earlier attempt did this implicitly with a static initializer in
libui.so, but the library is also used by non-Zygote processes that
don't have access to HALs. This way, the HIDL libraries and HAL are only
loaded in Zygote and its children, not random other processes.

Bug: 62353585
Test: check that a.h.graphics.mapper is in /proc/`pid zygote64`/maps
Change-Id: I4989c8089e3a4cfd627f8940f5552950c1c617fc
/frameworks/native/libs/ui/Gralloc2.cpp
cd04e84bbc9cc988f1d5c4170d80ea0b9f72b740 23-Jun-2017 Jeff Vander Stoep <jeffv@google.com> Revert "libui: Load a.h.graphics.mapper passthrough service on library load"

This reverts commit 75ca86f072f82d38b21e0a13234ecbc2c24cb6ab.

avc: denied { read } name="hw" scontext=u:r:cameraserver:s0
tcontext=u:object_r:system_file:s0 tclass=dir
avc: denied { read } name="hw" scontext=u:r:folio_daemon:s0
tcontext=u:object_r:system_file:s0 tclass=dir
avc: denied { read } name="hw" scontext=u:r:hal_imsrtp:s0
tcontext=u:object_r:system_file:s0 tclass=dir
avc: denied { read } name="hw" scontext=u:r:idmap:s0
tcontext=u:object_r:system_file:s0 tclass=dir
avc: denied { read } name="hw" scontext=u:r:mediaextractor:s0
tcontext=u:object_r:system_file:s0 tclass=dir
avc: denied { read } name="hw" scontext=u:r:mediametrics:s0
tcontext=u:object_r:system_file:s0 tclass=dir
avc: denied { read } name="hw" scontext=u:r:webview_zygote:s0
tcontext=u:object_r:system_file:s0 tclass=dir

Bug: 62353585
Bug: 62912747
Bug: 35197529
Test: build and boot device. Launch camera, take pictures.
Change-Id: Ic6884f7235edb9191034a285414eb93aa44ac23c
/frameworks/native/libs/ui/Gralloc2.cpp
75ca86f072f82d38b21e0a13234ecbc2c24cb6ab 07-Jun-2017 Jesse Hall <jessehall@google.com> libui: Load a.h.graphics.mapper passthrough service on library load

Zygote loads libui, this helps complete the chain from
zygote -> libui -> a.h.graphics.mapper -> gralloc
so that all of these libraries which are used by nearly every app are
loaded by zygote and shared.

Bug: 62353585
Test: boot to launcher, run calculator, confirm a.h.graphics.mapper
implementation library is in /proc/`pid zygote64`/maps

Change-Id: Ib505c926a410191e3e2ad809bfe98a73b21fac90
/frameworks/native/libs/ui/Gralloc2.cpp
d8091b9331b17d4a6d5d3ec04e161b7956f67cb8 16-May-2017 Chia-I Wu <olv@google.com> libui: flush hwbinder commands in Allocator::allocate

Bug: 36279079
Test: monkey test on fugu
Change-Id: I81f72d63d3ede64f279b26208bb5df7646050e73
/frameworks/native/libs/ui/Gralloc2.cpp
cb8405e7e74398aeafc9ef6ddb59af2d7cc6d2a6 18-Apr-2017 Chia-I Wu <olv@google.com> libui: remove gralloc0/gralloc1 support

We now talk to HIDL gralloc exclusively.

Bug: 37433368
Test: boots
Change-Id: Iecd2f9a02c7066b2f33f24c1de57e9c4af8e28f5
/frameworks/native/libs/ui/Gralloc2.cpp
5bac7f36ee9d5ed0c2e8a0141909ca94351965a8 06-Apr-2017 Chia-I Wu <olv@google.com> libui: update for revised HIDL gralloc

The revised HIDL gralloc is implementable on top of gralloc0 and
gralloc1, which enables us to remove all legacy code.

However, it lacks the ability to query buffer properties from a
buffer handle. GetBufferFromHandle in VR always fails.

Bug: 36481301
Test: builds and boots on Pixel
Change-Id: Id7cfa2d2172dfc008803860f24fcf4f03ba05f11
/frameworks/native/libs/ui/Gralloc2.cpp