| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
Test: n/a
Change-Id: I59c9c62458fbaf274db031cc56e89b2e3129ac1a
|
| |
|
|
|
|
| |
Fixes: 319284591
Test: make && atest libnativewindow_test
Change-Id: I7d6521ff43bf7a79dc6c6e45610108b82e469dc8
|
| |
|
|
|
|
|
|
|
| |
Also fix that some ADataSpace enum values were not prefixed
with ADATASPACE_*
Test: atest AHardwareBufferTest
Bug: 315475131
Change-Id: Ie92f416a209501fa8fdc9b3593ea6d3bb68eaa48
|
| |\
| |
| |
| |
| |
| | |
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1740715
Change-Id: I86bb90f28afb7274d4c8f80ea844471bacbf18bd
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
GPU drivers need to handle AHBs from the camera HAL. Usually those AHBs
are allocated with AHARDWAREBUFFER_FORMAT_IMPLEMENTATION_DEFINED along
with gralloc camera usage bits. Adding the camera usage bits can help
the drivers to resolve the AHBs into implementation specific formats
with a stable ABI.
Test: build
Change-Id: I29d58bf9e61f012aaa30502e093bb1f33a9576ea
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add this api to ndk so that there's a reliable system-wide unique id for
caching.
libui is not linkable from sphal so vendors cannot convert an AHB into
GraphicBuffer to call getId(). This change solves the problem.
This change has been forced to refactor the existing docs and
annotations due to -Wnullability-completeness.
Bug: 162425097
Bug: 163615119
Test: atest libnativewindow_test:AHardwareBufferTest#GetIdTest
Change-Id: I91043b96b83bc9a896c361385581e9620fe373c3
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change adds an option for the producer to set auto pre-rotation on the
buffers to be allocated. When auto pre-rotation is enabled, if the current
buffer size is driven by the consumer and there's 90 or 270 degree rotation
specified in the transform hint currently used by the producer, then the
dimension of the buffers to be allocated will be additionally swapped upon
buffers pre-allocaton or dequeueBuffer.
Auto prerotaion will be cached at Surface producer side, and will be
reset to false upon Surface disconnection.
Bug: 129422697
Test: atest libgui_test:SurfaceTest#DequeueWithConsumerDrivenSize
Change-Id: I01ddf3e00d5951935e557d18932ea9869f36b5d6
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This adds a new lock method that allows locking all planes in the hardware-buffer.
To do this we also add new structs to hold this buffer information.
Documentation and testing is now in place.
Change-Id: Id4933bbdd8d47d5209a9a08e27391908df26dae1
One-Pager: https://docs.google.com/document/d/1jPlDlaAOzg6QfrX77fZ6OYwR6xeqj_xQlW81mQGigHA/edit?usp=sharing
Bug: 117617861
Test: Manual - run CTS tests
|
| |\
| |
| |
| |
| |
| | |
am: a0cef47054
Change-Id: I119dbd0a622476222a7e328a858fa6b6209c89c2
|
| | |
| |
| |
| |
| |
| | |
Test: build
Bug: 110263459
Change-Id: Ibcd7a7797970dbba877f3ac0b792358fa8387c86
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
HIDL allocator is not expected to support them and they are not
defined in HIDL interfaces (yet).
Bug: 70526789
Test: builds
Change-Id: I0865dcc72fe62f5f1cda546b80283cc9338b2543
|
| |/
|
|
|
|
|
|
|
|
|
| |
Previously, ANativeWindow_setBuffersDataSpace is only available in VNDK. This
patch exposes it in NDK so that display mode for NativeWindow buffer can be set
through NDK. The API will remain available in VNDK of NativeWindow since VNDK
is the super set of NDK.
BUG: 62482961
Test: bit CtsGraphicsTestCases:.ANativeWindowTest
Change-Id: I576c4b87296e168d4b7360c437a32bbbbff690a5
|
| |\
| |
| |
| |
| |
| | |
am: 2563c0f3b0
Change-Id: I10e623eebb70da1f4127c0eec2aa85867da0623c
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |/
|
|
|
|
| |
Bug: 37647680
Bug: 37648355
Test: compile, manual
Change-Id: I9631beea52e23ebb519411f943c6f5062aedd2e5
|
| |
|
|
|
| |
Bug: 33350696
Test: compile, boot device, cts
Change-Id: I2f078cf4bbdf0db49f2e914b051f55629fb37eb6
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
this is to allow vendors to use AHardwareBuffer’s
lock/unlock on buffer dequeued from an
ANativeWindow.
Test: compiled
Bug: 36866217
Change-Id: If630105572ae0e57f6fda19c13e82150f415ed6b
|
| |
|
|
|
|
| |
Test: added a c compatibility test
Bug: 36725813
Change-Id: Ic7e1c8b50e1818707a9a457d84ed74e7e6c816c8
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
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: I870e08c652d90b3f2cf4ed7c7ca541ce2893f689
|