History log of /frameworks/native/libs/nativewindow/AHardwareBuffer.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3a11413a2584cf9a51e4315bef27546f602578fb 09-Jun-2017 Mathias Agopian <mathias@google.com> Add missing VNDK pixel formats to AHardwareBuffer

AHardwareBuffer is now the only API available to
vendors to create graphic buffers in their HAL
implementations, unfortunately AHardwareBuffer
was designed for NDK use and was missing all
HAL specific pixel formats.

This CL adds these missing format to the VNDK-only
header.

The implementation is changed to accept all formats
which means, VNDK formats are indirectly exposed
to the NDK.

Bug: 38466076
Test: manual
Change-Id: I1e752cd33641aa861d9d15432cde6bec5a682e9a
/frameworks/native/libs/nativewindow/AHardwareBuffer.cpp
ae6955fda8c669efdfd9cc9c3ff6b072db6e7c94 03-Jun-2017 Jiwen 'Steve' Cai <jwcai@google.com> No crash from AHardwareBuffer_unlock on NULL fence

The API document states: "If fence is not NULL then it will be set to a
file descriptor that is signaled when all pending work on the buffer is
completed." As it's too late to change the document, we should probably
update the implement and use GraphicsBuffer::unlock under the hood.

Bug: 62302267
Test: Build, AHardware CTS
Change-Id: Ic0fac5d7addfba67baaa1b5d7c221fc25d02df56
(cherry picked from commit 6cdbb537105b663572e71afe06bde1164fc215f3)
/frameworks/native/libs/nativewindow/AHardwareBuffer.cpp
81d31977c002a04903bab45dd48863bfa741ada1 15-May-2017 Jesse Hall <jessehall@google.com> Handle EINTR from sendmsg/recvmsg

Bug: 38317278
Test: bit CtsHardwareTestCases:.HardwareBufferTest
Change-Id: I7994a416f274b7c7916d0866fcb827073b731ccb
/frameworks/native/libs/nativewindow/AHardwareBuffer.cpp
07b920e09510d138a07dac8b5b1618871ce4db80 26-Apr-2017 Mathias Agopian <mathias@google.com> AHardwareBuffer now reports its stride

Test: compile / manual
Bug: 37686713
Change-Id: I1d75c67816717dc5d8ef4c71c1ca45d1d86aefb3
/frameworks/native/libs/nativewindow/AHardwareBuffer.cpp
2c38b56d19f464142e32030b99ac56afd47ab7cd 21-Apr-2017 Mathias Agopian <mathias@google.com> Plumb gralloc producer/consumer bits correctly

Bug: 33350696
Test: compile, boot device, cts
Change-Id: I2f078cf4bbdf0db49f2e914b051f55629fb37eb6
/frameworks/native/libs/nativewindow/AHardwareBuffer.cpp
d4106302069679813d71b5777bbf1c9e0647948a 20-Apr-2017 Chris Forbes <chrisforbes@google.com> nativewindow: Adjust for libui gralloc flags change

Change-Id: I451f045b42d1e3e3bfc35f1e30f27dedc35d4da3
Bug: b/33350696
Test: Bullhead: booted to launcher, take photo, watch youtube
/frameworks/native/libs/nativewindow/AHardwareBuffer.cpp
ec3717413332336c7b86545eebcfce8c0681b2dc 21-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix AHardwareBuffer 10:10:10:2 format" into oc-dev
577aa758027a7cf5e8da938f99f9ec7372e5728f 20-Apr-2017 Jesse Hall <jessehall@google.com> Fix AHardwareBuffer 10:10:10:2 format

Rename this format to match the component ordering we use in the other
formats (RGBA, in LSB to MSB order), and associate it with the right
Vulkan format (A2B10G10R10_UNORM_PACK32, not the BGRA-order
A2R10G10B10_UNORM_PACK32): the former is required in Vulkan while the
latter isn't, and it makes sense for us to be consistent with that.

Also use the _FLOAT suffix for the 4xFP16 format, not _SFLOAT; we don't
use the latter anywhere else and we don't have unsigned floats.

Bug: 37515907
Test: make checkbuild
Change-Id: I4f9e5e39ddef41d373290c26c92d5b94a884a740
/frameworks/native/libs/nativewindow/AHardwareBuffer.cpp
1ee859f7f883ef1b17d25dc784fb9ea233c152a4 17-Apr-2017 Jesse Hall <jessehall@google.com> Move AHardwareBuffer_getNativeHandle to VNDK

This was added to the NDK only because we didn't have a way to do
VNDK-only declarations. Now we do.

Bug: 34050596
Test: make checkbuild
Change-Id: I039fccfd9f29c5cc960e7691f0baa70101659949
/frameworks/native/libs/nativewindow/AHardwareBuffer.cpp
0556d79eacbf0c9978080d87aa4075120533c7ef 22-Mar-2017 Mathias Agopian <mathias@google.com> get rid of IGraphicBufferAlloc

Buffers can now be allocated directly through
the graphic allocator HAL.

Test: marlin: run full camera cts
Test: angler: take screenshot, take photo w/ and w/o HDR, video, panorama, refocus, slo-mo
Bug: 36462585
Bug: 36333314
Change-Id: Ie5222c53c3b9462e0ac7a41568718aad131eb328
/frameworks/native/libs/nativewindow/AHardwareBuffer.cpp
1b1d3008dceff4648c19386843b418e816fb7846 13-Apr-2017 Craig Donner <cdonner@google.com> Use a separate heap size to receive buffer

