History log of /frameworks/native/libs/ui/include_vndk/ui/GraphicBuffer.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
44addfe5d29023045784293459fab78a5899863b 14-Mar-2018 Jiwen 'Steve' Cai <jwcai@google.com> GraphicBuffer: add optional DetachedBufferHandle

Stores a BufferHub handle that can be used to reattach this
GraphicBuffer back into a BufferHub producer/consumer set. In terms of
GraphicBuffer's relationship with BufferHub, there are three different
modes:

1. Legacy mode: GraphicBuffer is not backed by BufferHub and
mDetachedBufferHandle must be invalid.
2. Detached mode: GraphicBuffer is backed BufferHub, but not part of a
producer/consumer set. In this mode, mDetachedBufferHandle must be valid.
3. Attached mode: GraphicBuffer is backed BufferHub and it's part of a
producer/consumer set. In this mode, mDetachedBufferHandle must be
invalid.

Note that the DetachedBufferHandle is used as a opaque handle for
GraphicBuffer and it's not exposed to VNDK.

Bug: 38137191
Bug: 69982239
Bug: 70046255
Bug: 70912269
Test: GraphicBuffer_test
Change-Id: I4c3a967cb498291aa175312fdadc84edd3b1a8be
/frameworks/native/libs/ui/include/ui/GraphicBuffer.h
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/include/ui/GraphicBuffer.h
cb496acbe593326e8d5d563847067d02b2df40ec 22-May-2017 Mathias Agopian <mathias@google.com> use 64-bits usage bits almost everywhere

Revert "Revert "use 64-bits usage bits almost everywhere""
This reverts commit 1671de0068de40f57288628d4b757a1c84962a62.

Test: manual, build
Bug: 33350696
Bug: 38466700
Change-Id: Ia2f51b97137dba754b1938dfb1e235f4babc8a88
/frameworks/native/libs/ui/include/ui/GraphicBuffer.h
e7ec834312579b009c02e5e42012dd465a5779be 22-May-2017 Jiyong Park <jiyong@google.com> Headers of libui is moved to the local directory

This makes clients of libui to be compiled without depending on global
headers.

Bug: 37731063
Test: sailfish build and boots
Test: 'BOARD_VNDK_VERSION=current m libui' successful
Change-Id: I6546f57964f2103bf3534fb8266fee4fb7d4678a
/frameworks/native/libs/ui/include/ui/GraphicBuffer.h