Bug: 37216168
Bug: 37245884
Test: cts-tradefed run cts -m CtsNativeHardwareTestCases -t AHardwareBufferTest#AHardwareBuffer_SendAndRecv_Succeeds
Change-Id: I3bdf9c6a24ee1b07a14499f0987b0ac028bbae09
/frameworks/native/libs/nativewindow/AHardwareBuffer.cpp
3ff772317b108a78f6eee42ad8fe932553f5d9d8 01-Apr-2017 Jiwen 'Steve' Cai <jwcai@google.com> Use gralloc1 usage in AHardwareBuffer_describe

GraphicBuffer->getUsage() reports gralloc0 usage bits, convert it to
gralloc1 usage first then to AHardwareBuffer bits.

Bug: 35114769
Test: AImageReaderCts now passes with CPU_READ_OFTEN case.
Change-Id: Id461d9f9e98ccc1db8c4b4da79c61b9aedb417bf
/frameworks/native/libs/nativewindow/AHardwareBuffer.cpp
000879a0eb2156727a2221e42d04b6f3e150aa79 21-Mar-2017 Mathias Agopian <mathias@google.com> VNDK ANativeWindow API - step 2

The vndk API is a superset of the NDK API.
Prior to this, vendor would have access to
system/window.h which itself is a superset of
what they need, exposes too much of the internals.

With this change, system/window.h depends on
vndk/window.h which depends on
android/native_window.h

Test: compiled, booted Nexus 6P
Bug: 34453351
Change-Id: Iad7bf035143541843309437fe630cc603d96a76e
/frameworks/native/libs/nativewindow/AHardwareBuffer.cpp
f8b4ca51111cd2e566d1774ac464da859db78976 16-Mar-2017 Romain Guy <romainguy@google.com> Revert "Get rid of IGraphicBufferAlloc"

This reverts commit 78491c9f694cb0767996503c629776a8eda950d7.

Change-Id: I78d5c0a30ab80265f697f681387872b6763b2d1e
/frameworks/native/libs/nativewindow/AHardwareBuffer.cpp
78491c9f694cb0767996503c629776a8eda950d7 15-Mar-2017 Mathias Agopian <mathias@google.com> Get rid of IGraphicBufferAlloc

This reverts commit 527747dce1ab4714bd424e5c1a25ebad3506c2cb.

selinux policy allowing this change fixed.

Test: took a screenshot
Test: ran ImageReaderTest CTS
Bug: 36194109
Change-Id: I72ac17b6c252750aa2a66cd1d94bd8b4e21b5e9d
/frameworks/native/libs/nativewindow/AHardwareBuffer.cpp
527747dce1ab4714bd424e5c1a25ebad3506c2cb 13-Mar-2017 Chia-I Wu <olv@google.com> Revert "get rid of IGraphicBufferAlloc"

This reverts commit 1da94dfed674e94edc37cdc8ef68530520edf169.

Bug: 36176799
Bug: 36175706
Change-Id: I6dd5fe8df564f0efa4392a800fb316e27a05076e
/frameworks/native/libs/nativewindow/AHardwareBuffer.cpp
1da94dfed674e94edc37cdc8ef68530520edf169 28-Feb-2017 Mathias Agopian <mathias@google.com> get rid of IGraphicBufferAlloc

buffers can now be allocated in-process.

Test: compile & run
Bug: cleanup
Change-Id: I3d4317a9bed20a6d8be2b7ac8fbb85738efb3657
/frameworks/native/libs/nativewindow/AHardwareBuffer.cpp
619634070f2fd5fa6ca0e035323fb2bb2aeea785 25-Feb-2017 Mathias Agopian <mathias@google.com> Remove a dependency of EGL on ui/GraphicBuffer.h

the conversion to a ANativeWindowBuffer is now
handled by libnativewindow.


Test: compiled & run
Bug: cleanup
Change-Id: I52dd64574afbc1eff5bdbefacec234a79f8acd97
/frameworks/native/libs/nativewindow/AHardwareBuffer.cpp
a5a719e97cbec30c8968dddf542d86788e1051a4 25-Feb-2017 Craig Donner <cdonner@google.com> Add private consumer and producer flags to AHardwareBuffer.

This also generalizes and simplifies the flag conversion,
making it more bulletproof in the future. To add more flags,
just add new entries into the mapping arrays.

Bug: 34050596
Bug: 35765937
Test: cts-tradefed run cts -m CtsNativeHardwareTestCases
Also added new cc_test libs/nativewindow/tests to test gralloc flag conversion

Change-Id: Ib96b277e837f2ab8c332f14df60e88580e3d868d
/frameworks/native/libs/nativewindow/AHardwareBuffer.cpp
89ed4c8cfd8ad64269dfcff9742e16bdd705b926 10-Feb-2017 Mathias Agopian <mathias@google.com> split libandroid.so

- ANativeWindow (native_window.h) and
AHardwareBuffer (hardware_buffer.h) now live
in libnativewindow.so, which is a vodka library.

- libandroid.so still provide those symbols
via a static library version (libnativewindow.a)

- removed libbinder dependency as well

Test: compiled & booted
Bug: 35164655
Change-Id: Ib4bc8e8fc9ec1891bcbee63c28fd0131d82edf29
/frameworks/native/libs/nativewindow/AHardwareBuffer.cpp